_stat Structure st_mode Field Constants
These constants are used to indicate file type in the st_mode field of the _stat structure.
The bit mask constants are described below:
||File type mask|
||Character special (indicates a device if set)|
||Read permission, owner|
||Write permission, owner|
||Execute/search permission, owner|