Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.83 KB

stat-structure-st-mode-field-constants.md

File metadata and controls

38 lines (30 loc) · 1.83 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: _stat Structure st_mode Field Constants
_stat Structure st_mode Field Constants
11/04/2016
STAT/S_IFCHR
STAT/S_IFDIR
STAT/_S_IWRITE
STAT/S_IFMT
STAT/_S_IFDIR
STAT/_S_IREAD
STAT/S_IEXEC
STAT/_S_IEXEC
STAT/_S_IFMT
STAT/S_IWRITE
STAT/S_IFREG
STAT/S_IREAD
STAT/_S_IFCHR
STAT/_S_IFREG
S_IFCHR
S_IFDIR
_S_IWRITE
S_IFMT
_S_IFDIR
_S_IREAD
S_IEXEC
_S_IEXEC
_S_IFMT
S_IWRITE
S_IFREG
S_IREAD
_S_IFCHR
_S_IFREG
S_IFDIR constant
stat structure
S_IWRITE constant
S_IEXEC constant
_S_IFREG constant
S_IREAD constant
stat structure, constants
_S_IFMT constant
st_mode field constants
S_IFMT constant
_S_IEXEC constant
_S_IWRITE constant
_S_IFDIR constant
S_IFREG constant
S_IFCHR constant
_S_IREAD constant
_S_IFCHR constant
fd462004-7563-4766-8443-30b0a86174b6

_stat structure st_mode field constants

Syntax

#include <sys/stat.h>

Remarks

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

The bit mask constants are described below:

Constant Meaning
_S_IFMT File type mask
_S_IFDIR Directory
_S_IFCHR Character special (indicates a device if set)
_S_IFREG Regular
_S_IREAD Read permission, owner
_S_IWRITE Write permission, owner
_S_IEXEC Execute/search permission, owner

See also

_stat, _wstat functions
_fstat, _fstat32, _fstat64, _fstati64, _fstat32i64, _fstat64i32
Standard types
Global constants