diff mbox series

[hurd,commited,5/7] hurd: Add __libc_open and __libc_close

Message ID 20201216005944.3091900-6-samuel.thibault@ens-lyon.org
State New
Headers show
Series hurd: add pshared semaphore support. | expand

Commit Message

Samuel Thibault Dec. 16, 2020, 12:59 a.m. UTC
Needed by libpthread for sem_open and sem_close
---
 hurd/Versions             | 1 +
 sysdeps/mach/hurd/close.c | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/hurd/Versions b/hurd/Versions
index 1aad27d91f..b66d37be07 100644
--- a/hurd/Versions
+++ b/hurd/Versions
@@ -153,6 +153,7 @@  libc {
     __lll_abstimed_lock; __lll_robust_lock;
     __lll_robust_abstimed_lock; __lll_robust_trylock;
     __lll_robust_unlock;
+    __libc_open; __libc_close;
 
     # Used by libpthread.
     _hurd_sigstate_set_global_rcv;
diff --git a/sysdeps/mach/hurd/close.c b/sysdeps/mach/hurd/close.c
index b461087447..b6530dfeee 100644
--- a/sysdeps/mach/hurd/close.c
+++ b/sysdeps/mach/hurd/close.c
@@ -35,4 +35,5 @@  __close (int fd)
   return err ? __hurd_fail (err) : 0;
 }
 libc_hidden_def (__close)
+strong_alias (__close, __libc_close)
 weak_alias (__close, close)