<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/lib/libc/gen/getcap.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-12-02T03:08:29Z</updated>
<entry>
<title>MFC revs 199781,199782,199784,199786:</title>
<updated>2009-12-02T03:08:29Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>2009-12-02T03:08:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=266be50da0d0753b054db33c073f07f6208f679e'/>
<id>urn:sha1:266be50da0d0753b054db33c073f07f6208f679e</id>
<content type='text'>
  Eliminate dead stores.

  In __mbsconv(), if prec was zero, nconv could have been used
  uninitialized.  Initialize it to a safe value so that there's no
  chance of returning an error if stack garbage happens to be equal to
  (size_t)-1 or (size_t)-2.

  In clnt_raw_create(), avoid minor race condition initializing the
  file-scope variable clntraw_private.

Mark head rev 199785 as merged; 7-STABLE's version of svc_raw_reply()
doesn't have the same bug (or even look all that similar).

Found by:		Clang static analyzer
</content>
</entry>
<entry>
<title>Merge r192129+r190661:</title>
<updated>2009-05-28T21:52:00Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2009-05-28T21:52:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=5bc4843143b9c918dbf7a3ffbd1fb10c4d332ef7'/>
<id>urn:sha1:5bc4843143b9c918dbf7a3ffbd1fb10c4d332ef7</id>
<content type='text'>
Properly handle malloc() failures.

PR:	bin/83338
</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>In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used.</title>
<updated>2003-01-02T10:19:43Z</updated>
<author>
<name>Thomas Quinot</name>
<email>thomas@FreeBSD.org</email>
</author>
<published>2003-01-02T10:19:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=464ef179a037714b6812b45fd58d9a7235458048'/>
<id>urn:sha1:464ef179a037714b6812b45fd58d9a7235458048</id>
<content type='text'>
This situation most notably arises in chkprintcap, when a /etc/printcap
entry has an empty rp= attribute. In that case, cgetmatch would enter
an infinite loop if any entry in the file has multiple names.

This causes lpd to hang at boot time on 5.0-DP2 when both conditions
are met (:rp=: and multiple names -- not necessarily on the same entry).

Reviewed by:	roberto
</content>
</entry>
<entry>
<title>Silence casting away constness warnings.</title>
<updated>2002-12-27T08:43:40Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-12-27T08:43:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=beb24986a7dccd1f7e740fe138f3b241474ef703'/>
<id>urn:sha1:beb24986a7dccd1f7e740fe138f3b241474ef703</id>
<content type='text'>
Make cgetmatch's locals const.
Make cdbget take a const string and copy it into a buffer.
</content>
</entry>
<entry>
<title>Remove multi-line __P() usage.</title>
<updated>2002-03-22T09:22:15Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2002-03-22T09:22:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=1372519b1579b695b7c87b8fbbdc2c113e985474'/>
<id>urn:sha1:1372519b1579b695b7c87b8fbbdc2c113e985474</id>
<content type='text'>
</content>
</entry>
<entry>
<title>const poison just like NetBSD.</title>
<updated>2002-03-22T02:43:01Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2002-03-22T02:43:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=80578e902c0b518908e85a79359f24e2d126c7b0'/>
<id>urn:sha1:80578e902c0b518908e85a79359f24e2d126c7b0</id>
<content type='text'>
</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>Fix some error-handling logic so that ferror is called before fclose,</title>
<updated>2000-12-02T00:07:56Z</updated>
<author>
<name>Garance A Drosehn</name>
<email>gad@FreeBSD.org</email>
</author>
<published>2000-12-02T00:07:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bbe8edb0ac4fc0e8b89dfe6000e2ced76bcfbef6'/>
<id>urn:sha1:bbe8edb0ac4fc0e8b89dfe6000e2ced76bcfbef6</id>
<content type='text'>
instead of immediately after the fclose.  The previous logic did work
on freebsd, but is somewhat risky practice (and causes trouble when
porting to other OS's).

PR:		bin/22965
Reviewed by:	Garrett Wollman
</content>
</entry>
</feed>
