]> andersk Git - moira.git/blob - dbck/dbck.h
3d39787db687a2ad1f60ff7fa4a628f69e92bb12
[moira.git] / dbck / dbck.h
1 /* $Header$
2  *
3  * Declarations for SMS database consistancy checker
4  *
5  *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
6  *  For copying and distribution information, please see the file
7  *  <mit-copyright.h>.
8  */
9
10 #include <sms_app.h>
11 #include <mit-copyright.h>
12
13 #define MODE_ASK 1
14 #define MODE_NO 2
15 #define MODE_PREEN 3
16 #define MODE_YES 4
17
18 extern int debug, mode, fast, dcmenable, warn;
19 extern struct hash *users, *machines, *clusters, *lists;
20 extern struct hash *filesys, *nfsphys, *strings;
21
22 #define MAX_ID_VALUE 32765
23 #define MIN_ID_VALUE 100
24
25 #define dprintf         if (debug) printf
26
27 struct user {
28     char login[9];
29     char potype;
30     char *fullname;
31     int status;
32     int users_id;
33     int pobox_id;
34 };
35
36 struct machine {
37     char name[33];
38     int mach_id;
39     int clucount;
40 };
41
42 struct cluster {
43     char name[33];
44     int clu_id;
45 };
46
47 struct list {
48     char name[33];
49     char acl_type;
50     int list_id;
51     int  acl_id;
52     int members;
53 };
54
55 struct string {
56     char *name;
57     int string_id;
58     int refc;
59 };
60
61 struct filesys {
62     char name[33];
63     char dir[33];
64     char type;
65     int filsys_id;
66     int mach_id;
67     int owner;
68     int owners;
69     int phys_id;
70 };
71
72 struct nfsphys {
73     char dir[33];
74     int mach_id;
75     int nfsphys_id;
76     int allocated;
77     int count;
78 };
This page took 0.09047 seconds and 3 git commands to generate.