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

grp.h.0p (2589B)


  1. '\" et
  2. .TH grp.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. grp.h
  12. \(em group structure
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <grp.h>
  17. .fi
  18. .SH DESCRIPTION
  19. The
  20. .IR <grp.h>
  21. header shall declare the
  22. .BR group
  23. structure, which shall include the following members:
  24. .sp
  25. .RS 4
  26. .nf
  27. char *gr_name \fRThe name of the group.\fR
  28. gid_t gr_gid \fRNumerical group ID.\fR
  29. char **gr_mem \fRPointer to a null-terminated array of character\fR
  30. \fRpointers to member names.\fR
  31. .fi
  32. .P
  33. .RE
  34. .P
  35. The
  36. .IR <grp.h>
  37. header shall define the
  38. .BR gid_t
  39. and
  40. .BR size_t
  41. types as described in
  42. .IR <sys/types.h> .
  43. .P
  44. The following shall be declared as functions and may also be defined as
  45. macros. Function prototypes shall be provided.
  46. .sp
  47. .RS 4
  48. .nf
  49. void endgrent(void);
  50. struct group *getgrent(void);
  51. struct group *getgrgid(gid_t);
  52. int getgrgid_r(gid_t, struct group *, char *,
  53. size_t, struct group **);
  54. struct group *getgrnam(const char *);
  55. int getgrnam_r(const char *, struct group *, char *,
  56. size_t , struct group **);
  57. void setgrent(void);
  58. .fi
  59. .P
  60. .RE
  61. .LP
  62. .IR "The following sections are informative."
  63. .SH "APPLICATION USAGE"
  64. None.
  65. .SH RATIONALE
  66. None.
  67. .SH "FUTURE DIRECTIONS"
  68. None.
  69. .SH "SEE ALSO"
  70. .IR "\fB<sys_types.h>\fP"
  71. .P
  72. The System Interfaces volume of POSIX.1\(hy2017,
  73. .IR "\fIendgrent\fR\^(\|)",
  74. .IR "\fIgetgrgid\fR\^(\|)",
  75. .IR "\fIgetgrnam\fR\^(\|)"
  76. .\"
  77. .SH COPYRIGHT
  78. Portions of this text are reprinted and reproduced in electronic form
  79. from IEEE Std 1003.1-2017, Standard for Information Technology
  80. -- Portable Operating System Interface (POSIX), The Open Group Base
  81. Specifications Issue 7, 2018 Edition,
  82. Copyright (C) 2018 by the Institute of
  83. Electrical and Electronics Engineers, Inc and The Open Group.
  84. In the event of any discrepancy between this version and the original IEEE and
  85. The Open Group Standard, the original IEEE and The Open Group Standard
  86. is the referee document. The original Standard can be obtained online at
  87. http://www.opengroup.org/unix/online.html .
  88. .PP
  89. Any typographical or formatting errors that appear
  90. in this page are most likely
  91. to have been introduced during the conversion of the source files to
  92. man page format. To report such errors, see
  93. https://www.kernel.org/doc/man-pages/reporting_bugs.html .