I trying to control my cd-rom under NetBSD and it's not working.... I have open the device with int cdromfd; static har cdrom[]= "dev/cd0a" cdromfd=open(cdrom,O_RONLY); (this worked ) after that i'm trying to eject the CD. ioctl(cdromfd,CDIOEJECT) (it didn't work, it didn't report any error) I'm stucked,any help will be appreciated. Thanks