public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/5] rt_sigaction.h: Check for type sighandler_t and use if present
Date: Mon, 18 Mar 2019 16:40:45 +0100	[thread overview]
Message-ID: <20190318154045.GA25922@rei.lan> (raw)
In-Reply-To: <20190318032330.3346-2-petr.vorel@gmail.com>

Hi!
> __sighandler_t is libc implementation specific and should not be relied
> upon. Instead, we fall back upon void (*)(int), as specified by POSIX.

Can't we just use the void (* k_sa_handler)(int) in all cases and don't
add more ifdefs to that file?

The __sighandler_t is defined to void (* __sighandler_t)(int) in glibc anyways.

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2019-03-18 15:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-18  3:23 [LTP] [PATCH 0/5] Some MUSL fixes Petr Vorel
2019-03-18  3:23 ` [LTP] [PATCH 1/5] rt_sigaction.h: Check for type sighandler_t and use if present Petr Vorel
2019-03-18 15:40   ` Cyril Hrubis [this message]
2019-03-18 18:43     ` Petr Vorel
2019-03-18  3:23 ` [LTP] [PATCH 2/5] {rt_, }sigaction: Define _GNU_SOURCE to get SA_NOMASK on MUSL Petr Vorel
2019-03-18 15:41   ` Cyril Hrubis
2019-03-18  3:23 ` [LTP] [PATCH 3/5] ptrace: Use int instead of enum __ptrace_request Petr Vorel
2019-03-18 15:50   ` Cyril Hrubis
2019-03-18  3:23 ` [LTP] [PATCH 4/5] mremap: Define _GNU_SOURCE to get MREMAP_MAYMOVE on MUSL Petr Vorel
2019-03-18 15:51   ` Cyril Hrubis
2019-03-18  3:23 ` [LTP] [PATCH 5/5] mallopt: Test only on glibc Petr Vorel
2019-03-18 15:59   ` Cyril Hrubis

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=20190318154045.GA25922@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /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