[cs631apue] long format file types

Jan Schaumann jschauma at stevens.edu
Fri Sep 30 20:31:22 EDT 2016


bzhang41 <bzhang41 at stevens.edu> wrote:
 
> How can I check if the file is the following type ?
> a Archive state 1.
> A Archive state 2.
> w Whiteout.
> I didn't find any function in the textbook or slides talk about this.

You can find more information on this in the mailing list archives from
previous semesters:

https://lists.stevens.edu/pipermail/cs631apue/2015-October/000767.html
https://lists.stevens.edu/pipermail/cs631apue/2014-October/000603.html
https://lists.stevens.edu/pipermail/cs631apue/2012-October/000179.html

In short, use strmode(3) to have it fill in the permissions string for
you, and you won't have to worry about this.

-Jan


More information about the cs631apue mailing list