Previous section.

Technical Standard: Networking Services (XNS), Issue 5.2 Draft 2.0
Copyright © 1999 The Open Group


sys/stat.h - data returned by the stat() function.
The XSH specification contains the basic definition of this interface. The following additional information pertains to Sockets.


The following additional symbolic name for the value of st_mode is defined:

File type:

S_IFMT type of file
S_IFSOCK socket

The following macro will test whether a file is of the specified type. The value m supplied to the macro is the value of st_mode from a stat structure. The macro evaluates to a non-zero value if the test is true, 0 if the test is false.

test for a socket


First released in Issue 4.

Contents Next section Index