Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef LIBRARIES_NACL_IO_FUSE_H_ | 5 #ifndef LIBRARIES_NACL_IO_FUSE_H_ |
| 6 #define LIBRARIES_NACL_IO_FUSE_H_ | 6 #define LIBRARIES_NACL_IO_FUSE_H_ |
| 7 | 7 |
| 8 #include "osinttypes.h" | 8 #include "osinttypes.h" |
| 9 #include "ostypes.h" | 9 #include "ostypes.h" |
| 10 | 10 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 191 int (*truncate)(const char* path, off_t); | 191 int (*truncate)(const char* path, off_t); |
| 192 // Called by unlink() | 192 // Called by unlink() |
| 193 int (*unlink)(const char* path); | 193 int (*unlink)(const char* path); |
| 194 // Called by write(). Note that FUSE specifies that a write should always | 194 // Called by write(). Note that FUSE specifies that a write should always |
| 195 // return the full count, unless an error occurs. | 195 // return the full count, unless an error occurs. |
| 196 int (*write)(const char* path, | 196 int (*write)(const char* path, |
| 197 const char* buf, | 197 const char* buf, |
| 198 size_t count, | 198 size_t count, |
| 199 off_t, | 199 off_t, |
| 200 struct fuse_file_info*); | 200 struct fuse_file_info*); |
| 201 // Called by utime()/utimes()/futimes()/futimens() etc. | |
| 202 int (*utimens)(const char*, const struct timespec tv[2]); | |
|
Sam Clegg
2014/09/12 21:36:26
Why did you move this up?
binji
2014/09/12 21:50:07
I moved it because all functions below are not imp
| |
| 201 | 203 |
| 202 // The following functions are not currently called by the nacl_io | 204 // The following functions are not currently called by the nacl_io |
| 203 // implementation of FUSE. | 205 // implementation of FUSE. |
| 204 int (*bmap)(const char*, size_t blocksize, uint64_t* idx); | 206 int (*bmap)(const char*, size_t blocksize, uint64_t* idx); |
| 205 int (*chmod)(const char*, mode_t); | 207 int (*chmod)(const char*, mode_t); |
| 206 int (*chown)(const char*, uid_t, gid_t); | 208 int (*chown)(const char*, uid_t, gid_t); |
| 207 int (*fallocate)(const char*, int, off_t, off_t, struct fuse_file_info*); | 209 int (*fallocate)(const char*, int, off_t, off_t, struct fuse_file_info*); |
| 208 int (*flock)(const char*, struct fuse_file_info*, int op); | 210 int (*flock)(const char*, struct fuse_file_info*, int op); |
| 209 int (*flush)(const char*, struct fuse_file_info*); | 211 int (*flush)(const char*, struct fuse_file_info*); |
| 210 int (*fsyncdir)(const char*, int, struct fuse_file_info*); | 212 int (*fsyncdir)(const char*, int, struct fuse_file_info*); |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 225 int (*read_buf)(const char*, | 227 int (*read_buf)(const char*, |
| 226 struct fuse_bufvec** bufp, | 228 struct fuse_bufvec** bufp, |
| 227 size_t size, | 229 size_t size, |
| 228 off_t off, | 230 off_t off, |
| 229 struct fuse_file_info*); | 231 struct fuse_file_info*); |
| 230 int (*readlink)(const char*, char*, size_t); | 232 int (*readlink)(const char*, char*, size_t); |
| 231 int (*removexattr)(const char*, const char*); | 233 int (*removexattr)(const char*, const char*); |
| 232 int (*setxattr)(const char*, const char*, const char*, size_t, int); | 234 int (*setxattr)(const char*, const char*, const char*, size_t, int); |
| 233 int (*statfs)(const char*, struct statvfs*); | 235 int (*statfs)(const char*, struct statvfs*); |
| 234 int (*symlink)(const char*, const char*); | 236 int (*symlink)(const char*, const char*); |
| 235 int (*utimens)(const char*, const struct timespec tv[2]); | |
| 236 int (*write_buf)(const char*, | 237 int (*write_buf)(const char*, |
| 237 struct fuse_bufvec* buf, | 238 struct fuse_bufvec* buf, |
| 238 off_t off, | 239 off_t off, |
| 239 struct fuse_file_info*); | 240 struct fuse_file_info*); |
| 240 }; | 241 }; |
| 241 | 242 |
| 242 #endif // LIBRARIES_NACL_IO_FUSE_H_ | 243 #endif // LIBRARIES_NACL_IO_FUSE_H_ |
| OLD | NEW |