Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / icedax / setuid.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
4  * The behaviour and appearence of the program code below can differ to a major
5  * extent from the version distributed by the original author(s).
6  *
7  * For details, see Changelog file distributed with the cdrkit package. If you
8  * received this file from another source then ask the distributing person for
9  * a log of modifications.
10  *
11  */
12
13 /* @(#)setuid.h 1.2 99/12/19 Copyright 1998,1999 Heiko Eissfeldt */
14 /* Security functions */
15 void initsecurity(void);
16
17 void needroot(int necessary);
18 void dontneedroot(void);
19 void neverneedroot(void);
20
21 void needgroup(int necessary);
22 void dontneedgroup(void);
23 void neverneedgroup(void);
24
25 #if defined (HPUX)
26 #define HAVE_SETREUID
27 #define HAVE_SETREGID
28 int seteuid(uid_t uid);
29 int setreuid(uid_t uid1, uid_t uid2);
30 int setregid(gid_t gid1, gid_t gid2);
31 #endif