.\" Copyright 2002 walter harms (walter.harms@informatik.uni-oldenburg.de)
-.\" Distributed under GPL
+.\"
+.\" %%%LICENSE_START(GPL_NOVERSION_ONELINE)
+.\" Distributed under GPL
+.\" %%%LICENSE_END
+.\"
.\" based on glibc infopages
.\" polished - aeb
+.\"
.TH SETNETGRENT 3 2007-07-26 "GNU" "Linux Programmer's Manual"
.SH NAME
setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr \-
.IR host ,
.IR user ,
.IR domain .
-A NULL pointer means that the corresponding entry matches any string.
+A null pointer means that the corresponding entry matches any string.
The pointers are valid only as long as there is no call to other
netgroup-related functions.
To avoid this problem you can use the GNU function
To free all allocated buffers use
.BR endnetgrent ().
.PP
-In most cases you only want to check if the triplet
+In most cases you want to check only if the triplet
.RI ( hostname ", " username ", " domainname )
is a member of a netgroup.
The function
.BR innetgr ()
can be used for this without calling the above three functions.
-Again, a NULL pointer is a wildcard and matches any string.
+Again, a null pointer is a wildcard and matches any string.
The function is thread-safe.
-.SH "RETURN VALUE"
+.SH RETURN VALUE
These functions return 1 on success and 0 for failure.
.SH FILES
.I /etc/netgroup
In the BSD implementation,
.BR setnetgrent ()
returns void.
-.SH "SEE ALSO"
+.SH SEE ALSO
.BR sethostent (3),
.BR setprotoent (3),
.BR setservent (3)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.