.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
-.TH GETGRENT 3 2003-11-15 "GNU" "Linux Programmer's Manual"
+.TH GETGRENT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.SH NAME
getgrent_r, fgetgrent_r \- get group file entry reentrantly
.SH SYNOPSIS
.nf
-.B "#define _GNU_SOURCE"
-.br
.B #include <grp.h>
.sp
.BI "int getgrent_r(struct group *" gbuf ", char *" buf ,
.BI "int fgetgrent_r(FILE *" fp ", struct group *" gbuf ", char *" buf ,
.br
.BI " size_t " buflen ", struct group **" gbufp );
+.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR getgrent_r ():
+_GNU_SOURCE
+.\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug?
+.br
+.BR fgetgrent_r ():
+_SVID_SOURCE
.SH DESCRIPTION
The functions
.BR getgrent_r ()
.BR getgrgid (3),
.BR getgrnam (3),
.BR putgrent (3),
-.BR group (5),
-.BR feature_test_macros (7)
+.BR group (5)