summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getnetent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* To allow us to get rid of /etc/networks, make setnetent(3),schwarze2018-04-281-75/+4
| | | | | | getnetent(3), and endnetent(3) do nothing, just like sethostent(3), gethostent(3), and endhostent(3) years ago. OK deraadt@ guenther@
* Use ">", not ">=" when comparing length to HOST_NAME_MAX sincemillert2015-01-161-3/+3
| | | | | otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@
* Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@millert2015-01-161-5/+5
|
* Move to the <limits.h> universe.deraadt2015-01-161-6/+6
| | | | review by millert, binary checking process with doug, concept with guenther
* When fopen()ing internal to libc (the API doesn't support the useguenther2014-09-151-3/+3
| | | | | | | of the resulting FILE *), then pass fopen() the 'e' mode letter to mark it close-on-exec. ok miod@
* Do not pick the network number as alias on entries with no aliaseric2012-04-101-3/+2
| | | | | | defined. ok deraadt@
* Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENmillert2006-01-171-2/+2
|
* zap rcsid.espie2005-08-061-4/+1
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* ansify. ok deraadt@ moritz@otto2005-03-251-5/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Use fgetln(3) instead of fgets(3) so we can easily recognize linesmillert1998-03-161-9/+12
| | | | that are too long and ignore them instead of corrupting later entries.
* Revert last changetholo1997-04-241-2/+2
|
* add htonl()kstailey1997-04-031-2/+2
|
* constrain to MAXHOSTNAMELENderaadt1996-09-031-2/+7
|
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* netbsd: bind 4.9.3dm1996-02-191-13/+12
|
* from netbsd:deraadt1996-01-151-12/+13
| | | | | Don't read the network address as an alias when there isn't whitespace after the network address. Closes PR 1940.
* initial import of NetBSD treederaadt1995-10-181-0/+127