O'Reilly logo
  • Ivan Petrov thinks this is interesting:

The S_ISxxx() macros in <sys/stat.h> make it possible to determine a file’s type. The major() and minor() functions from <sys/sysmacros.h> make it possible to decode the dev_t values that represent block and character devices.

From

Cover of Linux® Programming by Example

Note

stat macros