Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: venger@pitt.edu (Michael C Bednar)
Subject: Audio CDs on a VAXstation 3100 w/Ultrix 4.3
Date: 1995/10/28	[thread overview]
Message-ID: <1995Oct28.183008@chartreuse.cis.pitt.edu> (raw)



Hi all...

	I am using a VAXstation 3100 as an x-terminal and have recently come into
possession of an RRD42 CD-ROM drive and have attached it to the SCSI bus. I have
no problem mounting CD-ROMs, but I would also like to use it to play audio CDs. 
Since I don't have Motif, xcd is out of the question. I suppose I could hack around
the Motif calls, but I don't really need a nice, X interface -- a commandline oriented
app would do. Toward this end, I have been perusing the source for xcd and trying to
cobble together a quick and dirty commandline-oriented program that would simply
start and stop the RRD42. As a test, I have been trying to get the drive to simply
eject the caddy. If I place an empty caddy or no caddy in the drive, I get an offline
message to std error. If I place an audio CD into the drive, I get a disk error in the
error log and the drive gives no outward sign of receiving the command. Has anyone out
there dealt with this particular problem? Any and all suggestions are welcomed.

	My configuration:

		CPU:   KA420 (VAXstation 3100)
		OS:	Ultrix 4.3
		CDROM:	RRD42 at scsi ID 3

	The code so far (most of it lifted from xcd source):

		
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/cdrom.h>

extern caddr_t valloc();

int CdFd = 0;

main( argc, argv)

int argc;
char **argv;

{
int status;
if ((CdFd = open(argv[1], O_RDONLY)) >=0)
 {
        int cmd = CDROM_EJECT_CADDY;
        caddr_t argp = (caddr_t) 0;
        status = ioctl (CdFd, cmd, argp);
 } 
close(CdFd);
}
-- 
=========================================================================
What? Me speak for my employer?				 venger+@pitt.edu
They don't pay me enough for that...		            (412)624-6415



                 reply	other threads:[~1995-10-28  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox