diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-08 17:04:20 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-08 17:04:20 -0500 |
commit | efd4d87aa472523b07889af69874259db43b3c3c (patch) | |
tree | 40138f27a9f1f0bc462084aec8a9e24e3be42c56 /src/internal/pthread_impl.h | |
parent | 835f9f950e2f6059532bd9ab9857a856ed21a4fd (diff) | |
download | musl-efd4d87aa472523b07889af69874259db43b3c3c.tar.gz musl-efd4d87aa472523b07889af69874259db43b3c3c.tar.xz musl-efd4d87aa472523b07889af69874259db43b3c3c.zip |
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).
Diffstat (limited to 'src/internal/pthread_impl.h')
-rw-r--r-- | src/internal/pthread_impl.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index 0f10cc48..9424a5b7 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -2,17 +2,9 @@ #define _PTHREAD_IMPL_H #include <pthread.h> -#include <sched.h> #include <signal.h> -#include <unistd.h> -#include <sys/mman.h> #include <errno.h> #include <limits.h> -#include <inttypes.h> -#include <setjmp.h> -#include <string.h> -#include <time.h> -#include <locale.h> #include "libc.h" #include "syscall.h" #include "atomic.h" |