History log of /openbsd-current/lib/libc/net/getnetent.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.18 28-Apr-2018 schwarze

To allow us to get rid of /etc/networks, make setnetent(3),
getnetent(3), and endnetent(3) do nothing, just like sethostent(3),
gethostent(3), and endhostent(3) years ago.
OK deraadt@ guenther@


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.17 16-Jan-2015 millert

Use ">", not ">=" when comparing length to HOST_NAME_MAX since
otherwise we end up needlessly replacing a NUL with a NUL.
OK deraadt@


# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# 1.14 15-Sep-2014 guenther

When fopen()ing internal to libc (the API doesn't support the use
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.

ok miod@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.13 10-Apr-2012 eric

Do not pick the network number as alias on entries with no alias
defined.

ok deraadt@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.12 17-Jan-2006 millert

Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELEN


Revision tags: OPENBSD_3_8_BASE
# 1.11 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.10 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.9 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 16-Mar-1998 millert

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.


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.7 24-Apr-1997 tholo

Revert last change


# 1.6 03-Apr-1997 kstailey

add htonl()


Revision tags: OPENBSD_2_0_BASE
# 1.5 03-Sep-1996 deraadt

constrain to MAXHOSTNAMELEN


# 1.4 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.3 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.2 15-Jan-1996 deraadt

from netbsd:
Don't read the network address as an alias when there isn't whitespace
after the network address. Closes PR 1940.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.17 16-Jan-2015 millert

Use ">", not ">=" when comparing length to HOST_NAME_MAX since
otherwise we end up needlessly replacing a NUL with a NUL.
OK deraadt@


# 1.16 16-Jan-2015 millert

Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@


# 1.15 16-Jan-2015 deraadt

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# 1.14 15-Sep-2014 guenther

When fopen()ing internal to libc (the API doesn't support the use
of the resulting FILE *), then pass fopen() the 'e' mode letter to
mark it close-on-exec.

ok miod@


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.13 10-Apr-2012 eric

Do not pick the network number as alias on entries with no alias
defined.

ok deraadt@


Revision tags: OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.12 17-Jan-2006 millert

Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELEN


Revision tags: OPENBSD_3_8_BASE
# 1.11 06-Aug-2005 espie

zap rcsid.
split functions off res_debug.c so that getnetnamadr.c does not pull it
all when it's used.

okay deraadt@, krw@


# 1.10 25-Mar-2005 otto

ansify. ok deraadt@ moritz@


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE
# 1.9 02-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


Revision tags: OPENBSD_2_3_BASE OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.8 16-Mar-1998 millert

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.


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.7 24-Apr-1997 tholo

Revert last change


# 1.6 03-Apr-1997 kstailey

add htonl()


Revision tags: OPENBSD_2_0_BASE
# 1.5 03-Sep-1996 deraadt

constrain to MAXHOSTNAMELEN


# 1.4 19-Aug-1996 tholo

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# 1.3 19-Feb-1996 dm

netbsd: bind 4.9.3


# 1.2 15-Jan-1996 deraadt

from netbsd:
Don't read the network address as an alias when there isn't whitespace
after the network address. Closes PR 1940.


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision