summaryrefslogtreecommitdiff
path: root/libnetfs/netfs.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-10-24 19:26:31 +0000
committerThomas Bushnell <thomas@gnu.org>1996-10-24 19:26:31 +0000
commit3e94c51b0ade0767cf807dad1052e2e927ecc535 (patch)
tree2d12e6f3ce387be61eca5005933d2bc30efde7e2 /libnetfs/netfs.h
parentb0886bd7ecb4ed1976d8ceddb1aeff3f54110114 (diff)
Mon Oct 21 21:56:33 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* netfs.h: Add extern inline protection. * netfs.c: New file. * Makefile (OTHERSRCS): Add netfs.c.
Diffstat (limited to 'libnetfs/netfs.h')
-rw-r--r--libnetfs/netfs.h10
1 files changed, 7 insertions, 3 deletions
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 <hurd/iohelp.h>
#include <assert.h>
+#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);