Commit Graph

155 Commits

Author SHA1 Message Date
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
thorpej 135f03fe8e The return value from ntohl() is an in_addr_t, and should not be printed
with a "long" format modifier.
1997-07-17 18:48:01 +00:00
christos 793912a9df When removing $'s to preserve rcsid's remove them from both sides. 1997-07-16 14:54:01 +00:00
mikel d36455889e xref gethostname(3) not gethostname(2), alphabetize xrefs 1997-07-14 01:17:05 +00:00
christos 8d36d3405e Fix RCSID's
Fix gcc warnings
Add missing prototypes
Use "namespace.h"
1997-07-13 19:57:30 +00:00
christos 78587c990a inet_pton4() did not handle
- incompletely specified ip addresses
	- ip addresses specified in hex
like inet_aton() and inet_addr(). This broke parsing of /etc/hosts
(127.1	localhost stopped working before the resolver is started).
The fix is to use the inet_aton() code to implement inet_pton4(), and
then use the new inet_pton4() code to implement inet_aton() and inet_addr().
At that point inet_addr.c is empty and has been removed.
1997-07-07 17:11:03 +00:00
lukem 5bacaabfd1 * add man page for inet_net_ntop(3) and inet_net_pton(3)
* xref them in inet(3)
* use Va instead of Fn for 'errno' in inet(3)
1997-06-18 02:25:19 +00:00
lukem 25d1ca167b Describe inet_ntop() and inet_pton(), and the IPv6 address format.
From BSD/OS 3.0, with permission from Jeffrey Finkelstein <finkels@bsdi.com>
1997-06-18 00:11:11 +00:00
lukem 9c3104a64c document RES_USE_INET6
sort RFCs numerically (974 < 1032, not > 1535)
1997-06-08 06:33:47 +00:00
mrg b98cd1ecc7 add a bugs section. 1997-06-05 16:40:16 +00:00
mrg 337facc4a3 install a man page (link) for orcmd(3). 1997-05-28 04:02:08 +00:00
mrg cf3c0fcb9e update rcmd documentation. 1997-05-28 04:01:06 +00:00
mrg 5a1ec9814a allow rcmd() to use something other than rsh protocol. 1997-05-26 14:18:29 +00:00
mikel a299bb2614 note that s_port must be given in network byte order as well; fixes
PR lib/2986.
1997-05-12 06:48:38 +00:00
mrg 3a4d449e5b use a nul not '0'. from <enami@ba2.so-net.or.jp> in PR#3558 1997-04-30 07:02:18 +00:00