3 * $Id: tstinq.c,v 1.1 2001/04/15 11:12:37 ant Exp $
4 * Copyright (c) 1997 by Matthew Jacob
6 * This software is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; version 2.
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this software; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 * The author may be reached via electronic communications at
23 * or, via United States Postal Address
27 * San Francisco, CA, 94131
34 static void process(char *, int);
54 process(char *name, int fd)
57 char sb[32], iqd[256], sbyte, c, dt;
58 static char cdb[6] = { 0x12, 0, 0, 0, 255, 0 };
61 scmd.cdblen = sizeof (cdb);
65 scmd.senselen = sizeof (sb);
66 scmd.statusp = &sbyte;
70 if (ioctl(fd, GSC_CMD, (caddr_t) &scmd) < 0) {
77 (void) fprintf(stdout, "%s:%-28s|Device Type %d\n", name, &iqd[8], dt);
83 * c-brace-imaginary-offset: 0
87 * c-continued-statement-offset: 4
88 * c-continued-brace-offset: 0