Commit Graph

3321 Commits

Author SHA1 Message Date
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.
2011-02-17 17:16:20 -05:00
Rich Felker
4fd159568a new solution for empty lib dir (old one had some problems) 2011-02-17 17:12:52 -05:00
Rich Felker
a36164c474 improve Makefile handling of git checkouts with missing lib/ and config.mak 2011-02-17 15:15:03 -05:00
Rich Felker
187fe29d5b make daemon try the operations that might fail before fork rather than after 2011-02-17 10:30:00 -05:00
Rich Felker
19e35c500b daemon should check for failures and return -1 2011-02-17 10:28:56 -05:00
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...
2011-02-17 00:03:24 -05:00
Rich Felker
798a12ecc4 ucontext is no longer in the standard, so use gnu-friendly struct name
note that this header is still bogus and needs a lot of work and
factoring into arch-dependent parts...
2011-02-16 23:36:26 -05:00
Rich Felker
417dbe92cb some gnu software wrongly uses "struct siginfo" instead of siginfo_t... 2011-02-16 22:37:26 -05:00
Rich Felker
56b784d603 add to pthread.h: pthread_mutex_timedlock and sched.h, time.h 2011-02-16 21:21:26 -05:00
Rich Felker
5cbd76c6b0 fix printf %n specifier - missing breaks had it clobbering memory 2011-02-16 18:19:46 -05:00
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.
2011-02-16 09:50:57 -05:00
Rich Felker
22cd9cae81 patch from njk: make x86_64 __uniclone branchless. 2011-02-16 09:49:54 -05:00
Rich Felker
bad481266e fix compile failure: legacy cuserid needs to define feature test 2011-02-16 09:30:56 -05:00
Rich Felker
571312de5f move stdio stuff that's not arch-specific out of bits 2011-02-15 19:47:22 -05:00
Rich Felker
8894947ba2 protect some limit constants with feature test macros on x86_64 2011-02-15 19:16:37 -05:00
Rich Felker
f451462098 fix the types of some integer constant limits in headers 2011-02-15 19:15:45 -05:00
Rich Felker
6d36c2098b fix missing EXIT_* in stdlib.h after header cleanup 2011-02-15 17:33:52 -05:00
Rich Felker
1d72953787 feature test support in unistd.h 2011-02-15 16:28:36 -05:00
Rich Felker
cda892ddbe fix directory reading on x86_64 2011-02-15 16:08:48 -05:00
Rich Felker
26f3551419 prototype for gnu strcasestr (currently a stub) 2011-02-15 16:08:19 -05:00
Rich Felker
c0248191bd fix x86_64 wrongly reporting itself as ILP32 instead of LP64 2011-02-15 15:56:58 -05:00
Rich Felker
62275f7876 news for upcoming release 2011-02-15 15:52:26 -05:00
Rich Felker
4e30249643 fix another error from header cleanup, missing size_t in time.h 2011-02-15 15:25:31 -05:00
Rich Felker
3eb9feaa88 fix broken signal.h from header cleanup 2011-02-15 15:10:00 -05:00
Rich Felker
0b9a1ed00c some docs fixes for x86_64 2011-02-15 14:52:11 -05:00
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.
2011-02-15 14:39:02 -05:00
Rich Felker
44460c6d1e fix some type leakage (timer_t) from x86_64 commit 2011-02-15 14:32:46 -05:00
Nicholas J. Kain
062354f2e1 Optimize x86_64 atomics to take advantage of 64-bitness. 2011-02-15 08:26:46 -05:00
Nicholas J. Kain
ebc4a17957 Remove __syscall_lseek from x86_64 syscall.h. 2011-02-15 08:21:47 -05:00
Nicholas J. Kain
bb89bdd00e Update x86_64 bits to mirror (modulo platform differences) the latest changes
to i386.
2011-02-15 08:02:33 -05:00
Nicholas J. Kain
1e12632591 Port musl to x86-64. One giant commit! 2011-02-15 07:32:09 -05:00
Rich Felker
c2afb747b0 yet another ugly legacy syscall rename... 2011-02-15 05:52:27 -05:00
Rich Felker
f7eb91e795 fix getrlimit handling on 32-bit systems, and ease porting to 64-bit 2011-02-15 05:42:27 -05:00
Rich Felker
13a026bd79 split off arch-specific stdarg.h stuff 2011-02-15 05:06:15 -05:00
Rich Felker
03a2f3e48c cleanup socketcall syscall interface to ease porting to sane(r) archs 2011-02-15 04:40:40 -05:00
Rich Felker
cfe373146d finish moving 32-bit-specific junk out of source files. 2011-02-15 04:12:19 -05:00
Rich Felker
a5bf06c035 move arch-specific internal headers into place 2011-02-15 04:00:40 -05:00
Rich Felker
7b2dd2235d finish unifying thread register handling in preparation for porting 2011-02-15 03:56:52 -05:00
Rich Felker
0b2006c8fe begin unifying clone/thread management interface in preparation for porting 2011-02-15 03:24:58 -05:00
Rich Felker
59666802fb make pthread_create return EAGAIN on resource failure, as required by POSIX 2011-02-15 02:20:21 -05:00
Rich Felker
1355fdca7c preparing build system to handle ports - step 1 2011-02-15 00:33:23 -05:00
Rich Felker
8f4865c8d2 add previously-missing ios646.h 2011-02-14 21:59:38 -05:00
Rich Felker
df6e3ec74a add WHATSNEW file for 0.5.9 release 2011-02-14 21:58:53 -05:00
Rich Felker
976f42d1f1 guard against hard links to non-ordinary-files when reading tcb shadow 2011-02-14 21:15:07 -05:00
Rich Felker
ca1aa5bae9 more header cleanup and conformance fixes - string.h 2011-02-14 20:53:15 -05:00
Rich Felker
131b5be2f4 more header cleanup and conformance fixes - locale.h, time.h 2011-02-14 20:45:37 -05:00
Rich Felker
1322cb82a3 header cleanup, conformance fixes - signals 2011-02-14 20:33:54 -05:00
Rich Felker
c316b28445 update various bits headers for new linux additions
based on patch by nik
2011-02-14 20:03:55 -05:00
Rich Felker
6fbf8bfd75 another pointer signedness fix 2011-02-14 19:40:20 -05:00
Rich Felker
a8c17e6587 fix some pointer signedness issues (this was invalid C) 2011-02-14 19:37:01 -05:00