[URLMON_WINETEST]
[reactos.git] / rossubsys / posix / include / pwd.h
1 /* $Id: pwd.h,v 1.4 2002/10/29 04:45:16 rex Exp $
2 */
3 /*
4 * pwd.h
5 *
6 * password structure. Conforming to the Single UNIX(r) Specification
7 * Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __PWD_H_INCLUDED__
26 #define __PWD_H_INCLUDED__
27
28 /* INCLUDES */
29
30 /* OBJECTS */
31
32 /* TYPES */
33 struct passwd
34 {
35 char *pw_name; /* user's login name */
36 uid_t pw_uid; /* numerical user ID */
37 gid_t pw_gid; /* numerical group ID */
38 char *pw_dir; /* initial working directory */
39 char *pw_shell; /* program to use as shell */
40 };
41
42 /* CONSTANTS */
43
44 /* PROTOTYPES */
45 struct passwd *getpwnam(const char *);
46 struct passwd *getpwuid(uid_t);
47 int getpwnam_r(const char *, struct passwd *, char *,
48 size_t, struct passwd **);
49 int getpwuid_r(uid_t, struct passwd *, char *,
50 size_t, struct passwd **);
51 void endpwent(void);
52 struct passwd *getpwent(void);
53 void setpwent(void);
54
55 /* MACROS */
56
57 #endif /* __PWD_H_INCLUDED__ */
58
59 /* EOF */
60