Rich Felker
e882756311
reorganize pthread data structures and move the definitions to alltypes.h
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.
15 years ago
Rich Felker
187fe29d5b
make daemon try the operations that might fail before fork rather than after
15 years ago
Rich Felker
19e35c500b
daemon should check for failures and return -1
15 years ago
Rich Felker
b24bc15f5c
don't compare elements with themselves during qsort.
this is actually a workaround for a bug in gcc, whereby it asserts
inequality of the keys being compared...
15 years ago
Rich Felker
5cbd76c6b0
fix printf %n specifier - missing breaks had it clobbering memory
15 years ago
Rich Felker
e3657ba599
patch by njk, simplifies thread register initialization for x86_64
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.
15 years ago
Rich Felker
22cd9cae81
patch from njk: make x86_64 __uniclone branchless.
15 years ago
Rich Felker
bad481266e
fix compile failure: legacy cuserid needs to define feature test
15 years ago
Rich Felker
9b235e8374
remove standalone syscall cruft
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.
15 years ago
Nicholas J. Kain
1e12632591
Port musl to x86-64. One giant commit!
15 years ago
Rich Felker
c2afb747b0
yet another ugly legacy syscall rename...
15 years ago
Rich Felker
f7eb91e795
fix getrlimit handling on 32-bit systems, and ease porting to 64-bit
15 years ago
Rich Felker
03a2f3e48c
cleanup socketcall syscall interface to ease porting to sane(r) archs
15 years ago
Rich Felker
cfe373146d
finish moving 32-bit-specific junk out of source files.
15 years ago
Rich Felker
a5bf06c035
move arch-specific internal headers into place
15 years ago
Rich Felker
7b2dd2235d
finish unifying thread register handling in preparation for porting
15 years ago
Rich Felker
0b2006c8fe
begin unifying clone/thread management interface in preparation for porting
15 years ago
Rich Felker
59666802fb
make pthread_create return EAGAIN on resource failure, as required by POSIX
15 years ago
Rich Felker
976f42d1f1
guard against hard links to non-ordinary-files when reading tcb shadow
15 years ago
Rich Felker
ca1aa5bae9
more header cleanup and conformance fixes - string.h
15 years ago
Rich Felker
1322cb82a3
header cleanup, conformance fixes - signals
15 years ago
Rich Felker
6fbf8bfd75
another pointer signedness fix
15 years ago
Rich Felker
a8c17e6587
fix some pointer signedness issues (this was invalid C)
15 years ago
Rich Felker
c247ebdd98
more header fixes, minor warning fix
15 years ago
Rich Felker
5377715ce0
ensure standard functions mk[sd]temp don't depend on removed function mktemp
15 years ago
Rich Felker
c255e5542d
put confstr.c with the other conf functions
15 years ago
Rich Felker
80695b1d1e
begin namespace-cleanup of standard C headers
15 years ago
Rich Felker
7fe308eb9f
use a more-correct integer type, and silence 64-bit warnings as a bonus
15 years ago
Rich Felker
a130d33cad
fixed missing cast in the non-i386 version of shmat (preparation for ports)
15 years ago
Rich Felker
f9d880d258
cleanup multibyte stuff to remove ugly casts, sanitize the ptr align casts
15 years ago
Rich Felker
2cdfb7ca26
cleaning up syscalls in preparation for x86_64 port
- 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
15 years ago
Rich Felker
978ca01659
syscall cleanup for umount2
15 years ago
Rich Felker
a5dec11306
use umount2 syscall for umount (new targets lack old 1-arg umount)
15 years ago
Rich Felker
1a9a2ff7b0
reorganize thread exit code, make pthread_exit call cancellation handlers (pt2)
15 years ago
Rich Felker
50e26f09eb
reorganize thread exit code, make pthread_exit call cancellation handlers
15 years ago
Rich Felker
dc3776d445
fix previous commit that broke sigreturn. looks like the asm is needed.
15 years ago
Rich Felker
e1d8d25a50
fix omission that kept sa_restorer from being used
15 years ago
Rich Felker
0bcbb53dc4
ensure that the compiler doesn't try to reorder around atomic ops
15 years ago
Rich Felker
0b44a0315b
initial check-in, version 0.5.0
15 years ago