clean up sloppy nested inclusion from pthread_impl.h
authorRich Felker <dalias@aerifal.cx>
Thu, 8 Nov 2012 22:04:20 +0000 (17:04 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 8 Nov 2012 22:04:20 +0000 (17:04 -0500)
commitefd4d87aa472523b07889af69874259db43b3c3c
tree40138f27a9f1f0bc462084aec8a9e24e3be42c56
parent835f9f950e2f6059532bd9ab9857a856ed21a4fd
clean up sloppy nested inclusion from pthread_impl.h

this mirrors the stdio_impl.h cleanup. one header which is not
strictly needed, errno.h, is left in pthread_impl.h, because since
pthread functions return their error codes rather than using errno,
nearly every single pthread function needs the errno constants.

in a few places, rather than bringing in string.h to use memset, the
memset was replaced by direct assignment. this seems to generate much
better code anyway, and makes many functions which were previously
non-leaf functions into leaf functions (possibly eliminating a great
deal of bloat on some platforms where non-leaf functions require ugly
prologue and/or epilogue).
21 files changed:
src/aio/aio_readwrite.c
src/aio/lio_listio.c
src/env/__init_tls.c
src/internal/pthread_impl.h
src/process/fork.c
src/signal/sigaction.c
src/stdio/ftrylockfile.c
src/stdio/popen.c
src/thread/__wake.c
src/thread/pthread_attr_init.c
src/thread/pthread_barrierattr_init.c
src/thread/pthread_cond_init.c
src/thread/pthread_condattr_init.c
src/thread/pthread_create.c
src/thread/pthread_join.c
src/thread/pthread_mutex_init.c
src/thread/pthread_mutexattr_init.c
src/thread/pthread_rwlock_init.c
src/thread/pthread_rwlockattr_init.c
src/thread/synccall.c
src/time/timer_create.c