diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2013-11-13 17:54:37 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2013-11-13 17:54:37 +0000 |
commit | 570a4f0eb84871edacc9676cec8307d58bf592ee (patch) | |
tree | 3ea87a9991f857ccfa1316a1dcf4c9dab8b3cc1f | |
parent | b673f35232280e1424f09f2162c35bcaab4d6c85 (diff) |
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); |