mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Isaac Dunham <idunham@lavabit.com>
To: musl@lists.openwall.com
Subject: compatability: struct sigaction missing sa_restorer
Date: Fri, 13 Apr 2012 19:20:18 -0700	[thread overview]
Message-ID: <20120413192018.1a7e3612@newbook> (raw)

Kernel headers (asm/signal.h) and glibc headers agree that struct
sigaction should have sa_restorer; musl provides __sa_restorer
This is not mandated in X/Open or POSIX, AFAICT.
However, the specification says "struct sigaction includes at least the
following members", so here the glibc/kernel approach is conformant, as
well as being simple and obvious--as opposed to the possible approach:
#ifdef _GNU_SOURCE || _BSD_SOURCE
#define sa_restorer ....
#endif

This prevents building Xvesa; I definitely won't patch it to use
__sa_restorer.  Don't know if sa_restorer is commonly used.

I think that's the last issue, but could be wrong.

As far as __[gu]id_t goes:
$ grep -r  __[gu]id_t /usr/include|wc -l
101

So that's a fair-sized problem (sed already posted, fwiw).



             reply	other threads:[~2012-04-14  2:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-14  2:20 Isaac Dunham [this message]
2012-04-14  3:03 ` Rich Felker
2012-04-14 20:18   ` Isaac Dunham
2012-04-14 22:16     ` Rich Felker

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=20120413192018.1a7e3612@newbook \
    --to=idunham@lavabit.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).