mirror of
https://github.com/open-simh/simtools.git
synced 2026-01-26 12:11:47 +00:00
Many style/formatting edits. Bug fixes. Reverted some previous changes temporarily while reviewing new code. Merged Baker's "virtual device" in a simpler form. ODS2 will assign a sensible drive name when mounting /image (== /virtual). If a specific drive name is desired, mount /image drivename=filespec. Files can be quoted, or use set qualifier_style unix if slashes are a problem. Note that mount on the command line allows tab completion. Moved "statistics" command into show. Coded support for import/binary (fixed records, 512 bytes). Converted fgets to fgetline Added show devices for Unix (limited by standard APIs) Got rid of separate ODS2-Image build.
36 lines
942 B
C
36 lines
942 B
C
/* Direct.h V2.1 Definitions for directory access routines */
|
|
|
|
/*
|
|
This is part of ODS2 written by Paul Nankervis,
|
|
email address: Paulnank@au1.ibm.com
|
|
|
|
ODS2 is distributed freely for all members of the
|
|
VMS community to use. However all derived works
|
|
must maintain comments in their source to acknowledge
|
|
the contibution of the original author.
|
|
*/
|
|
|
|
#ifndef _DIRECT_H
|
|
#define _DIRECT_H
|
|
|
|
struct dir$rec {
|
|
vmsword dir$size;
|
|
vmsword dir$verlimit;
|
|
vmsbyte dir$flags;
|
|
vmsbyte dir$namecount;
|
|
char dir$name[1];
|
|
};
|
|
|
|
struct dir$ent {
|
|
vmsword dir$version;
|
|
struct fiddef dir$fid;
|
|
};
|
|
|
|
|
|
void direct_show( void );
|
|
unsigned direct(struct VCB *vcb,struct dsc_descriptor *fibdsc,
|
|
struct dsc_descriptor *filedsc,unsigned short *reslen,
|
|
struct dsc_descriptor *resdsc,unsigned action);
|
|
|
|
#endif /* #ifndef _DIRECT_H */
|