]> andersk Git - moira.git/blob - dbck/dbck.h
dbck fixes by kcr, dkk, and myself from the end of the summer.
[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, *string_dups;
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   int comment;
37   int modby;
38   int fmodby;
39   int pmodby;
40   int sigwho;
41 };
42
43 struct machine {
44   char name[33];
45   char owner_type;
46   int owner_id;
47   int snet_id;
48   int mach_id;
49   int clucount;
50   int acomment;
51   int ocomment;
52   int creator;
53   int modby;
54 };
55
56 struct subnet {
57   char name[33];
58   char owner_type;
59   int owner_id;
60   int snet_id;
61   int modby;
62 };
63
64 struct cluster {
65     char name[33];
66     int clu_id;
67     int modby;
68 };
69
70 struct list {
71     char name[33];
72     char acl_type;
73     int list_id;
74     int  acl_id;
75     int members;
76 };
77
78 struct string {
79     char *name;
80     int string_id;
81     int refc;
82 };
83
84 struct filesys {
85     char name[33];
86     char dir[33];
87     char type;
88     int filsys_id;
89     int mach_id;
90     int owner;
91     int owners;
92     int phys_id;
93 };
94
95 struct nfsphys {
96     char dir[33];
97     int mach_id;
98     int nfsphys_id;
99     int allocated;
100     int count;
101 };
This page took 0.06144 seconds and 5 git commands to generate.