<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include/stdlib.h, branch upstream/10.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2017-02-19T21:10:34Z</updated>
<entry>
<title>MFC r313819:</title>
<updated>2017-02-19T21:10:34Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-02-19T21:10:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5a890f1dd26edd2811870900bfc160f2436ce49a'/>
<id>urn:sha1:5a890f1dd26edd2811870900bfc160f2436ce49a</id>
<content type='text'>
Remove outdated claim.

Despite wishful thinking the removal of these old functions hasn't
happened yet.
</content>
</entry>
<entry>
<title>MFC r297212:</title>
<updated>2016-03-30T22:12:07Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2016-03-30T22:12:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d0199524f9dace732b4fe24fd50c82b40697f26c'/>
<id>urn:sha1:d0199524f9dace732b4fe24fd50c82b40697f26c</id>
<content type='text'>
For C++, expose long long types and functions (lldiv_t, llabs, lldiv,
etc) in stdlib.h.  These will be needed for newer versions of libc++,
which uses them for defining overloaded versions of abs() and div().
</content>
</entry>
<entry>
<title>MFC r263998:</title>
<updated>2014-04-15T09:41:52Z</updated>
<author>
<name>Tijl Coosemans</name>
<email>tijl@FreeBSD.org</email>
</author>
<published>2014-04-15T09:41:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=13fee2c7c3e27dda92dc1ea24dad57b92a167b3d'/>
<id>urn:sha1:13fee2c7c3e27dda92dc1ea24dad57b92a167b3d</id>
<content type='text'>
Rename __wchar_t so it no longer conflicts with __wchar_t from clang 3.4
-fms-extensions.
</content>
</entry>
<entry>
<title>Add mkostemp() and mkostemps().</title>
<updated>2013-08-09T17:24:23Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-08-09T17:24:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=65ba8dff5f7afa757806b78f2476bf61f8ff16c4'/>
<id>urn:sha1:65ba8dff5f7afa757806b78f2476bf61f8ff16c4</id>
<content type='text'>
These are like mkstemp() and mkstemps() but allow passing open(2) flags like
O_CLOEXEC.
</content>
</entry>
<entry>
<title>stdlib.h: Add correct POSIX version for POSIX extensions to C.</title>
<updated>2013-07-05T14:16:04Z</updated>
<author>
<name>Jilles Tjoelker</name>
<email>jilles@FreeBSD.org</email>
</author>
<published>2013-07-05T14:16:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e45e1f2730144fdf02392e902989e9020e33f730'/>
<id>urn:sha1:e45e1f2730144fdf02392e902989e9020e33f730</id>
<content type='text'>
</content>
</entry>
<entry>
<title>1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range,</title>
<updated>2013-07-03T21:21:54Z</updated>
<author>
<name>Andrey A. Chernov</name>
<email>ache@FreeBSD.org</email>
</author>
<published>2013-07-03T21:21:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=476d9314d6247b8386926960081689e8f395594c'/>
<id>urn:sha1:476d9314d6247b8386926960081689e8f395594c</id>
<content type='text'>
but ACM formula we use have internal state (and return value) in the
[1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is never reached
because it is off by one, zero is not reached too.

Correct both RAND_MAX and rand(3) return value, shifting last one
to the 0 by 1 subtracted, resulting POSIXed [0, 0x7ffffffd(=new RAND_MAX)]
range.

2) Add a checks for not overflowing on too big seeds. It may happens on
the machines, where sizeof(unsigned int) &gt; 32 bits.

Reviewed by:    bde [1]
MFC after:      2 weeks
</content>
</entry>
<entry>
<title>Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch,</title>
<updated>2012-04-17T07:22:14Z</updated>
<author>
<name>Jason Evans</name>
<email>jasone@FreeBSD.org</email>
</author>
<published>2012-04-17T07:22:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a4bd5210d5e680818a9319a76ebf71caef95bcd3'/>
<id>urn:sha1:a4bd5210d5e680818a9319a76ebf71caef95bcd3</id>
<content type='text'>
prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc.
The code being imported by this commit diverged from
lib/libc/stdlib/malloc.c in March 2010, which means that a portion of
the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries
for all subsequent releases.
</content>
</entry>
<entry>
<title>Correctly expose xlocale functions if people include the headers in the wrong</title>
<updated>2012-03-28T12:11:54Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2012-03-28T12:11:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3ac9d659890471a1936268bfec06e74caf9025df'/>
<id>urn:sha1:3ac9d659890471a1936268bfec06e74caf9025df</id>
<content type='text'>
order (as some ports apparently do).

Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Expose some C11 stuff that is also C++11 stuff in C++11 mode.</title>
<updated>2012-03-14T14:39:07Z</updated>
<author>
<name>David Chisnall</name>
<email>theraven@FreeBSD.org</email>
</author>
<published>2012-03-14T14:39:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=79d09835dd3c33a699b00d00ec50be6a4512b57f'/>
<id>urn:sha1:79d09835dd3c33a699b00d00ec50be6a4512b57f</id>
<content type='text'>
Approved by:	dim (mentor)
</content>
</entry>
<entry>
<title>Add aligned_alloc(3).</title>
<updated>2012-01-09T06:36:28Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2012-01-09T06:36:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9e16bab42ae3f817f87b3eca303c87a05d6a8226'/>
<id>urn:sha1:9e16bab42ae3f817f87b3eca303c87a05d6a8226</id>
<content type='text'>
The C11 folks reinvented the wheel by introducing an aligned version of
malloc(3) called aligned_alloc(3), instead of posix_memalign(3). Instead
of returning the allocation by reference, it returns the address, just
like malloc(3).

Reviewed by:	jasone@
</content>
</entry>
</feed>
