1On OpenBSD releases between December 11th and December 30th 2002 2there is a bug in /usr/include/ctype.h, it #defines EOF ignoring 3POSIX rules. As the schily make environment relies on EOF as an 4indicator to check whether stdio.h has been included, there may 5be problems to compile things. If you find compile problems, 6you may try to include 7 8#undef EOF 9 10directly after #include <ctype.h> 11 12Cdrecord has been tested and known to work on OpenBSD, however, 13the current OpenBSD port will not be able to scan the SCSI bus 14for a CD-Recorder as it does on other operating systems. 15 16In other words, 'cdrecord -scanbus' most likely will not work. 17 18Both regular SCSI and ATAPI devices are supported. For ATAPI support 19you need OpenBSD-2.6 or newer. 20 21Libscg sends Generic scsi commands that are only supported for the 22"whole disk" partition. For example, 'cdrecord dev=/dev/rcd0c -checkdrive'. 23See the cd(4), atapiscsi(4), and cdrecord(1) manpages for more details. 24 25There are at least two ways to figure out what SCSI CD devices are 26on the machine: 27 28 From /var/run/dmesg.boot: 29 $ egrep "^cd.+ at scsibus" /var/run/dmesg.boot 30 cd0 at scsibus0 targ 0 lun 0: <SONY, CD-RW CRX175E2, S002> SCSI0 5/cdrom removable 31 cd1 at scsibus1 targ 0 lun 0: <ATAPI, CD-ROM MARY500, 1.21> SCSI0 5/cdrom removable 32 33 From sysctl: 34 $ sysctl hw.disknames 35 hw.disknames = wd0,cd0,cd1,fd0 36 37In these examples, 'cd0' and 'cd1' are the SCSI CD devices on the 38system, and they should be accessed by '/dev/rcd0c' and '/dev/rcd1c', 39respectively. 40 41In December 2002 there have been reports that the atapiscsi(4) driver has 42some bugs that may cause cdrecord to hang for a while. While this is 43annoying, it is harmless. The command will eventually timeout (the default 44timeout is 40 seconds, but can be changed with timeout=%d). Trying to kill 45the "hung" process may leave the device unusable until the system is rebooted 46(which would be another bug of the atapiscsi(4) driver as killing a process 47should do all necessary housekeeping for the dead process), so just be patient. 48