From 3e94c51b0ade0767cf807dad1052e2e927ecc535 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 24 Oct 1996 19:26:31 +0000 Subject: Mon Oct 21 21:56:33 1996 Thomas Bushnell, n/BSG * netfs.h: Add extern inline protection. * netfs.c: New file. * Makefile (OTHERSRCS): Add netfs.c. --- libnetfs/ChangeLog | 6 ++++++ libnetfs/Makefile | 2 +- libnetfs/netfs.c | 3 +++ libnetfs/netfs.h | 10 +++++++--- 4 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 libnetfs/netfs.c diff --git a/libnetfs/ChangeLog b/libnetfs/ChangeLog index 7ea9dc5e..6ec28ba3 100644 --- a/libnetfs/ChangeLog +++ b/libnetfs/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 21:56:33 1996 Thomas Bushnell, n/BSG + + * netfs.h: Add extern inline protection. + * netfs.c: New file. + * Makefile (OTHERSRCS): Add netfs.c. + Wed Sep 18 12:56:05 1996 Miles Bader * std-runtime-argp.c : New include. diff --git a/libnetfs/Makefile b/libnetfs/Makefile index 12cede62..b4a5d6a2 100644 --- a/libnetfs/Makefile +++ b/libnetfs/Makefile @@ -44,7 +44,7 @@ OTHERSRCS= drop-node.c init-init.c make-node.c make-peropen.c make-protid.c \ init-loop.c demuxer.c shutdown.c release-protid.c release-peropen.c \ init-startup.c startup-argp.c set-options.c append-args.c \ runtime-argp.c std-runtime-argp.c std-startup-argp.c \ - append-std-options.c + append-std-options.c netfs.c SRCS= $(OTHERSRCS) $(FSSRCS) $(IOSRCS) $(FSYSSRCS) $(IFSOCKSRCS) diff --git a/libnetfs/netfs.c b/libnetfs/netfs.c new file mode 100644 index 00000000..a6b532ff --- /dev/null +++ b/libnetfs/netfs.c @@ -0,0 +1,3 @@ +#define NETFS_EI +#include "netfs.h" + diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index 19ea4688..cad8e042 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -24,6 +24,10 @@ #include #include +#ifndef NETFS_EI +#define NETFS_EI extern inline +#endif + /* This library supports client-side network file system implementations. It is analogous to the diskfs library provided for disk-based filesystems. */ @@ -325,7 +329,7 @@ extern struct node *netfs_root_node; extern mach_port_t netfs_fsys_identity; extern auth_t netfs_auth_server_port; -extern inline void +NETFS_EI void netfs_nref (struct node *np) { spin_lock (&netfs_node_refcnt_lock); @@ -333,7 +337,7 @@ netfs_nref (struct node *np) spin_unlock (&netfs_node_refcnt_lock); } -extern inline void +NETFS_EI void netfs_nrele (struct node *np) { spin_lock (&netfs_node_refcnt_lock); @@ -348,7 +352,7 @@ netfs_nrele (struct node *np) spin_unlock (&netfs_node_refcnt_lock); } -extern inline void +NETFS_EI void netfs_nput (struct node *np) { spin_lock (&netfs_node_refcnt_lock); -- cgit v1.2.3