<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/include/stdlib.h, branch release/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2016-07-05T22:30:29Z</updated>
<entry>
<title>Remove incorrect attributes from posix_memalign(3) declaration.</title>
<updated>2016-07-05T22:30:29Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2016-07-05T22:30:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9143e6e49afc1bee47713c740c1fe290690739b6'/>
<id>urn:sha1:9143e6e49afc1bee47713c740c1fe290690739b6</id>
<content type='text'>
Both __alloc_align and __alloc_size can't be used when the function
returns a pointer to memory. This fixes breakage when building with
clang 3.4:

In file included from /usr/src/svn/usr.sbin/bhyve/atkbdc.c:40:
/usr/include/stdlib.h:176:6: error: '__alloc_size__' attribute only
applies to functions that return a pointer [-Werror,-Wignored-attributes]

Pointed out by:	ngie, cem
Approved by:	re (gjb)
</content>
</entry>
<entry>
<title>For C++, expose long long types and functions (lldiv_t, llabs, lldiv,</title>
<updated>2016-03-23T19:17:12Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2016-03-23T19:17:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4ec98362ae5d572c46c2973eec55a9ed942f0ab0'/>
<id>urn:sha1:4ec98362ae5d572c46c2973eec55a9ed942f0ab0</id>
<content type='text'>
etc) in stdlib.h.  These will be needed for newer versions of libc++,
which uses them for defining overloaded versions of abs() and div().

MFC after:	1 week
</content>
</entry>
<entry>
<title>Make use of GCC alloc_align attribute</title>
<updated>2015-05-15T20:43:37Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-05-15T20:43:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ee90489bc428c6a002afe631f44247a31af787e7'/>
<id>urn:sha1:ee90489bc428c6a002afe631f44247a31af787e7</id>
<content type='text'>
This lets the compiler know about the alignment of pointers returned
by aligned_alloc(3), posix_memalign(3). and contigmalloc(9)

Currently this is only supported in recent gcc but we are ready to
use it if clang implements it.

Relnotes:	yes
</content>
</entry>
<entry>
<title>No need for result_use_check attribute in reallocf(3).</title>
<updated>2015-05-01T20:40:48Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-05-01T20:40:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d0e9981e397cb9acc04953f0b3f8deb1c0b72444'/>
<id>urn:sha1:d0e9981e397cb9acc04953f0b3f8deb1c0b72444</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move reallocarray definition to the _BSD_VISIBLE block</title>
<updated>2015-05-01T19:14:32Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2015-05-01T19:14:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8f0baadaa0a3e77e70a85474f2262ee28e637ccb'/>
<id>urn:sha1:8f0baadaa0a3e77e70a85474f2262ee28e637ccb</id>
<content type='text'>
Add the required __alloc_size attributes

Requested by:	pfg
</content>
</entry>
<entry>
<title>Import reallocarray(3) from OpenBSD</title>
<updated>2015-05-01T18:32:16Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2015-05-01T18:32:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=450dfafb1519ae7bb0615368ba45813bcabb9b35'/>
<id>urn:sha1:450dfafb1519ae7bb0615368ba45813bcabb9b35</id>
<content type='text'>
Add a manpage for it, assign the copyright to the OpenBSD project on it since it
is mostly copy/paste from OpenBSD manpage.
style(9) fixes

Differential Revision:	https://reviews.freebsd.org/D2420
Reviewed by:	kib
</content>
</entry>
<entry>
<title>Make use of gcc attributes in some standard include headers.</title>
<updated>2015-04-06T01:39:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-04-06T01:39:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=153cbcd6579a5c285e7f384c09211b081bb800c4'/>
<id>urn:sha1:153cbcd6579a5c285e7f384c09211b081bb800c4</id>
<content type='text'>
The `nonnull' attribute specifies that some function parameters should be
non-null pointers.  This is very useful as it helps the compiler generate
warnings on suspicious code and can also enable some small optimizations.

Also start using 'alloc_size' attribute in the allocator functions.

This is an initial step to better integrate our libc with the compiler:
these attributes are fully supported by clang and they are also useful
for the static analyzer.

Note that due to some bogus internal procedure in the way gcc ports
are built they may require updating if they were built before r280801.

Relnotes:		yes
Hinted by:		Android's bionic libc
Differential Revision:	https://reviews.freebsd.org/D2107
</content>
</entry>
<entry>
<title>Clean sparse spaces.</title>
<updated>2015-03-25T16:54:37Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2015-03-25T16:54:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1693a59a64fcf23e926c3cbf99948e11e2f93294'/>
<id>urn:sha1:1693a59a64fcf23e926c3cbf99948e11e2f93294</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add bsearch_b to the libc map and the stdlib header.</title>
<updated>2014-09-01T22:25:42Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2014-09-01T22:25:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f4189cd649c821a21b2c0cf0e87df1efdf2c24af'/>
<id>urn:sha1:f4189cd649c821a21b2c0cf0e87df1efdf2c24af</id>
<content type='text'>
bsearch_b is the Apple blocks enabled version of bsearch(3).
This was added to libc in Revision 264042 but the commit
missed the declaration required to make use of it.

While here move some other block-related functions to the
BSD_VISIBLE block as these are non-standard.

Phabric:	D638
Reviewed by:	theraven, wollman
</content>
</entry>
<entry>
<title>Add support for some block functions that come from OS X.  These are</title>
<updated>2014-04-02T16:07:48Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2014-04-02T16:07:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=46cdc14062f7b52d86bd3791220019ebc8c9c120'/>
<id>urn:sha1:46cdc14062f7b52d86bd3791220019ebc8c9c120</id>
<content type='text'>
intended to build with any C compiler.

Reviewed by:	pfg
MFC after:	3 weeks
</content>
</entry>
</feed>
