From: Daniel Sabogal <dsabogalcc@gmail.com>
To: musl@lists.openwall.com
Subject: Header conformance/improvements (part 2)
Date: Fri, 23 Feb 2018 13:32:49 -0500 [thread overview]
Message-ID: <CAFhhQJQMxNrxKJ=W7r4qBh=x7sY-Ebd6R3=XwKqJJp_q5PkH9Q@mail.gmail.com> (raw)
Here's a list of observations from musl's headers.
tar.h
-----
* TSVTX
this constant is XSI-shaded
glibc exposes it with _XOPEN_SOURCE
unistd.h
--------
* F_LOCK, F_TEST, F_TLOCK, F_ULOCK
these constants are XSI-shaded
glibc exposes them with _XOPEN_SOURCE
stropts.h
---------
* RPROTMASK
this constant is non-standard and not reserved
glibc exposes it with _GNU_SOURCE
signal.h
--------
* int sigqueue(pid_t, int, /* const */ union sigval);
harmless; it just doesn't reflect http://austingroupbugs.net/view.php?id=844
arch/*/bits/termios.h
---------------------
* NLDLY, NL0, NL1
* CRDLY, CR0, CR1, CR2, CR3
* TABDLY, TAB0, TAB1, TAB2, TAB3
* BSDLY, BS0, BS1, FFDLY, FF0, FF1
these constants are XSI-shaded
(so are VTDLY, VT0 and VT1, but the prefix "V" is reserved by posix)
glibc exposes them with _XOPEN_SOURCE
limits.h
--------
* PAGE_SIZE
* NL_LANGMAX
* NZERO
these constants are XSI-shaded
glibc exposes them with _XOPEN_SOURCE (except PAGE_SIZE)
sys/socket.h
------------
* AF_* excluding AF_{INET,INET6,UNIX,UNSPEC}
* MSG_* excluding MSG_{CTRUNC,DONTROUTE,EOR,OOB,NOSIGNAL,PEEK,TRUNC,WAITALL}
* PF_*
* SCM_* excluding SCM_RIGHTS
* SO* excluding SOCK_{DGRAM,RAW,SEQPACKET,STREAM},
SO_{ACCEPTCONN,BROADCAST,DEBUG,DONTROUTE,ERROR,KEEPALIVE,LINGER,OOBINLINE,RCVBUF,RCVLOWAT,RCVTIMEO,REUSEADDR,SNDBUF,SNDLOWAT,SNDTIMEO,TYPE},
SOL_SOCKET, and SOMAXCONN
* CMSG_* excluding CMSG_{DATA,NXTHDR,FIRSTHDR}
these constants/macros are reserved by an XSI-shaded prefix
changing this might be too intrusive; glibc just exposes them
inttypes.h
----------
* wchar_t
this symbol is exposed to the ISO C namespace
AFAICT, this symbol is CX-shaded, and according to n1570 7.8.2.4p1,
it seems to be intended that <stddef.h> be included to expose wchar_t
wchar.h
-------
* FILE
this symbol is exposed to the ISO C namespace
AFAICT, this symbol is CX-shaded, and according to n1570 7.29.2.1p1,
it seems to be intended that <stdio.h> be included to expose FILE
next reply other threads:[~2018-02-23 18:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-23 18:32 Daniel Sabogal [this message]
2018-02-23 19:20 ` Rich Felker
2018-02-23 19:48 ` Daniel Sabogal
2018-02-25 0:17 ` Rich Felker
2018-02-25 8:07 ` Jens Gustedt
2018-03-10 23:14 ` 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='CAFhhQJQMxNrxKJ=W7r4qBh=x7sY-Ebd6R3=XwKqJJp_q5PkH9Q@mail.gmail.com' \
--to=dsabogalcc@gmail.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).