summaryrefslogtreecommitdiffstats
path: root/support/nfs/nfsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/nfs/nfsctl.c')
-rw-r--r--support/nfs/nfsctl.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/support/nfs/nfsctl.c b/support/nfs/nfsctl.c
new file mode 100644
index 0000000..c04588f
--- /dev/null
+++ b/support/nfs/nfsctl.c
@@ -0,0 +1,24 @@
+/*
+ * support/nfs/nfsctl.c
+ *
+ * Central syscall to the nfsd kernel module.
+ *
+ * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
+ */
+
+#include "config.h"
+
+#include <unistd.h>
+#include <asm/unistd.h>
+#include "nfslib.h"
+
+/* compatibility hack... */
+#ifndef __NR_nfsctl
+#define __NR_nfsctl __NR_nfsservctl
+#endif
+
+int
+nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
+{
+ return syscall (__NR_nfsctl, cmd, argp, resp);
+}