summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/getnetbyht.c
Commit message (Collapse)AuthorAgeFilesLines
* - Remove padding for ABI compatibility of n_net member from structume2005-06-031-3/+0
| | | | | | | | | | | | | netent. - Change 1st argument of getnetbyaddr() to an uint32_t on 64 bit arch as well to confirm to POSIX-2001. These changes break ABI compatibility on 64 bit arch. There is similar padding issue for ai_addrlen of struct addrinfo. However, it is leaved as is for now. Discussed on: arch@, standards@ and current@ X-MFC after: never
* - The ai_addrlen of a struct addrinfo used to be a size_t, perume2005-05-151-2/+5
| | | | | | | | | | | | | | | | RFC 2553. In XNS5.2, and subsequently in POSIX-2001 and RFC 3493, it was changed to a socklen_t. And, the n_net of a struct netent used to be an unsigned long integer. In XNS5, and subsequently in POSIX-2001, it was changed to an uint32_t. To accomodate for this while preserving ABI compatibility with the old interface, we need to prepend or append 32 bits of padding, depending on the (LP64) architecture's endianness. - Correct 1st argument of getnetbyaddr() to uint32_t on 32 bit arch. Stay as is on 64 bit arch for ABI backward compatibility for now. Reviewed by: das, peter MFC after: 2 weeks
* NETDB_INTERNAL is not fit, here. return NO_RECOVERY for h_errno.ume2005-04-291-1/+1
|
* make getnetby*() thread-safe.ume2005-04-281-53/+82
|
* if last line didn't have trailing space, network address was alsoume2005-04-241-10/+11
| | | | treated as an alias.
* Don't ignore the last line of config file (/etc/hosts, /etc/services, etc)sobomax2005-01-031-3/+2
| | | | | | | | which doesn't end in \n, since it may be very confusing. Also this should increase consistency, since most other config files work just fine regardless of the presence of traling \n in the last line. MFC After: 2 weeks
* Fix the style of the SCM ID's.obrien2002-03-221-1/+2
| | | | I believe have made all of libc .c's as consistent as possible.
* Remove 'register' keyword.obrien2002-03-211-4/+4
|
* Add nsswitch support. By creating an /etc/nsswitch.conf file, you cannectar2000-09-061-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | configure FreeBSD so that various databases such as passwd and group can be looked up using flat files, NIS, or Hesiod. = Hesiod has been added to libc (see hesiod(3)). = A library routine for parsing nsswitch.conf and invoking callback functions as specified has been added to libc (see nsdispatch(3)). = The following C library functions have been modified to use nsdispatch: . getgrent, getgrnam, getgrgid . getpwent, getpwnam, getpwuid . getusershell . getaddrinfo . gethostbyname, gethostbyname2, gethostbyaddr . getnetbyname, getnetbyaddr . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr = host.conf has been removed from src/etc. rc.network has been modified to warn that host.conf is no longer used at boot time. In addition, if there is a host.conf but no nsswitch.conf, the latter is created at boot time from the former. Obtained from: NetBSD
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Merge in bind-4.9.6 resolver changes. Note that they resolve thepeter1997-06-271-1/+3
| | | | overflow problem differently.
* Merge in bind-4.9.4-P1 resolver...peter1996-08-291-1/+1
|
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* The last of the bind-4.9.3-REL resolver merges.peter1996-01-131-4/+16
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* get* rework and new bind codepst1994-09-251-0/+159
OpenPOWER on IntegriCloud