home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
packet
/
cbbs60so.arc
/
MBUSER.H
< prev
next >
Wrap
Text File
|
1988-06-15
|
2KB
|
82 lines
/*
* MBUSER.H - 4/25/88 - Definitions for user file.
*/
#define us_version 8
extern char *usfile, *usbfile;
extern int ufl;
extern char tcall[ln_call]; /* Used all over as temp */
#define num_um 7
extern char *um[num_um];
/*
* User file header record.
*/
#define ufhsunu 234
typedef struct user_hdr_s
{
char version; /* File version */
word count; /* Number of users in file */
word lmnr; /* Last message # at last compress */
char dirty; /* True if anything changed */
char date[ln_date]; /* Date of last compress */
char time[ln_time]; /* Time of last compress */
char wpdate[ln_date];/* Date last WP Update generated */
char unu[ufhsunu]; /* Ain't used at all, yet */
} USER_HDR;
/*
* User file user record.
*/
/*
* User record options.
*/
#define u_local 0x01
#define u_bbs 0x02
#define u_expert 0x04
#define u_delete 0x08
#define u_sysop 0x10
#define u_exclude 0x20
/*
* User record state.
*/
#define u_sent 0x01
#define u_name 0x02
#define u_home 0x04
#define u_zip 0x08
#define pathl 81
#define userunu 125
typedef struct user_s
{
char call[ln_call]; /* Users call */
char home_bbs[ln_call]; /* Users home bbs */
char date[ln_date]; /* Date of last logout */
char time[ln_time]; /* Time of last logout */
char handle[ln_handle]; /* Users name */
char port; /* Port user last connected, L if link */
char path[pathl]; /* NULL terminated string */
byte ssid; /* ssid, binary */
byte state; /* Got name? Got home? Sent to WP? */
word msg_number; /* Last message # at last login */
byte options; /* Permissions and stuff like that */
word log_count; /* Number of times user has connected */
word rn; /* Record number, zero if not valid */
char zip[ln_zip];
char unu[userunu];
} USER;
extern USER_HDR *ufhs;
extern USER *tuser;