<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/gen/readdir.c, branch release/5.4.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.4.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.4.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2005-05-07T17:51:10Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2005-05-07T17:51:10Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2005-05-07T17:51:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e87a6b5d6805bf9f3f9faf53db0ba96345ef0f77'/>
<id>urn:sha1:e87a6b5d6805bf9f3f9faf53db0ba96345ef0f77</id>
<content type='text'>
'RELENG_5_4_0_RELEASE'.

This commit was manufactured to restore the state of the 5.4-RELEASE image.
</content>
</entry>
<entry>
<title>use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over</title>
<updated>2002-02-26T21:39:32Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-02-26T21:39:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ef18a7a8412761934bcfa18b04a1fb8d5092b874'/>
<id>urn:sha1:ef18a7a8412761934bcfa18b04a1fb8d5092b874</id>
<content type='text'>
the user supplied buffer.  this can be a problem when the user doesn't
supply a full dirent and we corrupt their memory.
</content>
</entry>
<entry>
<title>Fix SCM ID's.</title>
<updated>2002-02-01T00:57:29Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-02-01T00:57:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ea8d448a923f0d68d7ecf1d2a0583c7d17bdee4e'/>
<id>urn:sha1:ea8d448a923f0d68d7ecf1d2a0583c7d17bdee4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove _THREAD_SAFE and make libc thread-safe by default by</title>
<updated>2001-01-24T13:01:12Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2001-01-24T13:01:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d201fe46e355212750b727061e6a7ac005267852'/>
<id>urn:sha1:d201fe46e355212750b727061e6a7ac005267852</id>
<content type='text'>
adding (weak definitions to) stubs for some of the pthread
functions.  If the threads library is linked in, the real
pthread functions will pulled in.

Use the following convention for system calls wrapped by the
threads library:
	__sys_foo - actual system call
	_foo - weak definition to __sys_foo
	foo - weak definition to __sys_foo

Change all libc uses of system calls wrapped by the threads
library from foo to _foo.  In order to define the prototypes
for _foo(), we introduce namespace.h and un-namespace.h
(suggested by bde).  All files that need to reference these
system calls, should include namespace.h before any standard
includes, then include un-namespace.h after the standard
includes and before any local includes.  &lt;db.h&gt; is an exception
and shouldn't be included in between namespace.h and
un-namespace.h  namespace.h will define foo to _foo, and
un-namespace.h will undefine foo.

Try to eliminate some of the recursive calls to MT-safe
functions in libc/stdio in preparation for adding a mutex
to FILE.  We have recursive mutexes, but would like to avoid
using them if possible.

Remove uneeded includes of &lt;errno.h&gt; from a few files.

Add $FreeBSD$ to a few files in order to pass commitprep.

Approved by:	-arch
</content>
</entry>
<entry>
<title>#endif should not have a non-comment token after it.</title>
<updated>2000-12-13T08:59:18Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2000-12-13T08:59:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=515f933b8bd185634d1e067877b45358d406ba0e'/>
<id>urn:sha1:515f933b8bd185634d1e067877b45358d406ba0e</id>
<content type='text'>
GCC 2.97 (snapshot) complains about this.
</content>
</entry>
<entry>
<title>Cleanup XXXdir functions to eliminate global hash table of</title>
<updated>2000-12-06T03:15:49Z</updated>
<author>
<name>Daniel Eischen</name>
<email>deischen@FreeBSD.org</email>
</author>
<published>2000-12-06T03:15:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ef80a53495fe3b7ff0a974f0c382a10873ce723d'/>
<id>urn:sha1:ef80a53495fe3b7ff0a974f0c382a10873ce723d</id>
<content type='text'>
telldir positions.  This will allow (future) locking on a
per-DIR basis (for MT-safety).  For now, this change does
the following:

  o Remove the hash table from telldir.c.  Recode to use queue
    macros.

  o Remove 'const' from 'telldir(const DIR *)'.

  o Remove 'register' variables as suggested in a recent
    thread.

No response from: -current
</content>
</entry>
<entry>
<title>#include &lt;string.h&gt; for memcpy() prototype</title>
<updated>2000-06-03T00:27:54Z</updated>
<author>
<name>Kris Kennaway</name>
<email>kris@FreeBSD.org</email>
</author>
<published>2000-06-03T00:27:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6641555f44ba9e5dd5b6d5d14732647702797256'/>
<id>urn:sha1:6641555f44ba9e5dd5b6d5d14732647702797256</id>
<content type='text'>
Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>style fixes, remove extra braces.</title>
<updated>1999-11-29T19:12:50Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>1999-11-29T19:12:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8b6c02f328e21efda4d5de8c79d8b553e8b4ce2f'/>
<id>urn:sha1:8b6c02f328e21efda4d5de8c79d8b553e8b4ce2f</id>
<content type='text'>
readdir_r is not POSIX according to POSIX_SOURCE, bruce says:
&gt; readdir_r() is in the _POSIX_SOURCE section, but is not a POSIX.1-1990
&gt; function.  It's POSIX.1-1996 so it should be under a different feature
&gt; test which we don't support yet.

make sure errno is saved so that its contents are cleared unless
necessary.

Submitted by: bde
</content>
</entry>
<entry>
<title>Provide a man page for Alfreds lovely readdir_r function.  Also</title>
<updated>1999-11-29T06:12:22Z</updated>
<author>
<name>Wes Peters</name>
<email>wes@FreeBSD.org</email>
</author>
<published>1999-11-29T06:12:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=00ecacd3c4dda87acb118d84abc278c6f8f737ca'/>
<id>urn:sha1:00ecacd3c4dda87acb118d84abc278c6f8f737ca</id>
<content type='text'>
fixed a minor indentation nit and added a few {}s to make readdir_r
easier on old eyes.
</content>
</entry>
<entry>
<title>add pthread_cancel, obtained from OpenBSD.</title>
<updated>1999-11-28T05:38:13Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>1999-11-28T05:38:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7285bccf1a9224fadd3b7b81be034cd04f35a820'/>
<id>urn:sha1:7285bccf1a9224fadd3b7b81be034cd04f35a820</id>
<content type='text'>
eischen (Daniel Eischen) added wrappers to protect against cancled
threads orphaning internal resources.

the cancelability code is still a bit fuzzy but works for test
programs of my own, OpenBSD's and some examples from ORA's books.

add readdir_r to both libc and libc_r

add some 'const' attributes to function parameters

Reviewed by: eischen, jasone
</content>
</entry>
</feed>
