given inode and fs, determine if dir or not?
Ed Gould
ed at mtxinu.UUCP
Thu Nov 24 04:52:42 AEST 1988
>If I have an inode (and fs root) on hand, how do I tell whether that
>inode is a directory or not? The definition of struct inode suggests
>that it's possible, but I can't find a man entry that says how.
If inode.i_mode == IFDIR, then inode is a directory.
--
Ed Gould mt Xinu, 2560 Ninth St., Berkeley, CA 94710 USA
{ucbvax,uunet}!mtxinu!ed +1 415 644 0146
"I'll fight them as a woman, not a lady. I'll fight them as an engineer."
More information about the Comp.unix.wizards
mailing list