_stat Structure st_mode Field Constants

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

  
#include <sys/stat.h>  
  

These constants are used to indicate file type in the st_mode field of the _stat structure.

The bit mask constants are described below:

ConstantMeaning
_S_IFMTFile type mask
_S_IFDIRDirectory
_S_IFCHRCharacter special (indicates a device if set)
_S_IFREGRegular
_S_IREADRead permission, owner
_S_IWRITEWrite permission, owner
_S_IEXECExecute/search permission, owner

_stat, _wstat Functions
_fstat, _fstat32, _fstat64, _fstati64, _fstat32i64, _fstat64i32
Standard Types
Global Constants

Show: