| Commit message (Expand) | Author | Files | Lines |
| 2013-07-09 | fix fd leak on races and cancellation in ctermid | Rich Felker | 1 | -2/+3 |
| 2013-07-09 | fix missing SOCK_CLOEXEC in various functions that use sockets internally | Rich Felker | 4 | -4/+4 |
| 2013-07-06 | add NFDBITS in sys/select.h with appropriate feature tests•••the main use for this macro seems to be knowing the correct allocation
granularity for dynamic-sized fd_set objects. such usage is
non-conforming and results in undefined behavior, but it is widespread
in applications.
| Rich Felker | 1 | -0/+3 |
| 2013-07-04 | move core memalign code from aligned_alloc to __memalign•••there are two motivations for this change. one is to avoid
gratuitously depending on a C11 symbol for implementing a POSIX
function. the other pertains to the documented semantics. C11 does not
define any behavior for aligned_alloc when the length argument is not
a multiple of the alignment argument. posix_memalign on the other hand
places no requirements on the length argument. using __memalign as the
implementation of both, rather than trying to implement one in terms
of the other when their documented contracts differ, eliminates this
confusion.
| Rich Felker | 3 | -49/+55 |
| 2013-07-04 | move alignment check from aligned_alloc to posix_memalign•••C11 has no requirement that the alignment be a multiple of
sizeof(void*), and in fact seems to require any "valid alignment
supported by the implementation" to work. since the alignment of char
is 1 and thus a valid alignment, an alignment argument of 1 should be
accepted.
| Rich Felker | 2 | -1/+2 |