Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!zog.cs.cmu.edu!tgl From: tgl@zog.cs.cmu.edu (Tom Lane) Newsgroups: comp.sys.hp Subject: Bug in HPUX 7.0 Series 300 iomap(7) Message-ID: <9485@pt.cs.cmu.edu> Date: 31 May 90 23:42:42 GMT Distribution: usa Organization: Carnegie-Mellon University, CS/RI Lines: 22 I've found that the IOMAPMAP ioctl() request doesn't behave very well if one hands it a file descriptor for a device special file that is *not* an iomap(7) file (i.e., major number not 10). If the file descriptor is for /dev/tty, the ioctl() call fails with a return value of 0, rather than -1 as specified in the ioctl(2) man page. Not only that, but it neglects to set errno. I've also tried other types of special files and gotten errno=EINVAL, rather than ENOTTY as I would expect from the iomap(7) man page. Could this indicate that IOMAPMAP is blindly taking the minor number as an IOMAP addressing spec? The only error case that seems to be handled reasonably is where the file descriptor references an ordinary disk file. -- tom lane Internet: tgl@cs.cmu.edu UUCP: !cs.cmu.edu!tgl BITNET: tgl%cs.cmu.edu@cmuccvma CompuServe: >internet:tgl@cs.cmu.edu