<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/lib/libc/gen/readdir.c, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2009-06-08T19:52:12Z</updated>
<entry>
<title>merge r174221: remove unnecessary casts</title>
<updated>2009-06-08T19:52:12Z</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2009-06-08T19:52:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5d13f1ee0db8cb8c1394ba6e13a4e804cd5ab4bc'/>
<id>urn:sha1:5d13f1ee0db8cb8c1394ba6e13a4e804cd5ab4bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC</title>
<updated>2008-05-19T11:43:36Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2008-05-19T11:43:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1066c76bab10989e5343646004d197da193ea5d5'/>
<id>urn:sha1:1066c76bab10989e5343646004d197da193ea5d5</id>
<content type='text'>
rev. 1.15 of lib/libc/gen/readdir.c
rev. 1.11 of lib/libc/gen/telldir.c
rev. 1.3  of lib/libc/gen/telldir.h

Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by:	Marc Balmer &lt;mbalmer at openbsd org&gt;
Obtained from:	OpenBSD
</content>
</entry>
<entry>
<title>Per Regents of the University of Calfornia letter, remove advertising</title>
<updated>2007-01-09T00:28:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2007-01-09T00:28:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c879ae3536e6d92b8d96c8965c5b05fcb9541520'/>
<id>urn:sha1:c879ae3536e6d92b8d96c8965c5b05fcb9541520</id>
<content type='text'>
clause.

# If I've done so improperly on a file, please let me know.
</content>
</entry>
<entry>
<title>Include a couple of headers to ensure consistency between the prototype and</title>
<updated>2005-09-12T19:52:42Z</updated>
<author>
<name>Stefan Farfeleder</name>
<email>stefanf@FreeBSD.org</email>
</author>
<published>2005-09-12T19:52:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=613100918de03164200eb28f7db1a2b1d701a697'/>
<id>urn:sha1:613100918de03164200eb28f7db1a2b1d701a697</id>
<content type='text'>
the function definition.
</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-test/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-test/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-test/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-test/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-test/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-test/commit/?id=6641555f44ba9e5dd5b6d5d14732647702797256'/>
<id>urn:sha1:6641555f44ba9e5dd5b6d5d14732647702797256</id>
<content type='text'>
Obtained from:	OpenBSD
</content>
</entry>
</feed>
