File: lutil.h

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (57 lines) | stat: -rw-r--r-- 1,247 bytes parent folder | download | duplicates (7)
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
#ifndef IFMAIL_LUTIL_H
#define IFMAIL_LUTIL_H

#define S(x) (x)?(x):"(null)"

#define DBG_LOCK	4
#define DBG_AKA		6
#define DBG_OUTBOUND	7
#define DBG_CALL	8
#define DBG_HANDSHAKE	10
#define DBG_PROTOCOL	11
#define DBG_FILELIST	12
#define DBG_NLFLAG	13
#define DBG_MODEM	18
#define DBG_NODELIST	20
#define DBG_HYDRA	26

extern unsigned long verbose;
extern char *myname;
extern int logfacility;
void setmyname(char*);
void setnamesfx(char*);
unsigned long setverbose(char*);
void debug(unsigned long,char*,...);
void loginf(char*,...);
void logerr(char*,...);
char *date(long);
char *printable(char*,int);
char *printablec(char);

#ifdef DONT_HAVE_GETOPT
extern int getopt();
extern char *optarg;
extern int optind;
#else
#include <getopt.h>
#endif

#if defined(HAS_TCP) || defined(HAS_TERM)
#define FIDOPORT  60179		/* my birthday */
#define BINKPPORT 24554
#endif

#define TCPMODE_IFC	0	/* ifcico native EMSI on raw TCP */
#define TCPMODE_TELNET	1	/* EMSI encapsulation through telnet */
#define TCPMODE_BINKP	2	/* Binkp protocol */

/* for the benefit of Hurd systems, which are too good to have static limits */
#ifndef MAXHOSTNAMELEN
#define MAXHOSTNAMELEN 64
#endif

#ifndef PATH_MAX
#define PATH_MAX 512
#endif

#endif /* IFMAIL_LUTIL_H */