The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

NAME

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

DESCRIPTION

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.

S_ISSOCK(m)
test for a socket

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]