]>
Commit | Line | Data |
---|---|---|
3839e657 TT |
1 | /* |
2 | * fsck.h | |
3 | */ | |
4 | ||
5 | #ifdef __STDC__ | |
6 | #define NOARGS void | |
7 | #else | |
8 | #define NOARGS | |
9 | #define const | |
10 | #endif | |
11 | ||
12 | #ifndef DEFAULT_FSTYPE | |
f3db3566 | 13 | #define DEFAULT_FSTYPE "ext2" |
3839e657 TT |
14 | #endif |
15 | ||
16 | #define MAX_DEVICES 32 | |
17 | #define MAX_ARGS 32 | |
18 | ||
19 | #define EXIT_OK 0 | |
20 | #define EXIT_NONDESTRUCT 1 | |
21 | #define EXIT_DESTRUCT 2 | |
22 | #define EXIT_UNCORRECTED 4 | |
23 | #define EXIT_ERROR 8 | |
24 | #define EXIT_USAGE 16 | |
25 | #define EXIT_LIBRARY 128 | |
26 | ||
27 | /* | |
28 | * Internal structure for mount tabel entries. | |
29 | */ | |
30 | ||
31 | struct fs_info { | |
32 | char *device; | |
33 | char *mountpt; | |
34 | char *type; | |
35 | char *opts; | |
36 | int freq; | |
37 | int passno; | |
38 | int flags; | |
39 | struct fs_info *next; | |
40 | }; | |
41 | ||
42 | #define FLAG_DONE 1 | |
43 | ||
44 | /* | |
45 | * Structure to allow exit codes to be stored | |
46 | */ | |
47 | struct fsck_instance { | |
48 | int pid; | |
49 | int flags; | |
50 | int exit_status; | |
51 | char * prog; | |
52 | char * device; | |
53 | struct fsck_instance *next; | |
54 | }; | |
55 | ||
56 | ||
57 |