<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/lib/libc/net/nsdispatch.c, branch stable/6</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F6</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F6'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2004-04-01T19:12:45Z</updated>
<entry>
<title>The previous commit changed the behavior of nsdispatch() in the</title>
<updated>2004-04-01T19:12:45Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2004-04-01T19:12:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8074e24dce9b47fb5f24ac67f0e1b4c50fcd68df'/>
<id>urn:sha1:8074e24dce9b47fb5f24ac67f0e1b4c50fcd68df</id>
<content type='text'>
case where an /etc/nsswitch.conf file was present, but could not
be opened (e.g. due to permissions).  Previously, the open failure
condition was suppressed, and the built-in defaults were used.  In
revision 1.11, however, propagated the open failure causing all
nsdispatch() invocations to return NS_UNAVAIL, and thus many APIs
including getpwnam and gethostbyname unconditionally failed.

This commit restores the previous behavior.

Pointy hat:	nectar  (+1 for obstinance; ache had to use clue bat)
Reported by:	ache
</content>
</entry>
<entry>
<title>When a dynamic NSS module is built and linked against a thread</title>
<updated>2004-03-30T15:56:15Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2004-03-30T15:56:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=a03fd3b6564766173bec16ba385d450db82e50c1'/>
<id>urn:sha1:a03fd3b6564766173bec16ba385d450db82e50c1</id>
<content type='text'>
library, it may pull in that thread library at run time.  If the
process started out single-threaded, this could cause attempts to
release locks that do not exist.  Guard against this possibility by
checking __isthreaded before invoking thread primitives.

A similar problem remains if the process is linked against one thread
library, but the NSS module is linked against another.  This can only
be avoided by careful design of the NSS module.

Submitted by:	Sean McNeil &lt;sean@mcneil.com&gt; (mostly; bugs are mine)
</content>
</entry>
<entry>
<title>Make this compile with -O2.  A proper fix would use a struct to represent</title>
<updated>2004-03-15T08:14:35Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-03-15T08:14:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4705e3da6ad1ca99b718670f2847a497f605e8dd'/>
<id>urn:sha1:4705e3da6ad1ca99b718670f2847a497f605e8dd</id>
<content type='text'>
vectors, instead of requiring the caller to keep track of element size
and count and pass them in by reference.
</content>
</entry>
<entry>
<title>Whitespace nits.</title>
<updated>2004-03-15T08:03:10Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2004-03-15T08:03:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2fb05f85d587a9ac03d7c7914d184fb0807dbe7f'/>
<id>urn:sha1:2fb05f85d587a9ac03d7c7914d184fb0807dbe7f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Don't complain about missing NSS methods when built statically.  It is</title>
<updated>2003-04-24T19:57:31Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2003-04-24T19:57:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=43f9b2521d4cb9126df17f0ed553dc4362e5f2d9'/>
<id>urn:sha1:43f9b2521d4cb9126df17f0ed553dc4362e5f2d9</id>
<content type='text'>
annoying and not very useful.

Sponsored by:	DARPA, Network Associates Laboratories
</content>
</entry>
<entry>
<title>= Implement name service switch modules (NSS modules).  NSS modules</title>
<updated>2003-04-17T14:14:22Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2003-04-17T14:14:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=46d93063837e3149b3834e488ddef3befd03b601'/>
<id>urn:sha1:46d93063837e3149b3834e488ddef3befd03b601</id>
<content type='text'>
  may be built into libc (`static NSS modules') or dynamically loaded
  via dlopen (`dynamic NSS modules').  Modules are loaded/initialized
  at configuration time (i.e.  when nsdispatch is called and nsswitch.conf
  is read or re-read).

= Make the nsdispatch(3) core thread-safe.

= New status code for nsdispatch(3) `NS_RETURN', currently used to
  signal ERANGE-type issues.

= syslog(3) problems, don't warn/err/abort.

= Try harder to avoid namespace pollution.

= Implement some shims to assist in porting NSS modules written for
  the GNU C Library nsswitch interface.

Sponsored by:	DARPA, Network Associates Laboratories
</content>
</entry>
<entry>
<title>Eliminate 19 warnings in libc (at level WARNS=2) of the</title>
<updated>2003-02-27T13:40:01Z</updated>
<author>
<name>Jacques Vidrine</name>
<email>nectar@FreeBSD.org</email>
</author>
<published>2003-02-27T13:40:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=2bbd7cf8204609d07c36511f2a57ca282f05b6f2'/>
<id>urn:sha1:2bbd7cf8204609d07c36511f2a57ca282f05b6f2</id>
<content type='text'>
`implicit declaration of function' variety.
</content>
</entry>
<entry>
<title>Assume __STDC__, remove non-__STDC__ code.</title>
<updated>2002-05-28T17:03:12Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-05-28T17:03:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=a82bbc730e20fe9dec4abeb1d949b2d02869032a'/>
<id>urn:sha1:a82bbc730e20fe9dec4abeb1d949b2d02869032a</id>
<content type='text'>
Submitted by: keramida
</content>
</entry>
<entry>
<title>Fix the style of the SCM ID's.</title>
<updated>2002-03-22T21:53:29Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-22T21:53:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=333fc21e3cd79bca0c94d7722c5a56cb5ad078d1'/>
<id>urn:sha1:333fc21e3cd79bca0c94d7722c5a56cb5ad078d1</id>
<content type='text'>
I believe have made all of libc .c's as consistent as possible.
</content>
</entry>
<entry>
<title>Remove __P() usage.</title>
<updated>2002-03-21T22:49:10Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-21T22:49:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c05ac53b8bbbbd998e18c6544011dd90f0f082da'/>
<id>urn:sha1:c05ac53b8bbbbd998e18c6544011dd90f0f082da</id>
<content type='text'>
</content>
</entry>
</feed>
