Signed-off-by: rean <[email protected]>
---
 Makefile        |  1 +
 libc/pthread.cc | 20 ++++++++++++++++++++
 libc/pthread.hh |  6 ++++++
 3 files changed, 27 insertions(+)

diff --git a/Makefile b/Makefile
index 9182618..1995882 100644
--- a/Makefile
+++ b/Makefile
@@ -1653,6 +1653,7 @@ libc += unistd/getppid.o
 libc += unistd/getsid.o
 libc += unistd/setsid.o
 
+musl += unistd/ttyname_r.o
 musl += regex/fnmatch.o
 musl += regex/glob.o
 musl += regex/regcomp.o
diff --git a/libc/pthread.cc b/libc/pthread.cc
index 148b79e..508fdbe 100644
--- a/libc/pthread.cc
+++ b/libc/pthread.cc
@@ -1121,3 +1121,23 @@ int pthread_attr_getaffinity_np(const pthread_attr_t 
*attr, size_t cpusetsize,
 
     return 0;
 }
+
+int pthread_barrier_init(pthread_barrier_t *__restrict b,
+                         const pthread_barrierattr_t *__restrict a,
+                         unsigned count)
+{
+   WARN_STUBBED();
+   return 0;
+}
+
+int pthread_barrier_destroy(pthread_barrier_t *)
+{
+   WARN_STUBBED();
+   return 0;
+}
+
+int pthread_barrier_wait(pthread_barrier_t *)
+{
+   WARN_STUBBED();
+   return 0;
+}
diff --git a/libc/pthread.hh b/libc/pthread.hh
index 1a4d02c..c76addc 100644
--- a/libc/pthread.hh
+++ b/libc/pthread.hh
@@ -26,4 +26,10 @@ void run_tsd_dtors();
 }
 #endif
 
+int pthread_barrier_init(pthread_barrier_t *__restrict,
+                         const pthread_barrierattr_t *__restrict,
+                         unsigned);
+int pthread_barrier_destroy(pthread_barrier_t *);
+int pthread_barrier_wait(pthread_barrier_t *);
+
 #endif /* PTHREAD_HH_ */
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to