]> git.ipfire.org Git - thirdparty/man-pages.git/commit
bsd_signal.3: Fix the wrong version of _POSIX_C_SOURCE
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Fri, 21 Dec 2018 03:01:58 +0000 (11:01 +0800)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 10 Jan 2019 00:38:37 +0000 (13:38 +1300)
commit8eb09b1283be57333e7c6223080e7449479b7677
tree3801e469ca20106d747a40f12a649a73f0f11817
parent1be4da28c54b62bd012495a3bdaa86ef0ea8dc13
bsd_signal.3: Fix the wrong version of _POSIX_C_SOURCE

According to the latest glibc, the bsd_signal() function is just
declared when POSIX.1-2008 (or newer) instead of POSIX.1-2001 is
not set since glibc v2.26.

Please see the following code from signal/signal.h:
-----------------------------------------------------------------
/* The X/Open definition of `signal' conflicts with the BSD version.
   So they defined another function `bsd_signal'.  */
extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
     __THROW;
-----------------------------------------------------------------

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/bsd_signal.3