File: nfsctl.c

package info (click to toggle)
nfs-utils 1%3A1.2.2-4squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,396 kB
  • ctags: 3,298
  • sloc: ansic: 31,349; sh: 10,787; python: 979; makefile: 663
file content (26 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (5)
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
/*
 * 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 <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);
}