]> git.decadent.org.uk Git - nfs-utils.git/blob - support/nfs/nfsctl.c
support: Use HAVE_LIBTIRPC to switch in bindresvport_sa(3t)
[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 <asm/unistd.h>
15 #include "nfslib.h"
16
17 /* compatibility hack... */
18 #ifndef __NR_nfsctl
19 #define __NR_nfsctl     __NR_nfsservctl
20 #endif
21
22 int
23 nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
24 {
25   return syscall (__NR_nfsctl, cmd, argp, resp);
26 }