Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

diskinfo(5)

format(8)

GETSCSIINFO(3)  —  UNIX Programmer’s Manual

NAME

getscsiinfo, getscsimatch − get scsiinfo structure

SYNOPSIS

#include <zdc/zdc.h>
#include <diskinfo.h>

struct scsiinfo ∗
getscsimatch(vendor, product)
char ∗vendor, ∗product;

struct scsiinfo ∗
getscsiinfo()

DESCRIPTION

getscsimatch takes the vendor and product names of the disk as returned by the SCSI INQUIRY command and locates the .scsi (e.g. wren3.scsi) file in /etc/diskinfo with matching vendor and product strings.  It then returns the data in this file in a scsiinfo structure.  getscsiinfo finds the next .scsi file in /etc/diskinfo and creates and returns a scsiinfo structure built from that file.  On error or when there are no more .scsi files in the directory, NULL is returned.  This information is used by the format program.  Note that the vendor string must be padded with blanks to be 8 characters long, and the product string must be padded to 16 characters, as this is the way the strings are returned by the SCSI INQUIRY command.  See /usr/include/diskinfo.h for a description of the fields in struct scsiinfo.

SEE ALSO

diskinfo(5) format(8)

NOTES

This are Sequent library routines.  To use them, specify the -lseq option to link with the Sequent library.  Since this is a Sequent extension, code using this routine may not be portable to other systems. 

DYNIX

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026