~ubuntu-branches/ubuntu/saucy/manpages/saucy

« back to all changes in this revision

Viewing changes to man3/getgrent.3

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-11-17 16:35:58 UTC
  • mfrom: (1.1.45 upstream) (2.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20101117163558-9h3ho5jumqm3rdmd
Tags: 3.27-1ubuntu1
* Merge from Debian unstable; remaining changes:
  - ptrace.2, prctl.2: document Ubuntu-specific PTRACE_ATTACH,
    PR_SET_PTRACER behavior.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26
26
.\"     386BSD man pages
27
27
.\" Modified Sat Jul 24 19:29:54 1993 by Rik Faith (faith@cs.unc.edu)
28
 
.TH GETGRENT 3  2009-03-30 "" "Linux Programmer's Manual"
 
28
.TH GETGRENT 3  2010-09-20 "" "Linux Programmer's Manual"
29
29
.SH NAME
30
30
getgrent, setgrent, endgrent \- get group file entry
31
31
.SH SYNOPSIS
45
45
.BR feature_test_macros (7)):
46
46
.in
47
47
.sp
 
48
.PD 0
48
49
.ad l
49
 
.BR getgrent (),
50
50
.BR setgrent (),
 
51
.RS 4
 
52
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
 
53
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED ||
 
54
.br
 
55
/* Since glibc 2.12: */ _POSIX_C_SOURCE\ >=\ 200809L
 
56
.RE
 
57
.sp
 
58
.BR getgrent (),
51
59
.BR endgrent ():
52
 
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
 
60
.RS 4
 
61
_SVID_SOURCE || _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 ||
 
62
_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED
 
63
.RE
 
64
.PD
53
65
.ad b
54
66
.SH DESCRIPTION
55
67
The
59
71
(e.g., the local group file
60
72
.IR /etc/group ,
61
73
NIS, and LDAP).
62
 
The first time it is called
 
74
The first time
 
75
.BR getgrent ()
 
76
is called,
63
77
it returns the first entry; thereafter, it returns successive entries.
64
78
.PP
65
79
The
143
157
.BR getgrouplist (3),
144
158
.BR putgrent (3)
145
159
.SH COLOPHON
146
 
This page is part of release 3.26 of the Linux
 
160
This page is part of release 3.27 of the Linux
147
161
.I man-pages
148
162
project.
149
163
A description of the project,