-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmdline.h
36 lines (31 loc) · 777 Bytes
/
cmdline.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __cmdline__
#define __cmdline__
/*****
command line parser -- originally auto-generated, now frozen
*****/
typedef struct s_Cmdline {
/***** -b: buffer size in kB */
char bsizeP;
int bsize;
int bsizeC;
/***** -vt: show throughput */
char vtP;
/***** -vr: show read-times */
char vrP;
/***** -vw: show write-times */
char vwP;
/***** -ngr: non-greedy read. Don't enforce a full buffer
on read before starting to write */
char ngrP;
/***** -s: throughput speed limit in kB/s */
char speedP;
double speed;
int speedC;
/***** uninterpreted command line parameters */
int argc;
/*@null*/char **argv;
} Cmdline;
extern char *Program;
extern void usage(void);
extern /*@shared*/Cmdline *parseCmdline(int argc, char **argv);
#endif