home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 9
/
FreshFishVol9-CD2.bin
/
bbs
/
disk
/
val-2.3.lha
/
Val
/
Val.qi
< prev
next >
Wrap
Text File
|
1993-12-22
|
3KB
|
76 lines
#include <ak/qual.h>
#define DO_QUAL() qual_analyse(qual_arr,argv,&argc,usage,0)
#define CLEANUP_QUAL()
#define Q_QUIET 0
#define Q_DEVICE 1
#define Q_POOLSIZE 2
#define Q_SEEK 3
#define Q_MAXDEPTH 4
#define Q_SHOWREADS 5
#define Q_COUNT 6
#define Q_TRACKS 7
#define Q_DOSNAMES 8
#define Q_INHIBIT 9
#define Q_FSSHOW 10
#define Q_CACHE 11
#define Q_STATCACHE 12
#define Q_OFS 13
#define Q_FFS 14
#define Q_FAILREQ 15
#define Q_IGNOREERRORS 16
#define Q_ERRLIMIT 17
#define Q_WARNLIMIT 18
#define Q_RETRIES 19
#define Q_LINKSALLOWED 20
#define Q_DEBUGCACHE 21
#define Q_DEBUGLINK 22
Static bool Quiet=false;
Static char Device[77+1];
Static long PoolSize=0x1000;
Static bool Seek=false;
Static long MaxDepth=100;
Static bool ShowReads=false;
Static ulong Count=1000;
Static bool Tracks=false;
Static bool DosNames=true;
Static bool Inhibit=true;
Static bool ShowFileSystem=false;
Static short Cache=1;
Static bool StatCache=false;
Static bool Ofs=false;
Static bool Ffs=false;
Static bool FailReq=true;
Static bool IgnoreErr=false;
Static long ErrLimit=-1;
Static long WarnLimit=-1;
Static short Retries=0;
Static bool LinksAllowed=false;
Static bool DebugCache=false;
Static bool DebugLink=false;
Static QUAL qual_arr[]={
1,"QUIET",typ_logical,(char *)&Quiet,0,0,NULL,0x0,0x0,0,0,0,
1,"DEVICE",typ_string,Device,2,77,NULL,0x0,0x0,0,0,ATT_MANDATORY|ATT_LOWER,
1,"POOLSIZE",typ_long,(char *)&PoolSize,0,0xffff,NULL,0x0,0x0,0,0,ATT_HEX,
1,"SEEK",typ_logical,(char *)&Seek,0,0,NULL,0x80,0x0,0,0,0,
1,"MAXDEPTH",typ_long,(char *)&MaxDepth,10,1000,NULL,0x80,0x8,0,0,0,
2,"SHOWREADS",typ_logical,(char *)&ShowReads,0,0,NULL,0x80,0x0,0,0,0,
1,"COUNT",typ_ulong,(char *)&Count,1,10000000,NULL,0x80,0x20,0,0,0,
1,"TRACKS",typ_logical,(char *)&Tracks,0,0,NULL,0x78,0x0,0,0,0,
2,"DOSNAMES",typ_logical,(char *)&DosNames,0,0,NULL,0x0,0x0,0,0,0,
1,"INHIBIT",typ_logical,(char *)&Inhibit,0,0,NULL,0x0,0x0,0,0,0,
1,"FSSHOW",typ_logical,(char *)&ShowFileSystem,0,0,NULL,0x6000,0x0,0,0,0,
2,"CACHE",typ_short,(char *)&Cache,1,10000,NULL,0x0,0x0,0,0,0,
2,"STATCACHE",typ_logical,(char *)&StatCache,0,0,NULL,0x0,0x0,0,0,0,
1,"OFS",typ_logical,(char *)&Ofs,0,0,NULL,0x4400,0x0,0,0,0,
2,"FFS",typ_logical,(char *)&Ffs,0,0,NULL,0x2400,0x0,0,0,0,
2,"FAILREQ",typ_logical,(char *)&FailReq,0,0,NULL,0x0,0x0,0,0,0,
2,"IGNOREERRORS",typ_logical,(char *)&IgnoreErr,0,0,NULL,0x0,0x0,0,0,0,
1,"ERRLIMIT",typ_long,(char *)&ErrLimit,-1,0x7fffffff,NULL,0x0,0x0,0,0,0,
1,"WARNLIMIT",typ_long,(char *)&WarnLimit,-1,0x7fffffff,NULL,0x0,0x0,0,0,0,
1,"RETRIES",typ_short,(char *)&Retries,0,7777,NULL,0x0,0x0,0,0,0,
1,"LINKSALLOWED",typ_logical,(char *)&LinksAllowed,0,0,NULL,0x0,0x0,0,0,0,
3,"DEBUGCACHE",typ_logical,(char *)&DebugCache,0,0,NULL,0x0,0x0,0,0,0,
6,"DEBUGLINK",typ_logical,(char *)&DebugLink,0,0,NULL,0x0,0x0,0,0,0,
0,NULL};
Static char usage[]="";