diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-02 09:51:08 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2006-09-02 09:51:08 +0000 |
commit | fa44077613d10cf3606d3e3f845585904f6c44a7 (patch) | |
tree | 0f0d28170cfb03b3a20e48ff58b2ecb7c78f8ea7 /include/fuse.h | |
parent | 9ae10b743e945487e12e8377b8f9fe49d8a745ab (diff) | |
download | libfuse-fa44077613d10cf3606d3e3f845585904f6c44a7.tar.gz |
fix
Diffstat (limited to 'include/fuse.h')
-rw-r--r-- | include/fuse.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/fuse.h b/include/fuse.h index d9041b2..8a18914 100644 --- a/include/fuse.h +++ b/include/fuse.h @@ -23,6 +23,7 @@ #include "fuse_common.h" #include <fcntl.h> +#include <time.h> #include <utime.h> #include <sys/types.h> #include <sys/stat.h> @@ -129,7 +130,10 @@ struct fuse_operations { /** Change the size of a file */ int (*truncate) (const char *, off_t); - /** Change the access and/or modification times of a file */ + /** Change the access and/or modification times of a file + * + * Deprecated, use utimes() instead. + */ int (*utime) (const char *, struct utimbuf *); /** File open operation @@ -386,6 +390,9 @@ struct fuse_operations { */ int (*lock) (const char *, struct fuse_file_info *, int cmd, struct flock *, uint64_t owner); + + /** Change the access and modification times of a file */ + int (*utimes) (const char *, const struct timespec tv[2]); }; /** Extra context that may be needed by some filesystems |