Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!chinacat!sequoia!rpp386!jfh From: jfh@rpp386.cactus.org (John F Haugh II) Newsgroups: comp.unix.internals Subject: Re: SCO buffer addressing Message-ID: <19341@rpp386.cactus.org> Date: 29 May 91 12:02:47 GMT References: <1991May28.130913.16586@socrates.umd.edu> <1991May28.154355.5924@prl.dec.com> Reply-To: jfh@rpp386.cactus.org (John F Haugh II) Organization: Lone Star Cat Emporium and BBQ Grill Lines: 16 X-Clever-Slogan: Help Prevent Robbery. Tax the IRS. In article <1991May28.154355.5924@prl.dec.com> boyd@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@rpp386.cactus.org "If liberals interpreted the 2nd Amendment the same way they interpret the rest of the Constitution, gun ownership would be mandatory."