Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 beta 3/9/83; site celerity.UUCP Path: utzoo!watmath!clyde!akgua!sdcsvax!celerity!ron From: ron@celerity.UUCP (Ron McDaniels) Newsgroups: net.unix-wizards Subject: inode types on BSD 4.2. Message-ID: <164@celerity.UUCP> Date: Mon, 14-May-84 19:27:54 EDT Article-I.D.: celerity.164 Posted: Mon May 14 19:27:54 1984 Date-Received: Tue, 15-May-84 03:11:56 EDT Organization: Celerity Computing, San Diego Ca. Lines: 36 <> Here's one that will test your wizard status. Take a look at inode.h in BSD 4.2, in particular the lines following the comment, "/* modes */". Note that the mask for the file-type field is 4 bits wide. Now look at the following lines which #define the valid bit combinations for file-type. As you can see, there seems to be a deliberate attempt not to use the least significant bit position in the field. I have perused the source for "ls.c" in an attempt to find an not-so- obvious use for this bit, alas, to no avail. By way of explanation, three possible scenarios occur to me. 1. There is a hidden use for the bit (if not hidden, will you give me "not obvious"?). 2. There used to be a use for the bit or there is currently a use for the bit in Ma Bell's version of unix, and the bit is left unused in 4.2 to maintain compatibility. 3. The primal inode definition defined the first few fields as even and all the subsequent additions were made even for the same reason that I am asking the question, ignorance and inadequate documentation. Whatever the reason, I'd like to know what's going on. Opinions will be appreciated. . . but not nearly as much as facts. R. L. McDaniels CELERITY COMPUTING 9692 Via Excelencia San Diego, California 92126 (619) 566-0416 {decvax!ucbvax || ihnp4 || philabs}!sdcsvax!celerity!ron