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