Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

diskinfo(5)

format(8)

GETZDINFO(3)  —  UNIX Programmer’s Manual

 

NAME

getzdinfo, getzdinfobyname − get zdinfo structure

SYNOPSIS

#include <zdc/zdc.h>
#include <diskinfo.h>
 struct zdinfo ∗
getzdinfobyname(disktype)
char ∗disktype;
 struct zdinfo ∗
getzdinfo()

DESCRIPTION

getzdinfobyname takes a disk type name (e.g. m2333k) and returns a structure containing the disk type name and the ZDC channel configuration data for that disk type.  All information is obtained from files in the directory /etc/diskinfo which end in the suffix .zd.  Each of these files contains the channel configuration data for one disk type.  getzdinfo finds the next ’.zd’ file in /etc/diskinfo and creates and returns a zdinfo structure built from that file.  On error or when there are no more .zd files in the directory, NULL is returned.  This information is provided primarily for use by the format program.  See /usr/include/diskinfo.h and /usr/include/sys/zdc.h for a description of the fields in struct zdinfo.

SEE ALSO

diskinfo(5) format(8)

NOTES

These 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