summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/getservent.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Finish wrapping <netdb.h> so that calls go direct and the symbols are all weakguenther2015-09-141-1/+4
|
* Userland reallocarray() audit.doug2014-10-111-3/+3
| | | | | | | Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
* 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@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-2/+2
|
* Include limits.h directly instead of depending on another headermillert2006-01-171-1/+2
| | | | to include it for us.
* 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@
* Change return value of reentrant getproto* and getserv* to match themillert2004-10-251-9/+11
| | | | IBM/Digital API.
* Reentrant versions of getprotoent(3) and getservent(3). Adapted frommillert2004-10-171-39/+83
| | | | changes in NetBSD by Christos. OK otto@
* ansideraadt2004-09-161-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 strtol() and strtoul() instead of atoi(). This allows us to catchmillert1999-09-031-3/+7
| | | | errors reasonably and deal correctly with unsigned quantities.
* Use fgetln(3) instead of fgets(3) so we can easily recognize linesmillert1998-03-161-8/+12
| | | | that are too long and ignore them instead of corrupting later entries.
* Use in_addr_t not u_long and use in_port_t in some cases insteadmillert1997-04-051-2/+2
| | | | of u_short or u_int16_t.
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+127