Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mit-eddie.UUCP Path: utzoo!linus!decvax!harpo!eagle!mit-vax!mit-eddie!mp From: mp@mit-eddie.UUCP Newsgroups: net.bugs.4bsd Subject: stab(5) man page lies Message-ID: <570@mit-eddie.UUCP> Date: Tue, 9-Aug-83 16:32:07 EDT Article-I.D.: mit-eddi.570 Posted: Tue Aug 9 16:32:07 1983 Date-Received: Tue, 9-Aug-83 22:59:05 EDT Organization: MIT, Cambridge, MA Lines: 15 The 4.{1,2}bsd stab(5) man page claims that the n_desc field (a short) can be considered a struct desc { short q6:2,q5:2,q4:2,q3:2,q2:2,q1:2,basic:4 }; However, this structure is backwards; the bit fields are assigned right-to-left on a VAX, yet the format of n_desc (as set up by pcc) is such that the "basic" field is in the low 4 bits, q1 is just to the left of that, and so on. It's interesting to note that neither pcc nor sdb uses the desc structure; they prefer to do the left and right shifts "manually". Mark