Move some pthread functions to signal.h.

POSIX specifies that pthread_kill(3) and pthread_sigmask(3) are
supposed to live in signal.h rather than pthread.h.

Since signal.h now needs pthread_t and pthread_attr_t, I've moved
those defintions into include/machine/pthread_types.h to keep the
namespace clean. I also sorted some includes. The combination of these
two things seems to have exploded into a cascade of missing includes,
so this patch also cleans up all those.

Change-Id: Icfa92a39432fe83f542a797e5a113289d7e4ad0c
This commit is contained in:
Dan Albert
2014-11-21 00:18:07 -08:00
parent f664034887
commit 75ef63d6cf
10 changed files with 70 additions and 25 deletions

View File

@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <pthread.h>
#include "private/bionic_tls.h"