logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

pwd.h.0p (2659B)


  1. '\" et
  2. .TH pwd.h "0P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. pwd.h
  12. \(em password structure
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <pwd.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <pwd.h>
  21. header shall define the
  22. .BR "struct passwd" ,
  23. structure, which shall include at least the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. char *pw_name \fRUser's login name.\fP
  28. uid_t pw_uid \fRNumerical user ID.\fP
  29. gid_t pw_gid \fRNumerical group ID.\fP
  30. char *pw_dir \fRInitial working directory.\fP
  31. char *pw_shell \fRProgram to use as shell.\fP
  32. .fi
  33. .P
  34. .RE
  35. .P
  36. The
  37. .IR <pwd.h>
  38. header shall define the
  39. .BR gid_t ,
  40. .BR uid_t ,
  41. and
  42. .BR size_t
  43. types as described in
  44. .IR <sys/types.h> .
  45. .P
  46. The following shall be declared as functions and may also be defined as
  47. macros. Function prototypes shall be provided.
  48. .sp
  49. .RS 4
  50. .nf
  51. void endpwent(void);
  52. struct passwd *getpwent(void);
  53. struct passwd *getpwnam(const char *);
  54. int getpwnam_r(const char *, struct passwd *, char *,
  55. size_t, struct passwd **);
  56. struct passwd *getpwuid(uid_t);
  57. int getpwuid_r(uid_t, struct passwd *, char *,
  58. size_t, struct passwd **);
  59. void setpwent(void);
  60. .fi
  61. .P
  62. .RE
  63. .LP
  64. .IR "The following sections are informative."
  65. .SH "APPLICATION USAGE"
  66. None.
  67. .SH RATIONALE
  68. None.
  69. .SH "FUTURE DIRECTIONS"
  70. None.
  71. .SH "SEE ALSO"
  72. .IR "\fB<sys_types.h>\fP"
  73. .P
  74. The System Interfaces volume of POSIX.1\(hy2017,
  75. .IR "\fIendpwent\fR\^(\|)",
  76. .IR "\fIgetpwnam\fR\^(\|)",
  77. .IR "\fIgetpwuid\fR\^(\|)"
  78. .\"
  79. .SH COPYRIGHT
  80. Portions of this text are reprinted and reproduced in electronic form
  81. from IEEE Std 1003.1-2017, Standard for Information Technology
  82. -- Portable Operating System Interface (POSIX), The Open Group Base
  83. Specifications Issue 7, 2018 Edition,
  84. Copyright (C) 2018 by the Institute of
  85. Electrical and Electronics Engineers, Inc and The Open Group.
  86. In the event of any discrepancy between this version and the original IEEE and
  87. The Open Group Standard, the original IEEE and The Open Group Standard
  88. is the referee document. The original Standard can be obtained online at
  89. http://www.opengroup.org/unix/online.html .
  90. .PP
  91. Any typographical or formatting errors that appear
  92. in this page are most likely
  93. to have been introduced during the conversion of the source files to
  94. man page format. To report such errors, see
  95. https://www.kernel.org/doc/man-pages/reporting_bugs.html .