195 Commits

Author SHA1 Message Date
lukem
37df672063 * support extra two arguments to nsdispatch():
const char *method		/* method name for dynamic linking */
	const ns_src defaults[]		/* list of defaults */
* document above, and expand other docco.
1999-01-19 07:58:05 +00:00
lukem
df91e2ba06 support nis lookups for getnetby*() 1999-01-19 04:10:23 +00:00
lukem
94773c129b highlight nsswitch.conf(5) in the first paragraph 1999-01-18 12:10:06 +00:00
lukem
8b9d148c71 before each call to nsdispatch(), set h_errno to NETDB_INTERNAL, and only
change to NETDB_SUCCESS if nsdispatch() returns NS_SUCCESS.  it is up to the
internal methods to change h_errno from NETDB_INTERNAL to a more appropriate
value when an error is detected.
1999-01-18 05:26:08 +00:00
lukem
29f39a2ca1 fix thinko introduced in last rototilling of nsdispatch; _nsdbtget()
would always return the entry for the first entry looked up.  noted by
andrew gillham (manifesting itself as ftp failing to lookup names).
1999-01-17 04:49:04 +00:00
lukem
531c1c25e4 remove unused vars. remove register 1999-01-16 11:43:08 +00:00
lukem
d3f8abaacb reference nsswitch.conf(5) 1999-01-16 07:59:39 +00:00
lukem
73a3905845 clarify that the lack of support for dynamic loading is only for callback funcs 1999-01-16 07:55:43 +00:00
lukem
2bf40fa435 pull nsswitch up to main branch
convert getnetby*() to nsswitch (from resolv.conf lookup)
1999-01-16 07:48:23 +00:00
lukem
6c5df78e61 remove debugging override of _PATH_NS_CONF 1999-01-16 01:21:01 +00:00
thorpej
71522016ba Fix LP64 warnings. 1999-01-15 22:03:57 +00:00
lukem
de3b78d72a merge nsswitch into main branch 1999-01-15 12:48:41 +00:00
pk
d92652f4ae Check the results of argument decomposition in octets to prevent
garbage being sent to name servers.
1998-12-05 13:17:55 +00:00
thorpej
739da0b44f h_errlist[] is not exported in any header file. We should consider making
the symbol static when libc's major is bumped.  Indicate this with a comment.
1998-11-30 20:15:41 +00:00
christos
8b132ea145 - (void) casts.
- fix off-by-one bug in fgets()
- don't make the file unbuffered.
1998-11-24 22:19:01 +00:00
christos
38676913cd delint 1998-11-15 17:39:20 +00:00
christos
2c89343c25 delint 1998-11-13 15:46:52 +00:00
christos
dfa4e2c867 Portability. Use #ifdef BSD4_4 for sin_len 1998-10-18 14:22:05 +00:00
kleink
571ab7ae88 Need an internal name for herror(). 1998-10-16 20:26:02 +00:00
kleink
a292d8ec80 (bcmp(), bcopy(), bzero()) -> (memcmp(), memcpy(), memset()) 1998-10-15 10:22:23 +00:00
kleink
b0decd2b79 Need an internal name for dn_expand(). 1998-10-15 09:28:13 +00:00
kleink
a0744c7ad0 Need "namespace.h" for internal {end,get,set}netent() names. 1998-10-14 19:52:57 +00:00
kleink
7a85778bf7 Need internal names for {end,set}hostent(). 1998-10-14 19:41:03 +00:00
kleink
0b11c41974 Since these files are shared with parts of the BIND-4 userland (outside libc),
do the internal symbol renaming dance only if inside the libc build environment.
1998-10-14 19:33:49 +00:00
kleink
886f927ec6 Need internal names for res_init(), res_mkquery(), res_query() and res_search(). 1998-10-14 19:13:01 +00:00
kleink
0d8a0f5d93 Need an internal name for inet_aton(). 1998-10-13 21:03:31 +00:00
kleink
b1683a098a Need internal names for gethostby{addr,name}(). 1998-10-13 20:54:02 +00:00
christos
c4a835f8e9 Use posix signal system calls. 1998-09-26 23:58:29 +00:00
kleink
19800c4d6f Use gmtime_r() rather than gmtime(); removes a potential source of surprise for
the application.
1998-09-13 16:05:34 +00:00
lukem
ce83c69e00 first pass at fixing up capitalization of function names and
arguments; ensure that each is correct with respect to the
implementation, rather than being correct as per english.
1998-08-29 08:32:32 +00:00
ross
0af9b91fb6 Shut up egcs. (`...might be used uninitialized') 1998-08-19 20:58:42 +00:00
thorpej
fbfd17276b Add some braces to keep egcs happy. 1998-08-18 23:57:02 +00:00
mycroft
e5d9823796 const poisoning. 1998-07-26 19:05:06 +00:00
mycroft
ec143cf9f4 Move an output buffer into the BSS. 1998-07-26 13:14:04 +00:00
mycroft
f4a2a13036 const poisoning. 1998-07-26 13:00:41 +00:00
mycroft
79788fe0d2 const poisoning. 1998-07-26 12:47:38 +00:00
mycroft
be9c427d60 const poisoning. 1998-07-26 12:29:33 +00:00
mycroft
9ad899cc18 constify some tables. 1998-07-26 11:24:14 +00:00
lukem
786b86d71b use AF_LOCAL instead of AF_UNIX 1998-07-18 05:04:35 +00:00
mrg
32f519716b - use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
fair
99b27640ed fix mdoc references 1998-04-28 20:25:53 +00:00
fair
dc026e0515 Change occurrences of "UNIX" to .Ux or .At as appropriate. 1998-04-28 06:00:51 +00:00
kleink
f42a18d608 Need <stddef.h> for NULL definition. 1998-03-30 14:51:42 +00:00
lukem
fe28db95aa install links for inet_ntop(3) and inet_pton(3) 1998-03-12 12:08:09 +00:00
kleink
643b6d9e61 Include <stddef.h> for NULL. 1998-02-18 12:22:42 +00:00
perry
6982982f8d macroize BSD, NetBSD, FreeBSD and misc cleanup 1998-02-06 05:39:31 +00:00
perry
312aca536f add LIBRARY section to man page 1998-02-05 18:45:17 +00:00
christos
bb0194f1ee Add sorting of resolved addresses. 1998-02-04 12:19:03 +00:00
perry
b2e2f28353 add sys/time.h include 1998-02-02 22:36:15 +00:00
mrg
ba9b160fd5 merge in lite2 rcsids and a couple of man page fixes we had not yet found. 1998-02-02 11:53:07 +00:00