Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!floyd!vax135!ariel!hou5f!hou5e!hou5d!hogpc!houxm!hocda!spanky!burl!duke!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-eddi.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: Sun, 14-Aug-83 00:16:12 EDT 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