stat.st_mode deciphering

J

John

I have a question about the value of st_mode for files and directories.

Given this file and this directory:
drwxrwxr-x 2 chris chris 4096 Jun 17 23:14 foo
-rwxrwxr-x 1 chris chris 13803 Jun 19 09:07 st1

st_mode for the executable st1 is 100775.
st_mode for the directory foo is 40775.

So I get that the 775 is the permissioning, but I can't reckon what the rest
of it is (the 100 and the 40).

Any insight is greatly appreciated.
 
J

John

Nuts. Sorry for the cross-post. This was intended for
comp.unix.programmer.... Where the hell is my breakfast?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top