SCO buffer addressing

John F Haugh II jfh at rpp386.cactus.org
Wed May 29 22:02:47 AEST 1991


In article <1991May28.154355.5924 at prl.dec.com> boyd at prl.dec.com (Boyd Roberts) writes:
>Perhaps it's a more general System V problem as the high bit
>of `b_dev' may be set depending on the file-system type.  There's
>some hideous macro `bmajor()' that will mash off that bit.  Use
>it instead of major().

Just a general hint for wannabe wizards, looking at the data in
a different radix (for example, hex or octal) often makes sense.
Also, try reading the header files some day.  The particular
macro Boyd is writing about is in /usr/include/sys/sysmacros.h
on Xenix.
-- 
John F. Haugh II        | Distribution to  | UUCP: ...!cs.utexas.edu!rpp386!jfh
Ma Bell: (512) 255-8251 | GEnie PROHIBITED :-) |  Domain: jfh at rpp386.cactus.org
"If liberals interpreted the 2nd Amendment the same way they interpret the
 rest of the Constitution, gun ownership would be mandatory."



More information about the Comp.unix.internals mailing list