Skip to content

What does filestat function modeoct value mean? #4484

Discussion options

You must be logged in to vote

After some research I found in man inode(7) that this '10' prefix as it were indicates "regular file"

       The following mask values are defined for the file type:

           S_IFMT     0170000   bit mask for the file type bit field

           S_IFSOCK   0140000   socket
           S_IFLNK    0120000   symbolic link
           S_IFREG    0100000   regular file
           S_IFBLK    0060000   block device
           S_IFDIR    0040000   directory
           S_IFCHR    0020000   character device
           S_IFIFO    0010000   FIFO

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by craigcomstock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant