-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFILES.H
94 lines (86 loc) · 4.39 KB
/
FILES.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#ifndef _FILES_H
#define _FILES_H
/* see mailbox.h for most other privs definitions */
#define PPP_ACCESS_PRIV 0x0100L /* Priv bit for PPP connection */
#define PPP_PWD_LOOKUP 0x0200L /* Priv bit for peerID/pass lookup */
#define FILE_PATH_SIZE 128
/* External definitions for configuration-dependent file names set in
* files.c
*/
extern char *Startup; /* Initialization file */
extern char *Userfile; /* Authorized FTP users and passwords */
extern char *Hostfile; /* Remote FTP user and password */
extern char *Spoolqdir; /* Spool directory */
extern char *Maillog; /* mail log */
extern char *Mailspool; /* Incoming mail */
extern char *Mailqdir; /* Outgoing mail spool */
extern char *LogsDir; /* Logs directory */
extern char *Mailqueue; /* Outgoing mail work files */
extern char *Routeqdir; /* queue for router */
extern char *Alias; /* the alias file */
extern char *Dfile; /* Domain cache */
extern char *Fdir; /* Finger info directory */
extern char *Fdbase; /* Finger database file */
extern char *Pdbase; /* Personal names database file (IW5DHE) */
extern char *Arealist; /* List of message areas */
extern char *Helpdir; /* Mailbox help file directory */
extern char *CmdsHelpdir; /* Console/Sysop commands help file directory */
extern char *Motdfile; /* Mailbox message of the day */
extern char *Rewritefile; /* TO-Address rewrite file */
extern char *Translatefile; /* FROM-Address rewrite file */
extern char *Refilefile; /* FROM|TO-Address rewrite file */
extern char *Holdlist; /* Areas in which local msgs are marked Held */
extern char *Httpdir; /* Http server root directory */
extern char *HLogsDir; /* Http log directory */
extern char *HttpStatsDir; /* Directory for page counters */
extern char *Accesswww; /* kpk, HTTP authenication/user file */
extern char *Signature; /* Mail signature file directory */
extern char *Popusers; /* POP user and password file */
extern char *Newsdir; /* News messages and NNTP data */
extern char *Forwardfile; /* Mail forwarding file */
extern char *Historyfile; /* Message ID history file */
extern char *UDefaults; /* User preference file */
extern char *UDefbak; /* Backup of preference file */
extern char *Mregfile; /* User registration message file */
extern char *Cinfo; /* Convers information file */
extern char *Cinfobak; /* Convers information backup */
extern char *Channelfile; /* Convers channel names */
extern char *ConvMotd; /* Convers motd file */
extern char *Netromfile; /* Netrom node save file */
extern char *Onexit; /* Cmds executed on exit */
extern char *Expirefile; /* Message expiration control file */
extern char *Ftpmotd; /* FTP message of the day */
extern char *Naccess; /* NNTPS access file (permissions) */
extern char *Active; /* NNTPS active file (name, max&min art#, flag) */
extern char *Pointer; /* NNTPS file of ng name and its dir */
extern char *NInfo;
extern char *Nhelp;
extern char *History; /* NNTP file of article msgids and timestamps */
extern char *Forward; /* NNTPS dir for unrecognized ng names */
extern char *Poll; /* NNTPS file of servername and time-last-contacted */
extern char *Newstomail; /* NNTPS file of newsgroup and SMTP To: addr maps */
extern char *Bootptab; /* kpk, Bootpd Server files */
extern char *Bootpdir;
extern char *Bootplog;
extern char *Bootpfile;
#ifdef UNIX
/* Session manager defaults */
extern char *Trace_sessmgr; /* Session manager for Trace session */
extern char *Command_sessmgr; /* Session manager for Command session */
#endif /* UNIX */
/* In files.c: */
void initroot __ARGS((char *root));
long userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore,char *defname));
/* int userlogin __ARGS((char *name,char *pass,char **path,int len,int *pwdignore)); */
char *rootdircat __ARGS((char *filename));
char *userlookup __ARGS((char *username,char **password,char **directory,
long *permission,int32 *ip_address));
char *md5sum(long challenge, char *s);
/* kpk, hash password in ftpusers */
void usercvt __ARGS((void));
/* kpk files.c, for encrypt */
int htob __ARGS((char c));
int readhex __ARGS((char *,char *,int));
/* In ftpserv.c: */
int permcheck __ARGS((char *path,int op,char *file));
#endif /* _FILES_H */