OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / setnetgrent.3
index 72aa5c7..957a1d9 100644 (file)
@@ -1,7 +1,12 @@
 .\"  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 \-
@@ -61,7 +66,7 @@ function retrieves the next netgroup entry, and returns pointers in
 .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
@@ -70,15 +75,15 @@ that stores the strings in the supplied buffer.
 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
@@ -99,7 +104,15 @@ is not widely available on other systems.
 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/.