about summary refs log tree commit diff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* make mktemp match the historic behavior, and update functions that use itRich Felker2011-02-193-5/+8
| | | | | | the historic mktemp is supposed to blank the template string on failure, rather than returning 0. just zero the first character so that mkstemp and mkdtemp can still retry with O(1) space requirement.
* fix major bug created from copying mkdtemp logicRich Felker2011-02-191-1/+1
|
* add syscall wrappers for inotifyRich Felker2011-02-194-0/+28
|
* cleanup cruft left from when kernel and user time_t disagreedRich Felker2011-02-192-12/+3
|
* add pthread_atfork interfaceRich Felker2011-02-183-3/+55
| | | | | | | | | note that this presently does not handle consistency of the libc's own global state during forking. as per POSIX 2008, if the parent process was threaded, the child process may only call async-signal-safe functions until one of the exec-family functions is called, so the current behavior is believed to be conformant even if non-ideal. it may be improved at some later time.
* major improvements to temp file name generatorRich Felker2011-02-183-16/+21
| | | | | | | | use current time in nanoseconds and some potentially-random (if aslr is enabled) pointer values for the initial tempfile name generation, and step via a cheap linear prng on collisions. limit the number of retry attempts to prevent denial of service attacks even if an attacker can guess the filenames.
* reformat mkstemp like mkdtempRich Felker2011-02-181-7/+5
| | | | | this is cleaner and makes it easy to impose a limit on the number of retries later if it seems desirable to do so.
* add portable lchown (trivial to support and a few ancient things want it..)Rich Felker2011-02-171-0/+7
|
* reorganize pthread data structures and move the definitions to alltypes.hRich Felker2011-02-1724-83/+102
| | | | | | | | this allows sys/types.h to provide the pthread types, as required by POSIX. this design also facilitates forcing ABI-compatible sizes in the arch-specific alltypes.h, while eliminating the need for developers changing the internals of the pthread types to poke around with arch-specific headers they may not be able to test.
* make daemon try the operations that might fail before fork rather than afterRich Felker2011-02-171-12/+10
|
* daemon should check for failures and return -1Rich Felker2011-02-171-5/+8
|
* don't compare elements with themselves during qsort.Rich Felker2011-02-171-1/+1
| | | | | this is actually a workaround for a bug in gcc, whereby it asserts inequality of the keys being compared...
* fix printf %n specifier - missing breaks had it clobbering memoryRich Felker2011-02-161-7/+7
|
* patch by njk, simplifies thread register initialization for x86_64Rich Felker2011-02-161-4/+0
| | | | | It's not necessary to save any registers on the stack across syscall in x86_64 __set_thread_area. Don't waste cycles or bytes on it.
* patch from njk: make x86_64 __uniclone branchless.Rich Felker2011-02-161-6/+6
|
* fix compile failure: legacy cuserid needs to define feature testRich Felker2011-02-161-0/+1
|
* remove standalone syscall cruftRich Felker2011-02-1510-10/+0
| | | | | | | | | | | this was originally written for an early draft of the library where non-standard functions would reside in a static library separate from the shared libc.so, which would implement a pure standard. the idea was not to depend on an implementation-dependent __syscall_ret function in the main libc. but it turned out to be better to put everything in a single library for both static and dynamic linking uses, and thus the (incomplete) remnants of this feature were just enlarging the source and binary.
* Port musl to x86-64. One giant commit!Nicholas J. Kain2011-02-159-0/+138
|
* yet another ugly legacy syscall rename...Rich Felker2011-02-151-1/+1
|
* fix getrlimit handling on 32-bit systems, and ease porting to 64-bitRich Felker2011-02-151-3/+3
|
* cleanup socketcall syscall interface to ease porting to sane(r) archsRich Felker2011-02-1519-94/+17
|
* finish moving 32-bit-specific junk out of source files.Rich Felker2011-02-1511-21/+11
|
* move arch-specific internal headers into placeRich Felker2011-02-154-637/+0
|
* finish unifying thread register handling in preparation for portingRich Felker2011-02-155-52/+27
|
* begin unifying clone/thread management interface in preparation for portingRich Felker2011-02-153-34/+22
|
* make pthread_create return EAGAIN on resource failure, as required by POSIXRich Felker2011-02-151-1/+1
|
* guard against hard links to non-ordinary-files when reading tcb shadowRich Felker2011-02-141-2/+4
|
* more header cleanup and conformance fixes - string.hRich Felker2011-02-141-0/+1
|
* header cleanup, conformance fixes - signalsRich Felker2011-02-142-6/+3
|
* another pointer signedness fixRich Felker2011-02-141-1/+1
|
* fix some pointer signedness issues (this was invalid C)Rich Felker2011-02-142-3/+3
|
* more header fixes, minor warning fixRich Felker2011-02-144-2/+5
|
* ensure standard functions mk[sd]temp don't depend on removed function mktempRich Felker2011-02-143-5/+9
|
* put confstr.c with the other conf functionsRich Felker2011-02-141-0/+0
|
* begin namespace-cleanup of standard C headersRich Felker2011-02-142-0/+2
|
* use a more-correct integer type, and silence 64-bit warnings as a bonusRich Felker2011-02-131-2/+2
|
* fixed missing cast in the non-i386 version of shmat (preparation for ports)Rich Felker2011-02-131-1/+1
|
* cleanup multibyte stuff to remove ugly casts, sanitize the ptr align castsRich Felker2011-02-133-27/+27
|
* cleaning up syscalls in preparation for x86_64 portRich Felker2011-02-1318-37/+79
| | | | | | | | | - hide all the legacy xxxxxx32 name cruft in syscall.h so the actual source files can be clean and uniform across all archs. - cleanup llseek/lseek and mmap2/mmap handling for 32/64 bit systems - alternate implementation for nice if the target lacks nice syscall
* syscall cleanup for umount2Rich Felker2011-02-131-1/+0
|
* use umount2 syscall for umount (new targets lack old 1-arg umount)Rich Felker2011-02-131-2/+1
|
* reorganize thread exit code, make pthread_exit call cancellation handlers (pt2)Rich Felker2011-02-132-22/+51
|
* reorganize thread exit code, make pthread_exit call cancellation handlersRich Felker2011-02-131-25/+0
|
* fix previous commit that broke sigreturn. looks like the asm is needed.Rich Felker2011-02-133-5/+17
|
* fix omission that kept sa_restorer from being usedRich Felker2011-02-131-1/+1
|
* ensure that the compiler doesn't try to reorder around atomic opsRich Felker2011-02-121-13/+13
|
* initial check-in, version 0.5.0 v0.5.0Rich Felker2011-02-12856-0/+33417