int fs_write_sandbox(const char *filename, void *buf, loff_t offset, loff_t len, loff_t *actwrite) { int ret; ret = sandbox_fs_write_at(filename, offset, buf, len, actwrite); if (ret) printf("** Unable to write file %s **\n", filename); return ret; }
int fs_write_sandbox(const char *filename, void *buf, int offset, int len) { int len_written; len_written = sandbox_fs_write_at(filename, offset, buf, len); if (len_written == -1) { printf("** Unable to write file %s **\n", filename); return -1; } return len_written; }