Commit Graph

624 Commits

Author SHA1 Message Date
wiz da71bc8372 Sort sections. 2004-06-25 15:27:39 +00:00
kleink 79d01decfe Update for use of uint{16,32}_t. 2004-06-10 11:37:35 +00:00
ginsbach 9fcbc1ee6b Change remaining K&R style function definition to ANSI; Reviewd by <christos>. 2004-06-04 20:05:25 +00:00
christos 71fe243008 make yp stuff re-entrant. 2004-05-27 18:40:07 +00:00
christos cbebf25ae4 remove stray NSUNLOCK(); pointed out by Brian Ginsbach. 2004-05-24 16:16:26 +00:00
christos 13cc3543b5 centralize res_*init() calls in __res_get_state() 2004-05-23 16:54:12 +00:00
christos 94564d94a6 make this thread-safe. 2004-05-23 16:53:22 +00:00
itojun 30dd6e8b37 inet6_{option,rthdr}_space are still alive. 2004-05-21 04:51:00 +00:00
christos d14c1915e0 Finish bind9 resolver merge. 2004-05-21 02:30:03 +00:00
kleink 6108f6dd87 Need namespace.h for internal name of strlcpy. 2004-05-09 11:25:20 +00:00
kleink 8d54bc1847 struct netnet.n_net used to be an unsigned long integer.
In XNS5, and subsequently in POSIX-2001 it was changed to socklen_t.

To accomodate for this while preserving binary compatibility with the
old interface, prepend or append 32 bits of padding, depending on
the (LP64 data model) architecture's endianness.  Fixes PR
standards/21411 from Ben Harris.

This should be deleted the next time the libc major number is
incremented.

Also, update getnetbyaddr(3)'s `net' argument accordingly.
2004-05-08 18:52:15 +00:00
wiz 6677b3582e Add missing "-". 2004-04-14 13:40:30 +00:00
itojun 05e937a343 remove unneeded refs to rfc2553. jmc 2004-04-14 08:07:29 +00:00
itojun 66909f0052 remove prototype decl for removed function 2004-04-14 04:46:04 +00:00
itojun 777d124a65 remove unused code 2004-04-14 04:45:28 +00:00
itojun 8803684aa2 document AI_NUMERICSERV 2004-04-14 04:42:35 +00:00
itojun a1b7e86ab4 implement AI_NUMERICSERV (as defined in RFC3493) 2004-04-14 04:37:06 +00:00
mrg 05cd119306 remove my copyright statement 2004-03-21 05:46:42 +00:00
enami 119b5f631a Don't call end{serv,proto}ent_r() on return. It results dangling pointer. 2004-03-04 02:30:41 +00:00
itojun ca0ee478c7 use "%s" for err(), do not pass pointer directly. Pedro Martelletto 2004-03-01 23:06:21 +00:00
taca 5509874609 Semantic fix for allocation size for malloc() and realloc() previously
modified.  Allocation unit isn't sizeof(char **) but sizeof(char *).

Noted by Geoff Wing.
2004-02-25 06:28:10 +00:00
christos e79fe4ef48 Fix allocation size bug from Takahiro Kambe. 2004-02-24 15:28:07 +00:00
christos d3516aeed5 - fix a memory leak on the current line buffer.
- fix a memory leak on realloc failure.
2004-02-23 16:06:52 +00:00
christos d68ecdf1c9 getservent_r/getprotoent_r 2004-02-19 19:27:53 +00:00
christos ec210d4a19 Implement the non-reentrant ones using the reentrant ones.
Name files by function name.
2004-02-19 19:27:26 +00:00
christos 8059eed1bc Re-entrant versions of services and prorocols functions. 2004-02-19 19:21:44 +00:00
itojun 4348bc0770 whitespace KNF 2004-01-29 08:25:28 +00:00
lukem b763e0987d Use the correct parameters when building the YP map name in _yp_getnetbyaddr().
Fixes getnetbyaddr() when reading from YP.  From Brian Ginsbach in email.
2004-01-29 01:39:15 +00:00
lukem b776c8e6bb Retain the euid of the target user whilst reading the
.rhosts file.  This allows it to have a mode of 600
and still function correctly even when used on an NFS
client with uid 0 mapped to another (anonymous) UID.
Patch from Brian Ginsbach <ginsbach@cray.com>,
and fixes [bin/14880] from Darren Reed <darrenr@>.
2004-01-27 11:46:34 +00:00
lukem c5a53802fe Use syslog(3) instead of err(3) to log errors.
Based on email conversation with Brian Ginsbach.

Add '%option never-interactive' to nslexer.l, to prevent isatty() from
being called unnecessarily.
Per discussion on current-users@ between Christian Biere and Greg Woods.
2004-01-25 16:38:15 +00:00
matt 3c12447a00 Make building IPv6 support controllable by MKINET6 2003-12-07 21:57:22 +00:00
lukem 97f5444c8a MAKEVERBOSE tweaks 2003-12-04 01:02:44 +00:00
drochner 9122b04d59 the last argument to recvfrom() is a pointer, so use "NULL" for
consistency
2003-10-22 15:40:19 +00:00
agc b2b49933f4 Move Matt Green's code from a 4-clause to a 3-clause licence by removing
the advertising clause. Diffs provided in PR 22396 by Joel Baker, the changes
were confirmed to the board by Matt Green.
2003-10-13 14:22:20 +00:00
enami f431b58f2b Back out rev. 1.56; `pointer points the byte just after the valid region'
is normal case.  If the parser wants something more, there should be
another bounds check for it.
2003-10-11 03:35:42 +00:00
itojun f462c5301e paren around macro arg 2003-10-03 22:04:44 +00:00
itojun d26799ebc9 off-by-one. from millert@openbsd 2003-10-03 22:04:03 +00:00
itojun 1db8823e19 out-of-bounds access. from openbsd 2003-09-23 03:19:28 +00:00
itojun cfbab92fdb use randomid(3). actually generate random ID for DNS queries (previous
fix was incomplete)
2003-09-09 22:16:58 +00:00
wiz a2f146d519 Mention RFC 3493; inet_{ntop,pton} are in 1003.1-2001; move XNS5.2 to HISTORY.
Okayed by kleink.
2003-09-08 17:21:31 +00:00
wiz 47190e80b8 Consistently use 'RFC 1234' instead of 'RFC1234' or 'RFC-1234'.
From jmc@openbsd.
2003-09-07 16:22:20 +00:00
christos cdf03491b8 rename exp to expo to avoid global shadowing warning. 2003-09-06 22:47:56 +00:00
itojun 08fc9c3284 move provos' copyright closer to res_randomid() 2003-09-06 11:46:32 +00:00
itojun a970cdd909 bring in openbsd lib/libc/net/res_random.c for truely-random res_randomid(). 2003-09-06 11:40:52 +00:00
wiz a24c4806d6 Nm -> Fn getnameinfo; grammar improvements; markup improvement;
all from jmc@openbsd, thanks.
2003-08-28 12:03:08 +00:00
wiz 520d0eab98 Bump date for CAVEATS; fix punctuation usage in one place;
drop trailing space; use \*[Am] instead of & for HTML generation.
2003-08-28 09:39:11 +00:00
itojun e3a97c1624 use NI_NUMERICHOST for 2nd invocation 2003-08-28 01:49:30 +00:00
itojun 9de573eee1 add int error in CAVEAT 2003-08-28 01:46:45 +00:00
itojun 91c72951cb add CAVEATS section 2003-08-28 01:43:14 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00