1 /* @(#)setuid.h	1.4 06/05/13 Copyright 1998,1999 Heiko Eissfeldt */
2 /*
3  * Security functions
4  */
5 /*
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License, Version 1.0 only
8  * (the "License").  You may not use this file except in compliance
9  * with the License.
10  *
11  * See the file CDDL.Schily.txt in this distribution for details.
12  * A copy of the CDDL is also available via the Internet at
13  * http://www.opensource.org/licenses/cddl1.txt
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file CDDL.Schily.txt from this distribution.
17  */
18 
19 #ifndef	_SETUID_H
20 #define	_SETUID_H
21 
22 extern	void initsecurity __PR((void));
23 
24 extern	void	needroot	__PR((int necessary));
25 extern	void	dontneedroot	__PR((void));
26 extern	void	neverneedroot	__PR((void));
27 
28 extern	void	needgroup	__PR((int necessary));
29 extern	void	dontneedgroup	__PR((void));
30 extern	void	neverneedgroup	__PR((void));
31 
32 #if defined(HPUX)
33 
34 #define	HAVE_SETREUID
35 #define	HAVE_SETREGID
36 
37 extern	int	seteuid		__PR((uid_t uid));
38 extern	int	setreuid	__PR((uid_t uid1, uid_t uid2));
39 extern	int	setregid	__PR((gid_t gid1, gid_t gid2));
40 
41 #endif
42 
43 #endif	/* _SETUID_H */
44