]> git.cworth.org Git - tar/blob - gnu/priv-set.h
Imported Upstream version 1.24
[tar] / gnu / priv-set.h
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* Query, remove, or restore a Solaris privilege.
4
5    Copyright (C) 2009, 2010 Free Software Foundation, Inc.
6
7    This program is free software: you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 3 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15    GNU General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20    Written by David Bartley.  */
21
22 #if HAVE_GETPPRIV && HAVE_PRIV_H
23
24 # include <priv.h>
25
26 int priv_set_ismember (const char *priv);
27 int priv_set_remove (const char *priv);
28 int priv_set_restore (const char *priv);
29
30 static inline int priv_set_remove_linkdir (void)
31 {
32   return priv_set_remove (PRIV_SYS_LINKDIR);
33 }
34
35 static inline int priv_set_restore_linkdir (void)
36 {
37   return priv_set_restore (PRIV_SYS_LINKDIR);
38 }
39
40 #else
41
42 static inline int priv_set_remove_linkdir (void)
43 {
44   return -1;
45 }
46
47 static inline int priv_set_restore_linkdir (void)
48 {
49   return -1;
50 }
51
52 #endif