This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
S_IFSOCK should be defined if _XOPEN_SOURCE=500
- From: "Michael T Kerrisk" <mtk-lists at gmx dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 3 May 2004 12:48:20 +0200 (MEST)
- Subject: S_IFSOCK should be defined if _XOPEN_SOURCE=500
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