public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: libc-alpha@sourceware.org
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
	commit-hurd@gnu.org, adhemerval.zanella@linaro.org
Subject: [PATCH 0/2] Move sem_open/close/unlink to sysdeps/pthread
Date: Wed, 16 Dec 2020 02:51:41 +0100	[thread overview]
Message-ID: <20201216015143.4084732-1-samuel.thibault@ens-lyon.org> (raw)

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


             reply	other threads:[~2020-12-16  1:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16  1:51 Samuel Thibault [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201216015143.4084732-1-samuel.thibault@ens-lyon.org \
    --to=samuel.thibault@ens-lyon.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=commit-hurd@gnu.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).