]> andersk Git - moira.git/blob - dbck/dbck.h
sync'ing files for RCS->CVS migration
[moira.git] / dbck / dbck.h
1 /* $Header$
2  *
3  * Declarations for Moira 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 <moira_site.h>
11 #include <mit-copyright.h>
12
13 #define NULL 0
14
15 #define MODE_ASK 1
16 #define MODE_NO 2
17 #define MODE_PREEN 3
18 #define MODE_YES 4
19
20 extern int debug, mode, fast, dcmenable, warn;
21 extern struct hash *users, *machines, *clusters, *lists;
22 extern struct hash *filesys, *nfsphys, *strings, *subnets;
23
24 #define MAX_ID_VALUE 32765
25 #define MIN_ID_VALUE 100
26
27 #define dprintf         if (debug) printf
28
29 struct user {
30     char login[9];
31     char potype;
32     char *fullname;
33     int status;
34     int users_id;
35     int pobox_id;
36 };
37
38 struct machine {
39     char name[33];
40     char owner_type;
41     int owner_id;
42     int snet_id;
43     int mach_id;
44     int clucount;
45     
46 };
47
48 struct cluster {
49     char name[33];
50     int clu_id;
51 };
52
53 struct list {
54     char name[33];
55     char acl_type;
56     int list_id;
57     int  acl_id;
58     int members;
59 };
60
61 struct string {
62     char *name;
63     int string_id;
64     int refc;
65 };
66
67 struct filesys {
68     char name[33];
69     char dir[33];
70     char type;
71     int filsys_id;
72     int mach_id;
73     int owner;
74     int owners;
75     int phys_id;
76 };
77
78 struct nfsphys {
79     char dir[33];
80     int mach_id;
81     int nfsphys_id;
82     int allocated;
83     int count;
84 };
This page took 0.057254 seconds and 5 git commands to generate.