public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Move sem_open/close/unlink to sysdeps/pthread
@ 2020-12-16  1:51 Samuel Thibault
  2020-12-16  1:51 ` [PATCH 1/2] pthread: Move semaphore initialization for open to semaphoreP.h Samuel Thibault
  2020-12-16  1:51 ` [PATCH 2/2] htl: Get sem_open/sem_close/sem_unlink support [BZ #25524] Samuel Thibault
  0 siblings, 2 replies; 7+ messages in thread
From: Samuel Thibault @ 2020-12-16  1:51 UTC (permalink / raw)
  To: libc-alpha; +Cc: Samuel Thibault, commit-hurd, adhemerval.zanella

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%)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-16 13:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  1:51 [PATCH 0/2] Move sem_open/close/unlink to sysdeps/pthread Samuel Thibault
2020-12-16  1:51 ` [PATCH 1/2] pthread: Move semaphore initialization for open to semaphoreP.h Samuel Thibault
2020-12-16 13:25   ` Adhemerval Zanella
2020-12-16 13:28     ` Samuel Thibault
2020-12-16  1:51 ` [PATCH 2/2] htl: Get sem_open/sem_close/sem_unlink support [BZ #25524] Samuel Thibault
2020-12-16 13:32   ` Adhemerval Zanella
2020-12-16 13:53     ` Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).