1 /* @(#)pwd.h	1.1 09/07/10 Copyright 2009 J. Schilling */
2 /*
3  *	Passwd abstraction
4  *
5  *	Copyright (c) 2009 J. Schilling
6  */
7 /*
8  * The contents of this file are subject to the terms of the
9  * Common Development and Distribution License, Version 1.0 only
10  * (the "License").  You may not use this file except in compliance
11  * with the License.
12  *
13  * See the file CDDL.Schily.txt in this distribution for details.
14  * A copy of the CDDL is also available via the Internet at
15  * http://www.opensource.org/licenses/cddl1.txt
16  *
17  * When distributing Covered Code, include this CDDL HEADER in each
18  * file and include the License file CDDL.Schily.txt from this distribution.
19  */
20 
21 #ifndef	_SCHILY_PWD_H
22 #define	_SCHILY_PWD_H
23 
24 #ifndef _SCHILY_MCONFIG_H
25 #include <schily/mconfig.h>
26 #endif
27 #ifndef _SCHILY_TYPES_H
28 #include <schily/types.h>
29 #endif
30 
31 #ifdef	HAVE_PWD_H
32 #ifndef	_INCL_PWD_H
33 #include <pwd.h>
34 #define	_INCL_PWD_H
35 #endif
36 #else
37 
38 #ifdef	__cplusplus
39 extern "C" {
40 #endif
41 
42 struct passwd {
43 	char	*pw_name;
44 	char	*pw_passwd;
45 	uid_t	pw_uid;
46 	gid_t	pw_gid;
47 	char	*pw_gecos;
48 	char	*pw_dir;
49 	char	*pw_shell;
50 };
51 
52 #ifdef	__cplusplus
53 }
54 #endif
55 
56 #endif	/* ! HAVE_PWD_H */
57 
58 #endif	/* _SCHILY_PWD_H */
59