]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
In glibc 2.2, the type of the 'net' argument for getnetbyaddr()
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 18 Aug 2008 11:31:40 +0000 (11:31 +0000)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 18 Aug 2008 11:31:40 +0000 (11:31 +0000)
changed from 'long' to 'uint32_t'.

man3/getnetent.3

index 37ca8fedbe9626831b350a92ffdc078b5201017d..4a44eb9698488cfb9cab3eade957e50738e9e6ff 100644 (file)
@@ -25,7 +25,7 @@
 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
 .\"     386BSD man pages
 .\" Modified Sat Jul 24 21:48:06 1993 by Rik Faith (faith@cs.unc.edu)
-.TH GETNETENT 3  2008-08-13 "GNU" "Linux Programmer's Manual"
+.TH GETNETENT 3  2008-08-20 "GNU" "Linux Programmer's Manual"
 .SH NAME
 getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent \-
 get network entry
@@ -37,7 +37,7 @@ get network entry
 .sp
 .BI "struct netent *getnetbyname(const char *" name );
 .sp
-.BI "struct netent *getnetbyaddr(long " net ", int " type );
+.BI "struct netent *getnetbyaddr(uint32_t " net ", int " type );
 .sp
 .BI "void setnetent(int " stayopen );
 .sp
@@ -119,6 +119,13 @@ error occurs or the end of the file is reached.
 networks database file
 .SH "CONFORMING TO"
 4.3BSD, POSIX.1-2001.
+.SH NOTES
+In glibc versions before 2.2, the
+.I net
+argument of
+.BR getnetbyaddr ()
+was of type
+.IR long .
 .SH "SEE ALSO"
 .BR getprotoent (3),
 .BR getservent (3)