Re: -D_REENTRANT and debian policy
> I'd love it if someone could investigate just what this means with a
> modern glibc (i.e., not LinuxThreads) and whether it's still actually
> necessary. At the least, there should really be a footnote in Policy
> explaining why this is needed or pointing to some document about it.
According to a quick grep, with glibc-2.5 from experimental the _only_
use is in <unistd.h> where getlogin_r() is not defined if _REENTRANT is
not defined and at the same time _POSIX_C_SOURCE is smaller than
199506L. Otherwise _REENTRANT is not used at all.
Anything that uses getlogin_r() without defining _POSIX_C_SOURCE is not
POSIX-conformant and probably does not worth worrying about, so I'd say
_REENTRANT is completely useless nowadays.
Gabor
--
---------------------------------------------------------
MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
---------------------------------------------------------
Reply to: