sandboxfs.h (d455d8789d5b35a39a0a179b3af4b423db13bfdd) | sandboxfs.h (4101f6879256720b30df712089a3df18565f9203) |
---|---|
1/* 2 * Copyright (c) 2012, Google Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 4 unchanged lines hidden (view full) --- 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 */ 17 18#ifndef __SANDBOX_FS__ 19#define __SANDBOX_FS__ 20 | 1/* 2 * Copyright (c) 2012, Google Inc. 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, --- 4 unchanged lines hidden (view full) --- 13 * You should have received a copy of the GNU General Public License 14 * along with this program; if not, write to the Free Software 15 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 16 */ 17 18#ifndef __SANDBOX_FS__ 19#define __SANDBOX_FS__ 20 |
21int sandbox_fs_set_blk_dev(block_dev_desc_t *rbdd, disk_partition_t *info); | 21int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info); |
22 23int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, 24 loff_t maxsize, loff_t *actread); 25int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, 26 loff_t maxsize, loff_t *actwrite); 27 28void sandbox_fs_close(void); 29int sandbox_fs_ls(const char *dirname); 30int sandbox_fs_exists(const char *filename); 31int sandbox_fs_size(const char *filename, loff_t *size); 32int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, 33 loff_t *actread); 34int fs_write_sandbox(const char *filename, void *buf, loff_t offset, 35 loff_t len, loff_t *actwrite); 36 37#endif | 22 23int sandbox_fs_read_at(const char *filename, loff_t pos, void *buffer, 24 loff_t maxsize, loff_t *actread); 25int sandbox_fs_write_at(const char *filename, loff_t pos, void *buffer, 26 loff_t maxsize, loff_t *actwrite); 27 28void sandbox_fs_close(void); 29int sandbox_fs_ls(const char *dirname); 30int sandbox_fs_exists(const char *filename); 31int sandbox_fs_size(const char *filename, loff_t *size); 32int fs_read_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, 33 loff_t *actread); 34int fs_write_sandbox(const char *filename, void *buf, loff_t offset, 35 loff_t len, loff_t *actwrite); 36 37#endif |