Re: Processed: Re: Bug#728240: libc6: S_IFMT constants not included when _POSIX_C_SOURCE is defined as 200112L
tags 728240 fixed-upstream
thanks
The story sadly is quite complicated. I added the following text to the page
upstream:
The definitions of most of the above file type test macros are
provided if any of the following feature test macros are
defined: _BSD_SOURCE (in glibc 2.19 and earlier), _SVID_SOURCE
(in glibc 2.19 and earlier), or _DEFAULT_SOURCE (in glibc 2.20
and later). In addition, definitions of all of the above
macros except S_IFSOCK and S_ISSOCK() are provided if
_XOPEN_SOURCE is defined. The definition of S_IFSOCK can also
be exposed by defining _XOPEN_SOURCE with a value of 500 or
greater.
The definition of S_ISSOCK() is exposed if any of the following
feature test macros is defined: _BSD_SOURCE (in glibc 2.19 and
earlier), _DEFAULT_SOURCE (in glibc 2.20 and later),
_XOPEN_SOURCE with a value of 500 or greater, or
_POSIX_C_SOURCE with a value of 200112L or greater.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
Reply to: