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 */
|