Commit Graph

704 Commits

Author SHA1 Message Date
matt
acf2f4a0d7 Remove the XNS man pages. 2006-08-26 16:11:05 +00:00
matt
95ff9c00a4 Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.
2006-08-26 16:07:01 +00:00
christos
1463de6acb use the re-entrant version of getservbyport. 2006-08-24 15:39:11 +00:00
christos
55b31470bb use indirect lookup. 2006-07-28 15:14:45 +00:00
joerg
d52654469c db->seq expects an u_int as fourth argument. 2006-07-28 01:24:24 +00:00
christos
754fca0e0d use a db version of services if one is there. 2006-07-27 22:03:49 +00:00
christos
ae46aa1c5a Call endservent_r. From Hajimu UMEMOTO 2006-07-19 13:16:12 +00:00
christos
2bc28e91d7 use getservbyname_r. 2006-07-18 15:55:55 +00:00
christos
6b7bf056a3 Remove comments that do not reflect reality anymore. 2006-07-18 14:00:40 +00:00
rpaulo
de8db47547 Add support for RFC 3542 Adv. Socket API for IPv6 (which obsoletes 2292).
* RFC 3542 isn't binary compatible with RFC 2292.
* RFC 2292 support is on by default but can be disabled.
* update ping6, telnet and traceroute6 to the new API.

From the KAME project (www.kame.net).
Reviewed by core.
2006-05-05 00:03:21 +00:00
rpaulo
2c7819a4c8 Make macros more readable. No functional change. 2006-03-25 12:09:40 +00:00
christos
bd4761ac59 Coverity CID 2279: Plug memory leak. 2006-03-22 00:03:51 +00:00
christos
c882076269 Coverity CID 2280: Plug memory leak. 2006-03-22 00:03:00 +00:00
christos
40c58e8b04 Coverity CID 2363: cur is known not to be NULL. 2006-03-21 23:56:47 +00:00
christos
432fdd32e0 Coverity CID 2364: cur is known not to be NULL. 2006-03-21 23:55:56 +00:00
christos
f12fd11960 Coverity CID 2430: cur is known not to be NULL. 2006-03-21 23:55:02 +00:00
mjl
f0174eb74b Correct obvious typo 2006-03-21 12:08:19 +00:00
ginsbach
f44127c4ef Fix Coverity issue 2281, resource leak, function return without freeing
dynamically allocated storage.
2006-03-17 15:53:29 +00:00
wiz
bf38813317 We have 2006. 2006-02-24 21:57:53 +00:00
ginsbach
c4276fd553 Add EAI_OVERFLOW per RFC3493, POSIX and XPG6. 2006-02-22 14:26:30 +00:00
ginsbach
80194aa8a4 Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
too short.  This conforms to RFC3493, POSIX and XPG6.  [from KAME]
2006-02-17 15:58:26 +00:00
ginsbach
e0882f7342 Add EAI_OVERFLOW as specified in RFC3493, POSIX and XPG6. 2006-02-17 15:55:01 +00:00
ginsbach
ac8d9f1ddd Fix spelling mistake in comment. From OpenBSD. 2006-02-13 17:16:20 +00:00
uwe
aa9f62b35d Use different wording as "null macro" is too ambiguous. 2006-02-04 22:47:28 +00:00
christos
90d0f8cfa0 PR/32616: Yves-Emmanuel JUTARD: Fix compilation with -DDEBUG 2006-01-24 17:29:33 +00:00
perry
fd18408b9a u_intN_t -> uintN_t 2005-12-26 19:40:14 +00:00
christos
e5548b402a Use reach-over sources from common/lib/libc 2005-12-20 19:31:47 +00:00
yamt
92ca7d2b16 constify and remove an unnecessary __UNCONST. 2005-12-02 11:33:26 +00:00
yamt
765035980c constify and remove an unnecessary __UNCONST. 2005-12-02 11:22:09 +00:00
christos
03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos
3897500b28 forgot to commit this; cleanup to compile with WARNS=4, since lpd uses it. 2005-11-28 14:18:20 +00:00
christos
849dc6749d Let the default case handle all the errors; no functional change. 2005-10-19 22:56:42 +00:00
tsarna
064cb14faa Rest of fix for PR#31184: getaddrinfo() now honors resolv.conf sortlist
directive for dns answers.

Also, unifdef the RESLVSORT (non-)option sillyness.

Reviewed by christos.
2005-09-15 23:33:41 +00:00
tsarna
083c291209 Re-enable resolv.conf sortlist support in gethostbyname().
Fixes first part of PR#31184.  addrsort() was not exposed to the rest of
libc as it turns out not to be usable for getaddrinfo(), so a different
sorter will be implemented for that.
2005-09-15 15:25:40 +00:00
soda
c87c2ee2fe typo - s/intger/integer/ 2005-09-11 02:23:52 +00:00
christos
99e58e3f96 add missing in6addr_linklocal_allrouters. 2005-08-07 16:00:01 +00:00
thorpej
1fc5e9b8c4 _nsdispatching needs to count, not just be 1 or 0. Also shuffle around
its use a little to eliminate some duplication.
2005-06-26 16:27:36 +00:00
lukem
2f0fdfa7f7 Move the test for "more strict reverse lookup handling" to the correct
location so that an uninitialized `in' won't be used if net_i == BYADDR.
Detected with gcc -Wuninitialized, confirmed by diffing against BIND 4.9.11.
(The bug was introduced in rev 1.26.  Hi Itojun! :)
2005-06-01 05:19:21 +00:00
lukem
178e201b11 appease gcc -Wuninitialized 2005-06-01 04:38:40 +00:00
christos
eea147d9f9 check for pwd != NULL 2005-04-19 03:20:50 +00:00
kleink
4e3cae58ff Move the (at this time private) get{proto,serv}ent_r() prototypes and
data structures into the libc sources until the interface gets redone.
Approved by christos.
2005-04-18 19:39:45 +00:00
christos
096c521c10 Remove the bugs section. It has been fixed. 2005-03-31 15:45:53 +00:00
christos
5d3d04b484 use re-entrant versions of getpw*(). In libc only pwcache remains and this
cannot be changed easily because it involves an API change.
2005-03-30 16:12:58 +00:00
kleink
172675479e Only name <netdb.h> in the synopsis, like the old manual page used to. 2005-03-21 13:35:04 +00:00
kleink
53b42c4e52 Add restrict qualifiers to getaddrinfo() and getnameinfo() arguments. 2005-03-21 13:30:50 +00:00
ginsbach
27ff389ba6 Update standards section; add X/Open XNS and X/Open - IEEE POSIX.
RFC 2553 made obsolete by RFC 3493.  Approved by wiz.
2005-03-11 16:13:13 +00:00
lukem
efd08c7b4f Prevent NULL deref upon malloc failure. 2005-02-28 01:25:24 +00:00
kleink
fd5cb0acea A little libc namespace housekeeping exercise:
* Make vfprintf_unlocked() an internal function, c.f. __svfscanf_unlocked().
* Add internal names for arc4random(), endnetpath(), fhstatvfs(),
  fstatvfs(), mkstemp(), shquote(), statvfs(), taddr2uaddr(), uaddr2taddr(),
  uuid_create_nil(), uuid_is_nil(), and wcwidth().
* Include namespace.h where supposed to.
2005-02-09 21:35:46 +00:00
wiz
b2d185782d Use In instead of Fd; use \*[Am]\*[Lt]\*[Gt] for html output. Uppercase FREENIX. 2005-01-28 11:04:52 +00:00
itojun
cc1dea55c3 title was backwards. djm@openbsd 2005-01-28 01:36:17 +00:00