mbox series

[0/2] Move sem_open/close/unlink to sysdeps/pthread

Message ID 20201216015143.4084732-1-samuel.thibault@ens-lyon.org
Headers show
Series Move sem_open/close/unlink to sysdeps/pthread | expand

Message

Samuel Thibault Dec. 16, 2020, 1:51 a.m. UTC
This first separates out the struct new_sem initialization to
semaphoreP.h (no behavior change), so that sem_open/close/unlink can
then simply be used as it is by various ports, since the rest of them is
completely port-independant.

Tested on i686-gnu, i686-linux-gnu, x86_64-linux-gnu

Samuel Thibault (2):
  pthread: Move semaphore initialization for open to semaphoreP.h
  htl: Get sem_open/sem_close/sem_unlink support [BZ #25524]

 htl/Makefile                           |  4 +--
 htl/semaphoreP.h                       | 49 ++++++++++++++++++++++++++
 nptl/semaphoreP.h                      | 15 ++++++++
 sysdeps/htl/sem-close.c                | 31 ----------------
 sysdeps/htl/sem-open.c                 | 31 ----------------
 sysdeps/htl/sem-unlink.c               | 31 ----------------
 sysdeps/mach/hurd/i386/Makefile        |  7 ----
 {nptl => sysdeps/pthread}/sem_close.c  |  0
 {nptl => sysdeps/pthread}/sem_open.c   | 12 +------
 {nptl => sysdeps/pthread}/sem_unlink.c |  0
 10 files changed, 67 insertions(+), 113 deletions(-)
 create mode 100644 htl/semaphoreP.h
 delete mode 100644 sysdeps/htl/sem-close.c
 delete mode 100644 sysdeps/htl/sem-open.c
 delete mode 100644 sysdeps/htl/sem-unlink.c
 rename {nptl => sysdeps/pthread}/sem_close.c (100%)
 rename {nptl => sysdeps/pthread}/sem_open.c (96%)
 rename {nptl => sysdeps/pthread}/sem_unlink.c (100%)