Home
last modified time | relevance | path

Searched refs:cdfd (Results 1 – 8 of 8) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/cdrom/freebsd/
DSDL_syscdrom.c65 int is_cd, cdfd; in CheckDrive() local
76 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive()
77 if ( cdfd >= 0 ) { in CheckDrive()
86 if ( (ioctl(cdfd, CDIOCREADSUBCHANNEL, &info) == 0) || in CheckDrive()
90 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/beos/
DSDL_syscdrom.cc85 int is_cd, cdfd; in CheckDrive() local
95 cdfd = open(drive, 0); in CheckDrive()
96 if ( cdfd >= 0 ) { in CheckDrive()
97 if ( ioctl(cdfd, B_GET_GEOMETRY, &info) == B_NO_ERROR ) { in CheckDrive()
102 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/openbsd/
DSDL_syscdrom.c68 int is_cd, cdfd; in CheckDrive() local
79 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive()
80 if ( cdfd >= 0 ) { in CheckDrive()
89 if ( (ioctl(cdfd, CDIOCREADSUBCHANNEL, &info) == 0) || in CheckDrive()
93 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/qnx/
DSDL_syscdrom.c66 int is_cd, cdfd; in CheckDrive() local
85 cdfd = open(drive, QNX_CD_OPENMODE); in CheckDrive()
86 if ( cdfd >= 0 ) in CheckDrive()
88 devctlret=devctl(cdfd, DCMD_CAM_DEVINFO, &dinfo, sizeof(cam_devinfo_t), NULL); in CheckDrive()
103 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/linux/
DSDL_syscdrom.c121 int is_cd, cdfd; in CheckDrive() local
132 cdfd = open(drive, (O_RDONLY|O_NONBLOCK), 0); in CheckDrive()
133 if ( cdfd >= 0 ) { in CheckDrive()
137 if ( (ioctl(cdfd, CDROMSUBCHNL, &info) == 0) || in CheckDrive()
141 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/bsdi/
DSDL_syscdrom.c191 int is_cd = 0, cdfd; in CheckDrive() local
200 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive()
201 if ( cdfd >= 0 ) { in CheckDrive()
202 p = Inquiry(cdfd); in CheckDrive()
205 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/aix/
DSDL_syscdrom.c73 int cdfd; in CheckDrive() local
85 cdfd = open(drive, (O_RDONLY|O_EXCL|O_NONBLOCK), 0); in CheckDrive()
86 if ( cdfd >= 0 ) { in CheckDrive()
87 ret = SDL_SYS_CDioctl( cdfd, IOCINFO, &info ); in CheckDrive()
98 close(cdfd); in CheckDrive()
/external/qemu/distrib/sdl-1.2.15/src/cdrom/osf/
DSDL_syscdrom.c63 int cdfd, is_cd = 0; in CheckDrive() local
80 if ( (cdfd = open(drive, (O_RDWR|O_NDELAY), 0)) >= 0 ) { in CheckDrive()
87 if ( ioctl(cdfd, SCSI_GET_INQUIRY_DATA, &msp) ) in CheckDrive()