summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/pthread.h (renamed from sysdeps/generic/pthread/pthread.h)0
-rw-r--r--sysdeps/pthread/pthread.h22
-rw-r--r--sysdeps/pthread/pthreadP.h18
3 files changed, 18 insertions, 22 deletions
diff --git a/sysdeps/generic/pthread/pthread.h b/sysdeps/generic/pthread.h
index d2e73c2..d2e73c2 100644
--- a/sysdeps/generic/pthread/pthread.h
+++ b/sysdeps/generic/pthread.h
diff --git a/sysdeps/pthread/pthread.h b/sysdeps/pthread/pthread.h
deleted file mode 100644
index 8e65b05..0000000
--- a/sysdeps/pthread/pthread.h
+++ /dev/null
@@ -1,22 +0,0 @@
-#ifndef _PTHREAD_H
-#include <pthread/pthread.h>
-
-/* These represent the interface used by glibc itself. */
-
-extern int __pthread_mutex_lock (pthread_mutex_t *__mutex);
-extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
-
-typedef struct __cthread *__cthread_t;
-typedef int __cthread_key_t;
-typedef void * (*__cthread_fn_t)(void *__arg);
-
-__cthread_t __cthread_fork (__cthread_fn_t, void *);
-void __cthread_detach (__cthread_t);
-int __cthread_keycreate (__cthread_key_t *);
-int __cthread_getspecific (__cthread_key_t, void **);
-int __cthread_setspecific (__cthread_key_t, void *);
-
-int __pthread_getattr_np (pthread_t, pthread_attr_t *);
-int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
-
-#endif
diff --git a/sysdeps/pthread/pthreadP.h b/sysdeps/pthread/pthreadP.h
index fa88d2e..5559fd3 100644
--- a/sysdeps/pthread/pthreadP.h
+++ b/sysdeps/pthread/pthreadP.h
@@ -20,8 +20,26 @@
#include <pthread.h>
+/* These represent the interface used by glibc itself. */
+
extern pthread_t __pthread_self (void);
extern int __pthread_kill (pthread_t threadid, int signo);
extern struct __pthread **__pthread_threads;
+extern int __pthread_mutex_lock (pthread_mutex_t *__mutex);
+extern int __pthread_mutex_unlock (pthread_mutex_t *__mutex);
+
+typedef struct __cthread *__cthread_t;
+typedef int __cthread_key_t;
+typedef void * (*__cthread_fn_t)(void *__arg);
+
+__cthread_t __cthread_fork (__cthread_fn_t, void *);
+void __cthread_detach (__cthread_t);
+int __cthread_keycreate (__cthread_key_t *);
+int __cthread_getspecific (__cthread_key_t, void **);
+int __cthread_setspecific (__cthread_key_t, void *);
+
+int __pthread_getattr_np (pthread_t, pthread_attr_t *);
+int __pthread_attr_getstack (const pthread_attr_t *, void **, size_t *);
+
#endif /* pthreadP.h */