On Wed, 30 Sep 1998, James wrote: > what's m? i've tried stating a filename, then doing: > > if (S_ISREG(buf.st_rdev)) /* st_rdev seemed the most sensible */ st_mode, not st_rdev. The stat structure is documented (briefly) in the stat man page. umode_t st_mode; /* protection */ dev_t st_rdev; /* device type (if inode device) */