This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]