From: bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r@public.gmane.org
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [Bug 52931] New: sigaction(2) feature test macros don't apply to siginfo_t
Date: Tue, 22 Jan 2013 22:16:28 +0000 (UTC) [thread overview]
Message-ID: <bug-52931-11311@https.bugzilla.kernel.org/> (raw)
https://bugzilla.kernel.org/show_bug.cgi?id=52931
Summary: sigaction(2) feature test macros don't apply to
siginfo_t
Product: Documentation
Version: unspecified
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: low
Priority: P1
Component: man-pages
AssignedTo: documentation_man-pages-ztI5WcYan/vQLgFONoPN62D2FQJk+8+b@public.gmane.org
ReportedBy: ambrus-4iFmikrsyIeT9ig0jae3mg@public.gmane.org
Regression: No
The sigaction(2) manpage correctly tells that defining the feature test macro
_POSIX_SOURCE is enough to have the headers declare the function sigaction.
However, defining that feature test does not allow you to use all capabilities
of sigaction, namely it does not make the headers declare the type siginfo_t.
The type siginfo_t is used only to declare a three-argument signal handler
function that you install with sigaction using the SA_SIGINFO flag. This
feature is documented in the sigaction(2) manpage, just like it should be.
However, to actually use this feature of sigaction, it's not enough to define
_POSIX_SOURCE. To export this type, I believe it is sufficient to define
_POSIX_C_SOURCE to 201112L. As of current standing, people will try to use
siginfo_t and get a compilation error because the glibc headers don't export it
with the feature test macro the manpage asks for. This bug is difficult to
understand, so the feature test requirements should be mentioned on the
manpage.
I don't provide a patch because I don't know either the exact feature test
macro requirements, nor exactly what symbols other than siginfo_t are affected.
I am using man-pages version 3.45 vanilla, and glibc 2.11.3 debian.
Thank you, man-pages maintainers, for all the hard work you put in keeping the
pages up to date.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-01-22 22:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-22 22:16 bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r [this message]
[not found] ` <bug-52931-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/>
2013-01-22 22:40 ` [Bug 52931] sigaction(2) feature test macros don't apply to siginfo_t bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGkLq7r
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=bug-52931-11311@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon-590eeb7gvniway/ihj7yzeb+6bgklq7r@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.