musl/include
Rich Felker 3f72cdac73 overhaul clone syscall wrapping
several things are changed. first, i have removed the old __uniclone
function signature and replaced it with the "standard" linux
__clone/clone signature. this was necessary to expose clone to
applications anyway, and it makes it easier to port __clone to new
archs, since it's now testable independently of pthread_create.

secondly, i have removed all references to the ugly ldt descriptor
structure (i386 only) from the c code and pthread structure. in places
where it is needed, it is now created on the stack just when it's
needed, in assembly code. thus, the i386 __clone function takes the
desired thread pointer as its argument, rather than an ldt descriptor
pointer, just like on all other sane archs. this should not affect
applications since there is really no way an application can use clone
with threads/tls in a way that doesn't horribly conflict with and
clobber the underlying implementation's use. applications are expected
to use clone only for creating actual processes, possibly with new
namespace features and whatnot.
2011-09-18 10:14:37 -04:00
..
arpa initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
linux some linux headers useful from user apps. 2011-03-18 21:53:30 -04:00
net initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
netinet add IN_LOOPBACKNET constant (nonstandard but in reserved namespace) 2011-04-06 15:44:39 -04:00
netpacket add netpacket/packet.h 2011-06-09 21:47:24 -04:00
sys implement ptrace syscall wrapper (untested) 2011-09-15 13:03:13 -04:00
aio.h fix return types for aio_read and aio_write again 2011-09-13 21:21:53 -04:00
alloca.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
assert.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
byteswap.h move bswap functions to static inline in byteswap.h 2011-04-12 13:04:17 -04:00
cpio.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ctype.h extensive header cleanup for standards conformance & correctness 2011-02-14 18:41:25 -05:00
dirent.h fix handling of d_name in struct dirent 2011-06-06 18:04:28 -04:00
dlfcn.h further fixup dlfcn.h 2011-06-27 01:02:28 -04:00
elf.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
endian.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
err.h support the nonstandard err.h interfaces 2011-04-05 11:16:49 -04:00
errno.h use __attribute__((const)) for errno and pthread_self if __GNUC__ is defined 2011-06-06 20:12:42 -04:00
fcntl.h fix O_SYNC definition, cleanup fcntl.h 2011-04-14 22:06:30 -04:00
features.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
fenv.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
float.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
fnmatch.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ftw.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
getopt.h getopt.h is a GNU-getopt-specific header. always expose GNU functions. 2011-04-05 15:45:24 -04:00
glob.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
grp.h fix prototypes/signature for setgroups, etc. 2011-04-13 09:03:22 -04:00
iconv.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
inttypes.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
iso646.h add previously-missing ios646.h 2011-02-14 21:59:38 -05:00
langinfo.h extensive header cleanup for standards conformance & correctness 2011-02-14 18:41:25 -05:00
libgen.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
libintl.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
limits.h move all limits that don't vary out of bits/limits.h, into main limits.h 2011-06-25 15:38:00 -04:00
locale.h more header cleanup and conformance fixes - locale.h, time.h 2011-02-14 20:45:37 -05:00
malloc.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
math.h isgreater etc. relation macros for math.h 2011-06-08 16:33:04 -04:00
mntent.h add profile for getmntent_r 2011-04-13 15:24:26 -04:00
mqueue.h add support for POSIX message queues, except mq_notify 2011-06-07 01:52:27 -04:00
netdb.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
nl_types.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
paths.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
poll.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
pthread.h macro for pthread_equal 2011-08-14 15:17:36 -04:00
pty.h implement (nonstandard) forkpty 2011-04-20 20:55:13 -04:00
pwd.h prototype for getpass 2011-03-28 20:43:51 -04:00
regex.h duplicate re_nsub in LSB/glibc ABI compatible location 2011-06-16 16:53:11 -04:00
resolv.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
sched.h overhaul clone syscall wrapping 2011-09-18 10:14:37 -04:00
search.h XSI search.h API implementation by Szabolcs Nagy 2011-06-25 18:18:57 -04:00
semaphore.h preliminaries to adding POSIX semaphores 2011-03-03 18:32:26 -05:00
setjmp.h major bugfix for sigset_t (it was mistakenly 1024 bytes instead of bits) 2011-02-14 18:45:58 -05:00
shadow.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
signal.h implement gnu sigisemptyset 2011-09-12 00:00:30 -04:00
spawn.h fix various errors in function signatures/prototypes found by nsz 2011-09-13 21:09:35 -04:00
stdarg.h use compiler builtins for variadic macros when available 2011-04-27 23:41:48 -04:00
stdbool.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
stddef.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
stdint.h more types cleanup 2011-04-11 10:48:52 -04:00
stdio.h add prototypes for GNU *_unlocked stdio functions 2011-09-11 22:50:02 -04:00
stdio_ext.h add and consolidate nasty stdio_ext junk 2011-06-30 12:44:48 -04:00
stdlib.h declare alloca in stdlib.h when _GNU_SOURCE is defined 2011-09-11 22:43:57 -04:00
string.h add dummied strverscmp (obnoxious GNU function) 2011-09-11 22:45:56 -04:00
strings.h extensive header cleanup for standards conformance & correctness 2011-02-14 18:41:25 -05:00
stropts.h fill in junk in stropts.h 2011-06-30 20:23:24 -04:00
sysexits.h add sysexits.h legacy header 2011-04-05 15:40:36 -04:00
syslog.h add syslog.h cruft for syslogd to use... 2011-04-13 16:13:49 -04:00
tar.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
termios.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
time.h fix various errors in function signatures/prototypes found by nsz 2011-09-13 21:09:35 -04:00
ucontext.h consistency: use struct __ucontext instead of ucontext_t in prototypes 2011-07-31 00:10:29 -04:00
ulimit.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
unistd.h fix various errors in function signatures/prototypes found by nsz 2011-09-13 21:09:35 -04:00
utime.h initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
utmp.h various legacy and linux-specific stuff 2011-03-18 21:52:26 -04:00
utmpx.h utmpx.h is no longer under standards, so expose ut_exit structure 2011-04-12 12:03:33 -04:00
wchar.h implement open_wmemstream 2011-09-03 19:49:46 -04:00
wctype.h more header fixes, minor warning fix 2011-02-14 19:33:11 -05:00
wordexp.h fix typo in wordexp.h (note that the function is still unimplemented) 2011-02-19 12:44:36 -05:00