Commit Graph

169 Commits

Author SHA1 Message Date
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
lukem
7b4851649d use bindresvport for rresvport (from freebsd). old code #if 0-ed out 1998-01-18 06:22:19 +00:00
perry
198f98faf0 $Id: -> Id: (to make hunting down other bad Ids easier). 1998-01-06 05:01:16 +00:00
christos
24f2924d70 inet_addr -> inet_aton 1997-12-21 17:14:24 +00:00
tv
b6573fcec0 Add xrefs to new hosts.equiv(5)/rhosts(5) man page. 1997-11-26 18:06:51 +00:00
mrg
4e252e8c4d add missing .Nm entries. from spz@serpens.swb.de. 1997-11-14 02:04:36 +00:00
mjacob
ddaa6c3262 Fix compile problem. 1997-11-12 05:49:24 +00:00
cgd
023cd79c6b lint stubs for functions which ports use assembly versions. When using
an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc).  Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
1997-11-06 00:51:04 +00:00
thorpej
2a43f22095 __warn_references and __indr_reference semicolon fixups. From
Chris Demetriou <cgd@pa.dec.com>.
1997-11-04 23:52:05 +00:00
lukem
d96a1a939d * fix ether_line to limit size of parsed hostname to MAXHOSTNAMELEN
* modify ether_aton, ether_hostton, and ether_line to take 'const char *'
  arguments as appropriate
* document the above in ethers(3)
1997-11-02 14:21:24 +00:00
lukem
4baee3e06e fix mistake in previous commit (added too many __RCSID/#endif lines 1997-10-09 14:31:59 +00:00
lukem
038f3f9a9b WARNSify if -DDEBUG 1997-10-09 11:34:15 +00:00
lukem
2a55b0f192 rcsid police 1997-10-09 10:07:40 +00:00
hubertf
5ce208addd add xref of ns.4 1997-10-06 23:38:59 +00:00
kleink
0dfbaed62c Make linkntoa.3 a link to linkaddr.3 again; fixes PR lib/4017 from maximum
entropy <entropy@tardis.bernstein.com>.
1997-08-26 20:27:05 +00:00
mikel
e37bd19b9b sync __getnetbyaddr() prototypes with the one in getnetbyaddr.c; from
Krister Walfridsson in PR lib/4009
1997-08-19 05:02:49 +00:00
thorpej
c91bdb8141 - Add __weak_alias() namespace protection and update for changes to
getnetnyname.c and getnetbyaddr.c.
- Now that getnetbyname() and getnetbyaddr() support looking up their
  entries via BIND (they were previously file-only), add "lookup ..."
  dispatch support (in /etc/resolv.conf), a'la gethostby*().
1997-07-31 23:43:26 +00:00
thorpej
34e2e251f2 Fix lossage caused by the __weak_alias() commit. The namespace protection
does NOT belong here; these implement the file lookups, and are internal
functions only.  As such, use "__foo" rather than "_foo" in the names, to
avoid confusion.
1997-07-31 23:40:49 +00:00
thorpej
d80a000b62 This file was deleted with the last resolver merge, and mistakenly
brought back to life with the __weak_alias() commit.
1997-07-31 20:56:57 +00:00
thorpej
f6d3855780 Bring over changes where were mistakenly committed to gethostnamadr.c:
date: 1997/07/21 14:07:54;  author: jtc;  state: Exp;  lines: +3 -2
If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-31 20:55:21 +00:00
jtc
990a11b9c6 Fix files using old TNF copyright notice 1997-07-30 23:53:32 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
mrg
38bfb6cd0a merge bind 4.9.6 resolver. still need to fix <resolv.h> 1997-07-20 13:33:17 +00:00
mrg
d507e9e46d bind 4.9.6 resolver files. 1997-07-20 04:07:42 +00:00
thorpej
0970670295 Be careful with types. XXX sys/netns needs to be swept, but this addresses
libc, at least.
1997-07-18 04:55:57 +00:00
thorpej
2f4f59a76f Do the non-__indr_reference verions of thse like the cat*(3) functions,
modulo a slight kludge to get around the namespace trickery played
in <resolv.h>.
1997-07-17 21:27:33 +00:00
thorpej
a3ec8b6d7f Cast the result of pointer arithmetic to "long" for printing, and use
%ld printf format.
1997-07-17 21:25:18 +00:00