]> andersk Git - moira.git/blame_incremental - dbck/dbck.h
split qsupport into many pieces
[moira.git] / dbck / dbck.h
... / ...
CommitLineData
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
20extern int debug, mode, fast, dcmenable, warn;
21extern struct hash *users, *machines, *clusters, *lists;
22extern 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
29struct user {
30 char login[9];
31 char potype;
32 char *fullname;
33 int status;
34 int users_id;
35 int pobox_id;
36};
37
38struct 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
48struct cluster {
49 char name[33];
50 int clu_id;
51};
52
53struct list {
54 char name[33];
55 char acl_type;
56 int list_id;
57 int acl_id;
58 int members;
59};
60
61struct string {
62 char *name;
63 int string_id;
64 int refc;
65};
66
67struct 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
78struct nfsphys {
79 char dir[33];
80 int mach_id;
81 int nfsphys_id;
82 int allocated;
83 int count;
84};
This page took 0.031819 seconds and 5 git commands to generate.