diff options
author | 2013-11-13 17:54:36 +0000 | |
---|---|---|
committer | 2013-11-13 17:54:36 +0000 | |
commit | f58844d593e73f3e7fb3821dfbce0bcd9cf1ec26 (patch) | |
tree | c1a23f69195c5f0aa3ea45c2d16f31e4bafcc003 | |
parent | Make fusebuf.fh_err signed, it might store negative errno values; ok syl (diff) | |
download | wireguard-openbsd-f58844d593e73f3e7fb3821dfbce0bcd9cf1ec26.tar.xz wireguard-openbsd-f58844d593e73f3e7fb3821dfbce0bcd9cf1ec26.zip |
Document the negative errno quirk used by callbacks in struct fuse_operations.
ok syl
-rw-r--r-- | lib/libfuse/fuse.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libfuse/fuse.h b/lib/libfuse/fuse.h index 2aa9e4ae06b..a8b89e63da8 100644 --- a/lib/libfuse/fuse.h +++ b/lib/libfuse/fuse.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse.h,v 1.9 2013/11/07 18:15:09 syl Exp $ */ +/* $OpenBSD: fuse.h,v 1.10 2013/11/13 17:54:36 stsp Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -100,6 +100,11 @@ typedef struct fuse_dirhandle { typedef int (*fuse_dirfil_t)(fuse_dirh_t, const char *, int, ino_t); +/* + * Fuse operations work in the same way as their UNIX file system + * counterparts. A major exception is that these routines return + * a negated errno value (-errno) on failure. + */ struct fuse_operations { int (*getattr)(const char *, struct stat *); int (*readlink)(const char *, char *, size_t); |