~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/priv-set.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Query, remove, or restore a Solaris privilege.
2
2
 
3
 
   Copyright (C) 2009-2011 Free Software Foundation, Inc.
 
3
   Copyright (C) 2009-2012 Free Software Foundation, Inc.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
6
6
   it under the terms of the GNU General Public License as published by
17
17
 
18
18
   Written by David Bartley.  */
19
19
 
 
20
_GL_INLINE_HEADER_BEGIN
 
21
#ifndef PRIV_SET_INLINE
 
22
# define PRIV_SET_INLINE _GL_INLINE
 
23
#endif
 
24
 
20
25
#if HAVE_GETPPRIV && HAVE_PRIV_H
21
26
 
22
27
# include <priv.h>
25
30
int priv_set_remove (const char *priv);
26
31
int priv_set_restore (const char *priv);
27
32
 
28
 
static inline int priv_set_remove_linkdir (void)
 
33
PRIV_SET_INLINE int
 
34
priv_set_remove_linkdir (void)
29
35
{
30
36
  return priv_set_remove (PRIV_SYS_LINKDIR);
31
37
}
32
38
 
33
 
static inline int priv_set_restore_linkdir (void)
 
39
PRIV_SET_INLINE int
 
40
priv_set_restore_linkdir (void)
34
41
{
35
42
  return priv_set_restore (PRIV_SYS_LINKDIR);
36
43
}
37
44
 
38
45
#else
39
46
 
40
 
static inline int priv_set_remove_linkdir (void)
 
47
PRIV_SET_INLINE int
 
48
priv_set_remove_linkdir (void)
41
49
{
42
50
  return -1;
43
51
}
44
52
 
45
 
static inline int priv_set_restore_linkdir (void)
 
53
PRIV_SET_INLINE int
 
54
priv_set_restore_linkdir (void)
46
55
{
47
56
  return -1;
48
57
}
49
58
 
50
59
#endif
 
60
 
 
61
_GL_INLINE_HEADER_END