| #
46ed9e49
|
| 04-Sep-2013 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r255209
|
| #
65ba8dff
|
| 09-Aug-2013 |
Jilles Tjoelker <jilles@FreeBSD.org> |
Add mkostemp() and mkostemps().
These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC.
|
| #
40f65a4d
|
| 07-Aug-2013 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r254014
|
| #
92e0a672
|
| 19-Jul-2013 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r253461
|
| #
552311f4
|
| 17-Jul-2013 |
Xin LI <delphij@FreeBSD.org> |
IFC @253398
|
| #
e45e1f27
|
| 05-Jul-2013 |
Jilles Tjoelker <jilles@FreeBSD.org> |
stdlib.h: Add correct POSIX version for POSIX extensions to C.
|
| #
ceae90c2
|
| 05-Jul-2013 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r252763
|
| #
476d9314
|
| 03-Jul-2013 |
Andrey A. Chernov <ache@FreeBSD.org> |
1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is n
1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, 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) > 32 bits.
Reviewed by: bde [1] MFC after: 2 weeks
show more ...
|
| #
6a068746
|
| 15-May-2012 |
Alexander Motin <mav@FreeBSD.org> |
MFC
|
| #
3d328873
|
| 30-Apr-2012 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge head r233826 through r234834.
|
| #
38f1b189
|
| 26-Apr-2012 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r234692
sys/amd64/include/cpufunc.h sys/amd64/include/fpu.h sys/amd64/amd64/fpu.c sys/amd64/vmm/vmm.c
- Add API to allow vmm FPU state init/save/restore.
FP stuff discussed with: kib
|
| #
8833b15f
|
| 03-Apr-2012 |
Gleb Smirnoff <glebius@FreeBSD.org> |
Merge head r232686 through r233825 into projects/pf/head.
|
| #
8fa0b743
|
| 23-Jan-2012 |
Xin LI <delphij@FreeBSD.org> |
IFC @230489 (pending review).
|
| #
80dbff4e
|
| 04-Jan-2012 |
Sean Bruno <sbruno@FreeBSD.org> |
IFC to head to catch up the bhyve branch
Approved by: grehan@
|
| #
3ee1a36e
|
| 22-Nov-2011 |
Peter Grehan <grehan@FreeBSD.org> |
IFC @ r227804
Pull in the virtio drivers from head.
|
| #
14d447de
|
| 04-May-2010 |
Konstantin Belousov <kib@FreeBSD.org> |
MFC r206893: Slightly modernize realpath(3).
SUSv4 requires that implementation returns EINVAL if supplied path is NULL, and ENOENT if path is empty string [1]. Bring prototype in conformance with S
MFC r206893: Slightly modernize realpath(3).
SUSv4 requires that implementation returns EINVAL if supplied path is NULL, and ENOENT if path is empty string [1]. Bring prototype in conformance with SUSv4, adding restrict keywords. Allow the resolved path buffer pointer be NULL, in which case realpath(3) allocates storage with malloc().
MFC r206898: Free() is not allowed to modify errno, remove safety brackets around it. Add small optimization, do not copy a string to the buffer that is to be freed immediately after.
MFC r206997: Move realpath(3) prototype to a POSIX section.
MFC r206998: Add standards section, improve wording, taking into account the handling of NULL and changed type in declaration.
show more ...
|
| #
a4bd5210
|
| 17-Apr-2012 |
Jason Evans <jasone@FreeBSD.org> |
Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch, prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc. The code being imported by this commit diverged from lib
Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch, 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.
show more ...
|
| #
3ac9d659
|
| 28-Mar-2012 |
David Chisnall <theraven@FreeBSD.org> |
Correctly expose xlocale functions if people include the headers in the wrong order (as some ports apparently do).
Approved by: dim (mentor)
|
| #
79d09835
|
| 14-Mar-2012 |
David Chisnall <theraven@FreeBSD.org> |
Expose some C11 stuff that is also C++11 stuff in C++11 mode.
Approved by: dim (mentor)
|
| #
9e16bab4
|
| 09-Jan-2012 |
Ed Schouten <ed@FreeBSD.org> |
Add aligned_alloc(3).
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
Add aligned_alloc(3).
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@
show more ...
|
| #
5d8c5f69
|
| 08-Jan-2012 |
Ed Schouten <ed@FreeBSD.org> |
Fix spelling of C11 and sort functions by name.
|
| #
b1214a51
|
| 26-Dec-2011 |
Ed Schouten <ed@FreeBSD.org> |
Improve C11 bits in <stdlib.h>:
- Add missing semicolon to quick_exit(), - Remove `func' parameter name from at_quick_exit(), - Fix indentation. - Compare against 2011 value.
|
| #
f6ab8089
|
| 13-Dec-2011 |
Ed Schouten <ed@FreeBSD.org> |
Replace __const by const in all non-contributed source code.
As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use
Replace __const by const in all non-contributed source code.
As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well.
show more ...
|
| #
57979d1b
|
| 07-Dec-2011 |
David Chisnall <theraven@FreeBSD.org> |
As per das@'s suggestion, s/__noreturn/_Noreturn/, since the latter is an identifier reserved for the implementation in C99 and earlier so there is no sensible reason for introducing yet another rese
As per das@'s suggestion, s/__noreturn/_Noreturn/, since the latter is an identifier reserved for the implementation in C99 and earlier so there is no sensible reason for introducing yet another reserved identifier when we could just use the one C1x uses.
Approved by: brooks (mentor)
show more ...
|
| #
0a31efe0
|
| 07-Dec-2011 |
David Chisnall <theraven@FreeBSD.org> |
Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add a __noreturn macro and modify the other exiting functions to use it.
The __noreturn macro, unlike __dead2, must be used BEFORE th
Implement quick_exit() / at_quick_exit() from C++11 / C1x. Also add a __noreturn macro and modify the other exiting functions to use it.
The __noreturn macro, unlike __dead2, must be used BEFORE the function. This is in line with the C and C++ specifications that place _Noreturn (c1x) and [[noreturn]] (C++11) in front of the functions. As with __dead2, this macro falls back to using the GCC attribute.
Unfortunately, clang currently sets the same value for the C version macro in C99 and C1x modes, so these functions are hidden by default. At some point before 10.0, I need to go through the headers and clean up the C1x / C++11 visibility.
Reviewed by: brooks (mentor)
show more ...
|