Commit Graph

641 Commits

Author SHA1 Message Date
lukem
25d91a60fb * Re-number NS_FORCEALL from 1<<7 to 1<<8, moving it out of the "public"
bitrange for nsdispatch(3) return values.
* Tweak documentation comments in nsswitch.h
* Ensure the result from the back-end method is masked with
  NS_STATUSMASK before nsdispatch(3) returns it.
2004-10-04 04:02:27 +00:00
wiz
29ac95abc3 Fix a typo, fix an xref, an drop a space at EOL. 2004-09-29 09:20:19 +00:00
lukem
e775b9e35a Implement NS_FORCEALL, which may be set in defaults[0].flags by a caller of
nsdispatch(3) to indicate that all available database methods for a source
will be invoked.  This is useful for functions such as endgrent(3).
2004-09-29 02:47:32 +00:00
lukem
22e72f089d slight formatting tweaks 2004-09-28 14:44:05 +00:00
lukem
3d2c2adc4d also ensure defaults != NULL 2004-09-28 11:51:42 +00:00
lukem
adea87aed9 s/foe/for/ 2004-09-28 11:37:26 +00:00
lukem
115b984fd6 correct the va_list arg for nss_method 2004-09-27 07:00:52 +00:00
simonb
965b11f656 Fix non-ELF case in _nsloadmod(). 2004-09-08 10:52:56 +00:00
ginsbach
3cb63a0abe Add MLINK for gethostent as suggested by Matthias Drochner. 2004-08-24 01:41:51 +00:00
wiz
11a3ae1c04 Add commas in enumerations; drop trailing whitespace; bump date for previous. 2004-08-17 13:45:14 +00:00
ginsbach
ab52fcd2c6 endhostent() and sethostent() should actaully do something now that
gethostent() has been restored to libc.  Reviewed by <christos>.
2004-08-17 02:40:05 +00:00
ginsbach
30ef75e3f4 Restore gethostent() as a supported interface. Yes, it maybe obsolete
but it is specified by IEEE Std 1003.1, 2004 Edition (POSIX) and
the X/Open standards (Issue 6 and XNS 5.2).

* revert change removing gethostent() from gethostbyname(3) man page
* delete kruft from gethnamaddr.c leaving only gethostent() as a
  wrapper around _gethtent().
* revert recent changes to <netdb.h>
  + restore gethostent() prototype
  + restore freehostent() prototype; handle similar to non-shipped
    getipnodby*() prototypes
  + use correct XOPEN_SOURCE version (520 not 500) for freeaddrinfo()
    prototype; interface specified by XNS5.2 not XNS5

Reviewd by <christos> and <drochner>.
2004-08-17 02:29:56 +00:00
thorpej
a2bbd45143 Prevent a deadlock that could occur if we try to update the configuration
data structures during a recursive call to nsdispatch() by keeping a record
of which threads are inside nsdispatch() at any given time.
2004-08-02 00:19:34 +00:00
wiz
e9abe80526 Use \*[Lt]\*[Gt] or Aq instead of <>; sort SEE ALSO. 2004-07-27 14:35:56 +00:00
thorpej
43d6d8d887 Add support for dynamically loading nsswitch modules on ELF platforms.
Adapted from FreeBSD.  Maintains full backward API / ABI compatbility
with built-in-only nsdispatch().

While here, also make nsdispatch() itself thread-safe.
2004-07-24 18:42:51 +00:00
itojun
588f60ad8b now that e.f.f.3.ip6.arpa is ready, we no longer need to query ip6.int 2004-07-21 03:16:29 +00:00
thorpej
b8b64b05f9 Use ANSI function decls. 2004-07-16 16:11:43 +00:00
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