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).
This commit is contained in:
Rich Felker 2012-11-08 17:04:20 -05:00
commit efd4d87aa4
21 changed files with 28 additions and 16 deletions

View file

@ -1,4 +1,5 @@
#include "pthread_impl.h"
#include <sys/mman.h>
static void dummy(void *p)
{