tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: S_IFMT not mentioned in any man page

 |constant S_IFMT (and related constants) is not mentioned in any man p\
 |age (except dev_mkdb).  Shouldn't it be mentioned in stat(2)?  Of cou\
 |rse one can look in sys/stat.h, but this file is source code and not \
 |a specification.

Despite being explicitly mentioned for preprocessor testability
current POSIX says (p. 394, l. 13259 ff.)

    No new S_IFMT symbolic names for the file type values of
    mode_t will be defined by POSIX.1-2008; if new file types are
    required, they will only be testable through S_ISxx( ) or
    S_TYPEISxxx( ) macros instead.


Home | Main Index | Thread Index | Old Index