sys/modes.h — Macros for stat structure

The sys/modes.h header file contains several macro definitions:
  • Defined constant masks and bits for values of type mode_t, such as the st_mode field of the stat struct
  • A defined constant mask for the st_genvalue field of the stat struct
  • Function-like macros for testing values of the st_mode field of the stat struct.

Under z/OS® XL C support, these definitions are included in sys/stat.h to make sys/stat.h conform with POSIX.