1 /* $Id: pwd.h,v 1.4 2002/10/29 04:45:16 rex Exp $
6 * password structure. Conforming to the Single UNIX(r) Specification
7 * Version 2, System Interface & Headers Issue 5
9 * This file is part of the ReactOS Operating System.
12 * Created by KJK::Hyperion <noog@libero.it>
14 * THIS SOFTWARE IS NOT COPYRIGHTED
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
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.
25 #ifndef __PWD_H_INCLUDED__
26 #define __PWD_H_INCLUDED__
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 */
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
**);
52 struct passwd
*getpwent(void);
57 #endif /* __PWD_H_INCLUDED__ */