|
|
1.1 root 1: /* build0.h */
2: #ifndef BUILD0_H
3: #define BUILD0_H
4:
5: #include <common/ccompat.h>
6:
7: /* Manifest constants. */
8: #define NBUF 256 /* buffer size */
9: #define PATCHFILE "/tmp/patches"
10: #define LDKERFILE "/tmp/ldker"
11: #define SMALLKER "/tmp/smallkrnl"
12: #define IDCMDFILE "/tmp/id-cmd"
13: #define IDVARFILE "/tmp/id-var"
14:
15: /* Switches for get_allowed_int. */
16: enum {
17: ga_dec = 0, /* Decimal radix in prompts. */
18: ga_hex = 1, /* Hexadecimal radix in prompts. */
19: ga_nonstrict = 0, /* May override standard choices. */
20: ga_strict = 1 /* Must adhere to listed choices. */
21: };
22:
23: /* Flags for sys(). */
24: #define S_IGNORE 1
25: #define S_NONFATAL 2
26: #define S_FATAL 3
27:
28: /* Functions. */
29: void cls();
30: int exists();
31: void fatal();
32: int get_int();
33: char *get_line();
34: void idenable_dev __PROTO((char * devName));
35: void idtune_var __PROTO((char * varName, long varValue));
36: int is_dir();
37: void nonfatal();
38: int sys();
39: void usage();
40: int yes_no();
41:
42: /* Globals. */
43: extern int abortmsg;
44: extern char *argv0;
45: extern char buf[NBUF];
46: extern char cmd[NBUF];
47: extern char small_cmd[NBUF];
48: extern int dflag;
49: extern char *usagemsg;
50: extern int vflag;
51:
52: #endif /* BUILD0_H */
53: /* end of build0.h */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.