[cs631apue] Test if file is whiteout
Jan Schaumann
jschauma at stevens.edu
Wed Oct 3 22:29:07 EDT 2018
Keyur M Ved <kved at stevens.edu> wrote:
> I noticed in the the man page for stat there are macros to test if a
> file is a directory, character device, block device, fifo, symbolic
> link and a socket, but none to test if a file is whiteout. Is there a
> different way to test if a file is a whiteout file?
There actually is a macro to test:
$ grep S_ISWHT /usr/include/sys/stat.h
#define S_ISWHT(m) (((m) & _S_IFMT) == _S_IFWHT) /* whiteout */
$
-Jan
More information about the cs631apue
mailing list