From fa44077613d10cf3606d3e3f845585904f6c44a7 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 2 Sep 2006 09:51:08 +0000 Subject: fix --- include/fuse.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/fuse.h') 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 +#include #include #include #include @@ -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 -- cgit v1.2.3