diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:15:57 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-05 17:19:38 +0200 |
commit | 0b7d48d1062e4383b4a78e0bb78c5f0f29479780 (patch) | |
tree | 7f68d1ddf402078c5ba49416a076b7875fb18b75 /sysdeps/pthread/sem_routines.c | |
parent | 19cc20ef2e8b9e09429741a3108e55c50758a273 (diff) | |
download | glibc-0b7d48d1062e4383b4a78e0bb78c5f0f29479780.tar.gz glibc-0b7d48d1062e4383b4a78e0bb78c5f0f29479780.tar.xz glibc-0b7d48d1062e4383b4a78e0bb78c5f0f29479780.zip |
nptl: Move sem_close, sem_open into libc
The symbols were moved using move-symbol-to-libc.py. Both functions are moved at the same time because they depend on internal functions in sysdeps/pthread/sem_routines.c, which are moved in this commit as well. Additional hidden prototypes are required to avoid check-localplt failures. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/pthread/sem_routines.c')
-rw-r--r-- | sysdeps/pthread/sem_routines.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/pthread/sem_routines.c b/sysdeps/pthread/sem_routines.c index 34e6410729..9a78dab5d3 100644 --- a/sysdeps/pthread/sem_routines.c +++ b/sysdeps/pthread/sem_routines.c @@ -106,9 +106,9 @@ __sem_check_add_mapping (const char *name, int fd, sem_t *existing) { /* If the caller hasn't provided any map it now. */ if (existing == SEM_FAILED) - existing = (sem_t *) mmap (NULL, sizeof (sem_t), - PROT_READ | PROT_WRITE, MAP_SHARED, - fd, 0); + existing = (sem_t *) __mmap (NULL, sizeof (sem_t), + PROT_READ | PROT_WRITE, + MAP_SHARED, fd, 0); newp->dev = st.st_dev; newp->ino = st.st_ino; @@ -136,7 +136,7 @@ __sem_check_add_mapping (const char *name, int fd, sem_t *existing) { /* Do not disturb errno. */ int save = errno; - munmap (existing, sizeof (sem_t)); + __munmap (existing, sizeof (sem_t)); errno = save; } @@ -183,7 +183,7 @@ __sem_remove_mapping (sem_t *sem) /* Remove the record from the tree. */ __tdelete (rec, &sem_mappings, sem_search); - if (munmap (rec->sem, sizeof (sem_t)) == -1) + if (__munmap (rec->sem, sizeof (sem_t)) == -1) ret = false; free (rec); |