Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/librefuse provide fuse_version



details:   https://anonhg.NetBSD.org/src/rev/481c0c606cd8
branches:  trunk
changeset: 998214:481c0c606cd8
user:      maya <maya%NetBSD.org@localhost>
date:      Wed Apr 10 21:38:02 2019 +0000

description:
provide fuse_version

diffstat:

 lib/librefuse/fuse.h   |   3 ++-
 lib/librefuse/refuse.3 |   8 ++++++--
 lib/librefuse/refuse.c |  10 ++++++++--
 3 files changed, 16 insertions(+), 5 deletions(-)

diffs (74 lines):

diff -r 62da02e7c4fa -r 481c0c606cd8 lib/librefuse/fuse.h
--- a/lib/librefuse/fuse.h      Wed Apr 10 20:32:56 2019 +0000
+++ b/lib/librefuse/fuse.h      Wed Apr 10 21:38:02 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fuse.h,v 1.22 2016/11/20 13:28:32 pho Exp $ */
+/* $NetBSD: fuse.h,v 1.23 2019/04/10 21:38:02 maya Exp $ */
 
 /*
  * Copyright © 2007 Alistair Crooks.  All rights reserved.
@@ -163,6 +163,7 @@
 struct fuse_context *fuse_get_context(void);
 void fuse_exit(struct fuse *);
 void fuse_destroy(struct fuse *);
+int fuse_version(void);
 
 #if FUSE_USE_VERSION == 22
 #define fuse_unmount fuse_unmount_compat22
diff -r 62da02e7c4fa -r 481c0c606cd8 lib/librefuse/refuse.3
--- a/lib/librefuse/refuse.3    Wed Apr 10 20:32:56 2019 +0000
+++ b/lib/librefuse/refuse.3    Wed Apr 10 21:38:02 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: refuse.3,v 1.13 2016/11/20 13:28:32 pho Exp $
+.\"    $NetBSD: refuse.3,v 1.14 2019/04/10 21:38:02 maya Exp $
 .\"
 .\" Copyright © 2007 Alistair Crooks.  All rights reserved.
 .\"
@@ -26,7 +26,7 @@
 .\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 .\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd November 15, 2016
+.Dd April 11, 2019
 .Dt REFUSE 3
 .Os
 .Sh NAME
@@ -100,6 +100,10 @@
 .Fa "struct fuse *fuse"
 .Fc
 .Ft int
+.Fo fuse_version
+.Fa "struct fuse *fuse"
+.Fc
+.Ft int
 .Fo puffs_fuse_node_getattr
 .Fa "const char *path" "struct stat *attrs"
 .Fc
diff -r 62da02e7c4fa -r 481c0c606cd8 lib/librefuse/refuse.c
--- a/lib/librefuse/refuse.c    Wed Apr 10 20:32:56 2019 +0000
+++ b/lib/librefuse/refuse.c    Wed Apr 10 21:38:02 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: refuse.c,v 1.98 2016/11/20 13:28:32 pho Exp $  */
+/*     $NetBSD: refuse.c,v 1.99 2019/04/10 21:38:02 maya Exp $ */
 
 /*
  * Copyright © 2007 Alistair Crooks.  All rights reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #if !defined(lint)
-__RCSID("$NetBSD: refuse.c,v 1.98 2016/11/20 13:28:32 pho Exp $");
+__RCSID("$NetBSD: refuse.c,v 1.99 2019/04/10 21:38:02 maya Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -1373,3 +1373,9 @@
 
        return;
 }
+
+int
+fuse_version(void)
+{
+       return FUSE_USE_VERSION;
+}



Home | Main Index | Thread Index | Old Index