source: trunk/third/moira/regtape/common.h @ 23740

Revision 23740, 744 bytes checked in by broder, 15 years ago (diff)
In moira: * New CVS snapshot (Trac: #195) * Drop patches that have been incorporated upstream. * Update to build without krb4 on systems that no longer have it. This doesn't build yet on squeeze, which lacks a krb4 library, but I'm committing now before I start hacking away at a patch to fix that.
Line 
1/* $Id: common.h,v 1.1 2000-07-12 22:11:41 zacheiss Exp $
2 *
3 * Copyright (C) 1987-1999 by the Massachusetts Institute of Technology
4 *
5 */
6
7struct entry {
8  char *id;
9  char *last;
10  char *first;
11  char *middle;
12  char *type;
13
14  char *name;
15  char *dept;
16  char *haddr;
17  char *hphone;
18  char *oaddr;
19  char *ophone;
20
21  char *xtitle;
22  char *xaddress;
23  char *xphone1;
24  char *xphone2;
25};
26
27void fixphone(char *phone);
28void fixaddress(char *address);
29
30void process_entry(struct entry *e, int secure);
31void newuser(struct entry *e, int secure);
32
33int set_next_users_id(void);
34int set_next_uid(void);
35
36void sqlexit(void);
37void dbmserr(char *where, int what);
38
39#define SQL_DUPLICATE -2112
40#define sqlfail() (sqlca.sqlcode && sqlca.sqlcode != 1403)
Note: See TracBrowser for help on using the repository browser.