S_IFSOCK should be defined if _XOPEN_SOURCE=500
Michael T Kerrisk
mtk-lists@gmx.net
Mon May 3 10:48:00 GMT 2004
In <sys/stat.h> there is:
# if (defined __USE_BSD || defined __USE_MISC || defined __USE_XOPEN2K) \
&& defined __S_IFSOCK
# define S_IFSOCK __S_IFSOCK
# endif
This means that S_IFSOCK is only defined if _XOPEN_SOURCE
is 600.
In SUSv2 sockets were defined in the Networking Services
volume (XNS5) along. Compliance with XNS5 is mandatory for
UNIX98 branding. In other words, UNIX98 systems must
define S_IFSOCK in <sys/stat.h> when _XOPEN_SOURCE is 500,
and glibc should do this too. Thus, the first line above
should read:
# if (defined __USE_BSD || defined __USE_MISC || defined
__USE_XOPEN_EXTENDED) \
Cheers,
Michael
--
Michael Kerrisk
mtk-lists@gmx.net
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl
More information about the Libc-alpha
mailing list