| Commit message (Expand) | Author | Age | Files | Lines |
| * | add acct, accept4, setns, and dup3 syscalls (linux extensions)•••based on patch by Justin Cormack
| Rich Felker | 2012-09-08 | 3 | -0/+28 |
| * | add linux tee syscall | Rich Felker | 2012-09-08 | 1 | -0/+8 |
| * | add linux sync_file_range syscall | Rich Felker | 2012-09-08 | 1 | -0/+16 |
| * | move fallocate syscall wrapper to linux-specific syscalls dir | Rich Felker | 2012-09-08 | 1 | -0/+0 |
| * | add linux readahead syscall | Rich Felker | 2012-09-08 | 1 | -0/+8 |
| * | add fallocate (nonstandardized) function•••this is equivalent to posix_fallocate except that it has an extra
mode/flags argument to control its behavior, and stores the error in
errno rather than returning an error code.
| Rich Felker | 2012-09-08 | 1 | -0/+9 |
| * | fix broken fallocate syscall in posix_fallocate•••the syscall takes an extra flag argument which should be zero to meet
the POSIX requirements.
| Rich Felker | 2012-09-08 | 1 | -1/+1 |
| * | add timerfd interfaces (untested) | Rich Felker | 2012-09-08 | 1 | -0/+17 |
| * | cleanup src/linux and src/misc trees, etc.•••previously, it was pretty much random which one of these trees a given
function appeared in. they have now been organized into:
src/linux: non-POSIX linux syscalls (possibly shard with other nixen)
src/legacy: various obsolete/legacy functions, mostly wrappers
src/misc: still mostly uncategorized; some misc POSIX, some nonstd
src/crypt: crypt hash functions
further cleanup will be done later.
| Rich Felker | 2012-09-07 | 45 | -98/+74 |
| * | fix constraint violation in ftw•••void* does not implicitly convert to function pointer types.
| Rich Felker | 2012-09-06 | 1 | -1/+4 |
| * | further use of _Noreturn, for non-plain-C functions•••note that POSIX does not specify these functions as _Noreturn, because
POSIX is aligned with C99, not the new C11 standard. when POSIX is
eventually updated to C11, it will almost surely give these functions
the _Noreturn attribute. for now, the actual _Noreturn keyword is not
used anyway when compiling with a c99 compiler, which is what POSIX
requires; the GCC __attribute__ is used instead if it's available,
however.
in a few places, I've added infinite for loops at the end of _Noreturn
functions to silence compiler warnings. presumably
__buildin_unreachable could achieve the same thing, but it would only
work on newer GCCs and would not be portable. the loops should have
near-zero code size cost anyway.
like the previous _Noreturn commit, this one is based on patches
contributed by philomath.
| Rich Felker | 2012-09-06 | 6 | -10/+10 |
| * | fix invalid implicit pointer conversion in gnulib-compat functions | Rich Felker | 2012-09-06 | 1 | -1/+1 |
| * | add _Noreturn function attribute, with fallback for pre-C11 GNUC | Rich Felker | 2012-09-06 | 4 | -4/+4 |
| * | use restrict everywhere it's required by c99 and/or posix 2008•••to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.
| Rich Felker | 2012-09-06 | 164 | -198/+199 |
| * | remove dependency of wmemmove on wmemcpy direction•••unlike the memmove commit, this one should be fine to leave in place.
wmemmove is not performance-critical, and even if it were, it's
already copying whole 32-bit words at a time instead of bytes.
| Rich Felker | 2012-09-06 | 1 | -4/+4 |
| * | remove dependency of memmove on memcpy direction•••this commit introduces a performance regression in many uses of
memmove, which will need to be addressed before the next release. i'm
making it as a temporary measure so that the restrict patch can be
committed without invoking undefined behavior when memmove calls
memcpy with overlapping regions.
| Rich Felker | 2012-09-06 | 1 | -5/+4 |
| * | fix broken ttyname[_r] (failure to null-terminate result) | Rich Felker | 2012-09-06 | 1 | -1/+4 |
| * | fix missing statics in crypt_sha256 code | Rich Felker | 2012-08-30 | 1 | -3/+3 |
| * | anti-DoS rounds count limits for blowfish and des crypt•••all of the limits could use review, but err on the side of avoiding
excessive rounds for now.
| Rich Felker | 2012-08-29 | 2 | -2/+2 |
| * | limit sha512 rounds to similar runtime to sha256 limit•••these limits could definitely use review, but for now, i feel
consistency and erring on the side of preventing servers from getting
bogged down by excessively-slow user-provided settings (think
.htpasswd) are the best policy. blowfish should be updated to match.
| Rich Felker | 2012-08-29 | 1 | -1/+1 |
| * | add sha256/sha512 crypt•••based on versions sent to the list by nsz, with some simplification
and debloating. i'd still like to get them a bit smaller, or ideally
merge them into a single file with most of the code being shared, but
that can be done later.
| Rich Felker | 2012-08-29 | 4 | -1/+700 |
| * | fix bug caused by main app & libc having map set; cannot free them | Rich Felker | 2012-08-27 | 1 | -1/+1 |
| * | dladdr support for dynamic linker (nonstandard extension)•••based on patches submitted by boris brezillon. this commit also fixes
the issue whereby the main application and libc don't have the address
ranges of their mappings stored, which was theoretically a problem for
RTLD_NEXT support in dlsym; it didn't actually matter because libc
never calls dlsym, and it seemed to be doing the right thing (by
chance) for symbols in the main program as well.
| Rich Felker | 2012-08-26 | 2 | -0/+95 |
| * | implement "low hanging fruit" from C11•••based on Gregor's patch sent to the list. includes:
- stdalign.h
- removing gets in C11 mode
- adding aligned_alloc and adjusting other functions to use it
- adding 'x' flag to fopen for exclusive mode
| Rich Felker | 2012-08-25 | 4 | -49/+57 |
| * | add c11 quick_exit and at_quick_exit functions | Rich Felker | 2012-08-25 | 2 | -0/+44 |
| * | fix bug in gnu hash lookup on dlsym(handle, name) lookups•••wrong hash was being passed; just a copy/paste error. did not affect
lookups in the global namespace; this is probably why it was not
caught in testing.
| Rich Felker | 2012-08-25 | 1 | -1/+1 |
| * | clean up search_vec usage for vdso | Rich Felker | 2012-08-25 | 1 | -2/+2 |
| * | use new search_vec function to find vdso in dynamic linker | Rich Felker | 2012-08-25 | 1 | -4/+2 |
| * | ensure canary is setup if stack-prot libs are dlopen'd into non-ssp app•••previously, this usage could lead to a crash if the thread pointer was
still uninitialized, and otherwise would just cause the canary to be
zero (less secure).
| Rich Felker | 2012-08-25 | 2 | -2/+6 |
| * | add gnu hash support in the dynamic linker•••based on the patches contributed by boris brezillon.
| Rich Felker | 2012-08-25 | 1 | -12/+85 |
| * | optimize legacy ffs function | Rich Felker | 2012-08-23 | 1 | -4/+2 |
| * | fix bug whereby most atexit-registered functions got skipped | Rich Felker | 2012-08-19 | 1 | -3/+2 |
| * | make dynamic linker report all failures before exiting•••before, only the first library that failed to load or symbol that
failed to resolve was reported, and then the dynamic linker
immediately exited. when attempting to fix a library compatibility
issue, this is about the worst possible behavior. now we print all
errors as they occur and exit at the very end if errors were
encountered.
| Rich Felker | 2012-08-18 | 1 | -2/+6 |
| * | fix bug computing argc when invoking ld-musl-mips.so.1 progname ... | Rich Felker | 2012-08-17 | 1 | -3/+3 |
| * | fix extremely rare but dangerous race condition in robust mutexes•••if new shared mappings of files/devices/shared memory can be made
between the time a robust mutex is unlocked and its subsequent removal
from the pending slot in the robustlist header, the kernel can
inadvertently corrupt data in the newly-mapped pages when the process
terminates. i am fixing the bug by using the same global vm lock
mechanism that was used to fix the race condition with unmapping
barriers after pthread_barrier_wait returns.
| Rich Felker | 2012-08-17 | 3 | -20/+33 |
| * | fix float parsing logic for long decimal expansions•••this affects at least the case of very long inputs, but may also
affect shorter inputs that become long due to growth while upscaling.
basically, the logic for the circular buffer indices of the initial
base-10^9 digit and the slot one past the final digit, and for
simplicity of the loop logic, assumes an invariant that they're not
equal. the upscale loop, which can increase the length of the
base-10^9 representation, attempted to preserve this invariant, but
was actually only ensuring that the end index did not loop around past
the start index, not that the two never become equal.
the main (only?) effect of this bug was that subsequent logic treats
the excessively long number as having no digits, leading to junk
results.
| Rich Felker | 2012-08-17 | 1 | -1/+1 |
| * | handle null arguments to legacy bsd err.h functions | Rich Felker | 2012-08-15 | 1 | -2/+2 |
| * | add missing xattr functions•••not sure why these were originally omitted..
| Rich Felker | 2012-08-15 | 1 | -0/+15 |
| * | Merge remote-tracking branch 'nsz/exp' | Rich Felker | 2012-08-13 | 2 | -40/+35 |
| |\ |
|
| | * | math: fix exp.s on i386 and x86_64 so the exception flags are correct•••exp(inf), exp(-inf), exp(nan) used to raise wrong flags
| nsz | 2012-08-08 | 2 | -40/+35 |
| * | | remove significandl•••this function never existed historically; since the float/double
functions it's based on are nonstandard and deprecated, there's really
no justification for its existence except that glibc has it. it can be
added back if there's ever really a need...
| Rich Felker | 2012-08-13 | 1 | -7/+0 |
| * | | add significand[fl] math functions | Rich Felker | 2012-08-13 | 3 | -0/+21 |
| * | | memcpy asm for i386 and x86_64 | Rich Felker | 2012-08-11 | 2 | -0/+51 |
| * | | remove unused but buggy code from strstr.c | Rich Felker | 2012-08-11 | 1 | -10/+0 |
| * | | remove buggy short-string wcsstr implementation; always use twoway•••since this interface is rarely used, it's probably best to lean
towards keeping code size down anyway. one-character needles will
still be found immediately by the initial wcschr call anyway.
| Rich Felker | 2012-08-11 | 1 | -9/+0 |
| * | | add bsd fgetln function•••optimized to avoid allocation and return lines directly out of the
stream buffer whenever possible.
| Rich Felker | 2012-08-11 | 3 | -1/+21 |
| * | | minor but worthwhile optimization in printf: avoid expensive strspn•••the strspn call was made for every format specifier and end-of-string,
even though the expected return value was 1-2 for normal usage.
replace with simple loop.
| Rich Felker | 2012-08-10 | 1 | -4/+2 |
| * | | trivial optimization to printf: avoid wasted call frame•••amusingly, this cuts more than 10% off the run time of printf("a"); on
the machine i tested it on.
sadly the same optimization is not possible for snprintf without
duplicating all the pseudo-FILE setup code, which is not worth it.
| Rich Felker | 2012-08-10 | 1 | -1/+1 |
| * | | add blowfish hash support to crypt•••there are still some discussions going on about tweaking the code, but
at least thing brings us to the point of having something working in
the repository. hopefully the remaining major hashes (md5,sha) will
follow soon.
| Rich Felker | 2012-08-10 | 3 | -8/+806 |
| * | | fix (hopefully) all hard-coded 8's for kernel sigset_t size•••some minor changes to how hard-coded sets for thread-related purposes
are handled were also needed, since the old object sizes were not
necessarily sufficient. things have gotten a bit ugly in this area,
and i think a cleanup is in order at some point, but for now the goal
is just to get the code working on all supported archs including mips,
which was badly broken by linux rejecting syscalls with the wrong
sigset_t size.
| Rich Felker | 2012-08-09 | 14 | -20/+31 |