summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnetent.3
diff options
context:
space:
mode:
authormillert <>1998-03-16 05:07:02 +0000
committermillert <>1998-03-16 05:07:02 +0000
commit7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc (patch)
treed54fd8f615df82fffca9638aee76c24acf5b731f /src/lib/libc/net/getnetent.3
parentfcd822203d1ea91b0c87703a36e5819909a8f7f4 (diff)
downloadopenbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.tar.gz
openbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.tar.bz2
openbsd-7cc61258b3b66c62b0828fdaa234ee8ae2fee2dc.zip
Use fgetln(3) instead of fgets(3) so we can easily recognize lines
that are too long and ignore them instead of corrupting later entries.
Diffstat (limited to 'src/lib/libc/net/getnetent.3')
-rw-r--r--src/lib/libc/net/getnetent.314
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libc/net/getnetent.3 b/src/lib/libc/net/getnetent.3
index a33ac0fac5..5864b75839 100644
--- a/src/lib/libc/net/getnetent.3
+++ b/src/lib/libc/net/getnetent.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnetent.3,v 1.4 1997/04/05 21:13:07 millert Exp $ 1.\" $OpenBSD: getnetent.3,v 1.5 1998/03/16 05:06:56 millert Exp $
2.\" 2.\"
3.\" Copyright (c) 1983, 1991, 1993 3.\" Copyright (c) 1983, 1991, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
@@ -141,10 +141,8 @@ and
141functions appeared in 141functions appeared in
142.Bx 4.2 . 142.Bx 4.2 .
143.Sh BUGS 143.Sh BUGS
144The data space used by 144The data space used by these functions is static; if future use
145these functions is static; if future use requires the data, it should be 145requires the data, it should be copied before any subsequent calls
146copied before any subsequent calls to these functions overwrite it. 146to these functions overwrite it. Only Internet network numbers
147Only Internet network 147are currently understood. Expecting network numbers to fit in no
148numbers are currently understood. 148more than 32 bits is naive.
149Expecting network numbers to fit
150in no more than 32 bits is naive.