Path: utzoo!attcan!uunet!mtxinu!ed From: ed@mtxinu.UUCP (Ed Gould) Newsgroups: comp.unix.wizards Subject: Re: given inode and fs, determine if dir or not? Message-ID: <696@mtxinu.UUCP> Date: 23 Nov 88 18:52:42 GMT References: <25943@teknowledge-vaxc.ARPA> Reply-To: ed@mtxinu.UUCP (Ed Gould) Distribution: na Organization: mt Xinu, Berkeley Lines: 11 >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."