~ubuntu-branches/debian/stretch/nfs-utils/stretch

« back to all changes in this revision

Viewing changes to support/nfs/nfsctl.c

  • Committer: Package Import Robot
  • Author(s): Luk Claes
  • Date: 2012-05-25 20:41:58 UTC
  • mfrom: (1.2.22)
  • Revision ID: package-import@ubuntu.com-20120525204158-fte9hh32egwbk5g3
Tags: 1:1.2.6-1
* New upstream version
  - Remove 18-dont-use-PAGE_SIZE.patch: merged upstream.
  - Update other patches.
  - Install osd_login (part of the autologin feature).
    - Add open-iscsi and watchdog to Recommends.
* Check for blank exports file (Closes: #673798).
* Add 18-osd_login-sbindir.patch to avoid FTBFS
* Add 19-iscsiadm-path.patch so osd_login works

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#endif
12
12
 
13
13
#include <unistd.h>
 
14
#include <errno.h>
14
15
#include <asm/unistd.h>
15
16
#include "nfslib.h"
16
17
 
17
18
/* compatibility hack... */
18
 
#ifndef __NR_nfsctl
 
19
#if !defined(__NR_nfsctl) && defined(__NR_nfsservctl)
19
20
#define __NR_nfsctl     __NR_nfsservctl
20
21
#endif
21
22
 
22
23
int
23
24
nfsctl (int cmd, struct nfsctl_arg * argp, union nfsctl_res * resp)
24
25
{
 
26
#ifdef __NR_nfsctl
25
27
  return syscall (__NR_nfsctl, cmd, argp, resp);
 
28
#else
 
29
  errno = ENOSYS;
 
30
  return -1;
 
31
#endif
26
32
}