]> git.decadent.org.uk Git - nfs-utils.git/blob - support/nfs/nfsctl.c
mountd: fix exporting of "/" with sec= setting.
[nfs-utils.git] / support / nfs / nfsctl.c
1 /*
2  * support/nfs/nfsctl.c
3  *
4  * Central syscall to the nfsd kernel module.
5  *
6  * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
7  */
8
9 #ifdef HAVE_CONFIG_H
10 #include <config.h>
11 #endif
12
13 #include <unistd.h>
14 #include <errno.h>
15 #include <asm/unistd.h>
16 #include "nfslib.h"
17
18 /* compatibility hack... */
19 #if !defined(__NR_nfsctl) && defined(__NR_nfsservctl)
20 #define __NR_nfsctl     __NR_nfsservctl
21 #endif
22
23 int
24 nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
25 {
26 #ifdef __NR_nfsctl
27   return syscall (__NR_nfsctl, cmd, argp, resp);
28 #else
29   errno = ENOSYS;
30   return -1;
31 #endif
32 }