]> andersk Git - moira.git/blame - dbck/dbck.h
Remove `delete_user_by_uid' since it's never been used in any logs we have,
[moira.git] / dbck / dbck.h
CommitLineData
d2543f8c 1/* $Header$
2 *
2ce085d2 3 * Declarations for Moira database consistancy checker
d2543f8c 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
2ce085d2 10#include <moira_site.h>
d2543f8c 11#include <mit-copyright.h>
12
23a784eb 13#ifndef NULL
14#define NULL ((void*)0)
15#endif
289d1ac4 16
d2543f8c 17#define MODE_ASK 1
18#define MODE_NO 2
19#define MODE_PREEN 3
20#define MODE_YES 4
21
6f4e78e6 22extern int debug, mode, fast, dcmenable, warn;
d2543f8c 23extern struct hash *users, *machines, *clusters, *lists;
ab05f33a 24extern struct hash *filesys, *nfsphys, *strings, *subnets, *string_dups;
d2543f8c 25
26#define MAX_ID_VALUE 32765
27#define MIN_ID_VALUE 100
28
29#define dprintf if (debug) printf
30
31struct user {
ab05f33a 32 char login[9];
33 char potype;
34 char *fullname;
35 int status;
36 int users_id;
37 int pobox_id;
38 int comment;
39 int modby;
40 int fmodby;
41 int pmodby;
42 int sigwho;
d2543f8c 43};
44
45struct machine {
ab05f33a 46 char name[33];
47 char owner_type;
48 int owner_id;
49 int snet_id;
50 int mach_id;
51 int clucount;
52 int acomment;
53 int ocomment;
54 int creator;
55 int modby;
56};
57
58struct subnet {
59 char name[33];
60 char owner_type;
61 int owner_id;
62 int snet_id;
63 int modby;
d2543f8c 64};
65
66struct cluster {
67 char name[33];
68 int clu_id;
ab05f33a 69 int modby;
d2543f8c 70};
71
72struct list {
73 char name[33];
74 char acl_type;
75 int list_id;
76 int acl_id;
77 int members;
78};
79
80struct string {
81 char *name;
82 int string_id;
83 int refc;
84};
85
86struct filesys {
87 char name[33];
4b9e5c72 88 char dir[81];
d2543f8c 89 char type;
90 int filsys_id;
91 int mach_id;
92 int owner;
93 int owners;
94 int phys_id;
95};
96
97struct nfsphys {
98 char dir[33];
99 int mach_id;
100 int nfsphys_id;
101 int allocated;
102 int count;
103};
This page took 0.822654 seconds and 5 git commands to generate.