summaryrefslogtreecommitdiffstats
path: root/lib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/include')
-rw-r--r--lib/libc/include/libc_private.h9
-rw-r--r--lib/libc/include/namespace.h1
-rw-r--r--lib/libc/include/un-namespace.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
index 50903f3..cb0b407 100644
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -34,6 +34,7 @@
#ifndef _LIBC_PRIVATE_H_
#define _LIBC_PRIVATE_H_
+#include <sys/_pthreadtypes.h>
/*
* This global flag is non-zero when a process has created one
@@ -126,6 +127,8 @@ typedef enum {
PJT_SETSPECIFIC,
PJT_SIGMASK,
PJT_TESTCANCEL,
+ PJT_CLEANUP_POP_IMP,
+ PJT_CLEANUP_PUSH_IMP,
PJT_MAX
} pjt_index_t;
@@ -147,6 +150,12 @@ int _yp_check(char **);
void _init_tls(void);
/*
+ * Provides pthread_once()-like functionality for both single-threaded
+ * and multi-threaded applications.
+ */
+int _once(pthread_once_t *, void (*)(void));
+
+/*
* Set the TLS thread pointer
*/
void _set_tp(void *tp);
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h
index a65b929..6ba8bab 100644
--- a/lib/libc/include/namespace.h
+++ b/lib/libc/include/namespace.h
@@ -80,6 +80,7 @@
#define listen _listen
#define nanosleep _nanosleep
#define open _open
+#define openat _openat
#define poll _poll
#define pthread_atfork _pthread_atfork
#define pthread_attr_destroy _pthread_attr_destroy
diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h
index 6b7f49a..00f0df2 100644
--- a/lib/libc/include/un-namespace.h
+++ b/lib/libc/include/un-namespace.h
@@ -61,6 +61,7 @@
#undef listen
#undef nanosleep
#undef open
+#undef openat
#undef poll
#undef pthread_atfork
#undef pthread_attr_destroy
OpenPOWER on IntegriCloud