1pwd.h(0P)                  POSIX Programmer's Manual                 pwd.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       pwd.h — password structure
14

SYNOPSIS

16       #include <pwd.h>
17

DESCRIPTION

19       The <pwd.h> header shall define the  struct  passwd,  structure,  which
20       shall include at least the following members:
21
22           char    *pw_name   User's login name.
23           uid_t    pw_uid    Numerical user ID.
24           gid_t    pw_gid    Numerical group ID.
25           char    *pw_dir    Initial working directory.
26           char    *pw_shell  Program to use as shell.
27
28       The  <pwd.h>  header shall define the gid_t, uid_t, and size_t types as
29       described in <sys/types.h>.
30
31       The following shall be declared as functions and may also be defined as
32       macros. Function prototypes shall be provided.
33
34           void           endpwent(void);
35           struct passwd *getpwent(void);
36           struct passwd *getpwnam(const char *);
37           int            getpwnam_r(const char *, struct passwd *, char *,
38                              size_t, struct passwd **);
39           struct passwd *getpwuid(uid_t);
40           int            getpwuid_r(uid_t, struct passwd *, char *,
41                              size_t, struct passwd **);
42           void           setpwent(void);
43
44       The following sections are informative.
45

APPLICATION USAGE

47       None.
48

RATIONALE

50       None.
51

FUTURE DIRECTIONS

53       None.
54

SEE ALSO

56       <sys_types.h>
57
58       The  System  Interfaces volume of POSIX.1‐2008, endpwent(), getpwnam(),
59       getpwuid()
60
62       Portions of this text are reprinted and reproduced in  electronic  form
63       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
64       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
65       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
66       cal and Electronics Engineers,  Inc  and  The  Open  Group.   (This  is
67       POSIX.1-2008  with  the  2013  Technical Corrigendum 1 applied.) In the
68       event of any discrepancy between this version and the original IEEE and
69       The  Open Group Standard, the original IEEE and The Open Group Standard
70       is the referee document. The original Standard can be  obtained  online
71       at http://www.unix.org/online.html .
72
73       Any  typographical  or  formatting  errors that appear in this page are
74       most likely to have been introduced during the conversion of the source
75       files  to  man page format. To report such errors, see https://www.ker
76       nel.org/doc/man-pages/reporting_bugs.html .
77
78
79
80IEEE/The Open Group                  2013                            pwd.h(0P)
Impressum