mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
inc: fuse: add fuse_flock definition
This commit is contained in:
parent
007ec8f360
commit
e227ae5751
@ -78,7 +78,7 @@ struct fuse_operations
|
||||
int (*create)(const char *path, fuse_mode_t mode, struct fuse_file_info *fi);
|
||||
int (*ftruncate)(const char *path, fuse_off_t off, struct fuse_file_info *fi);
|
||||
int (*fgetattr)(const char *path, struct fuse_stat *stbuf, struct fuse_file_info *fi);
|
||||
int (*lock)(const char *path, struct fuse_file_info *fi, int cmd, struct flock *lock);
|
||||
int (*lock)(const char *path, struct fuse_file_info *fi, int cmd, struct fuse_flock *lock);
|
||||
int (*utimens)(const char *path, const struct fuse_timespec tv[2]);
|
||||
int (*bmap)(const char *path, size_t blocksize, uint64_t *idx);
|
||||
unsigned int flag_nullpath_ok:1;
|
||||
|
@ -142,6 +142,15 @@ struct fuse_statvfs
|
||||
};
|
||||
#endif
|
||||
|
||||
struct fuse_flock
|
||||
{
|
||||
int16_t l_type;
|
||||
int16_t l_whence;
|
||||
fuse_off_t l_start;
|
||||
fuse_off_t l_len;
|
||||
fuse_pid_t l_pid;
|
||||
};
|
||||
|
||||
#if defined(WINFSP_DLL_INTERNAL)
|
||||
#define FSP_FUSE_ENV_INIT \
|
||||
{ \
|
||||
@ -190,6 +199,7 @@ struct fuse_statvfs
|
||||
|
||||
#define fuse_stat stat
|
||||
#define fuse_statvfs statvfs
|
||||
#define fuse_flock flock
|
||||
|
||||
#define FSP_FUSE_ENV_INIT \
|
||||
{ \
|
||||
|
Loading…
x
Reference in New Issue
Block a user