2001-12-29 21:57:59 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-08-17 05:46:24 +00:00
|
|
|
#ifndef _TASKUTIL_H
|
|
|
|
#define _TASKUTIL_H
|
|
|
|
|
|
|
|
|
|
|
|
#define TRUE 1
|
|
|
|
#define FALSE 0
|
|
|
|
#define SS_BUFSIZE 1024 /* Socket buffersize */
|
|
|
|
#define MBSE_SS(x) (x)?(x):"(null)"
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _srv_auth {
|
|
|
|
struct _srv_auth *next;
|
|
|
|
char *hostname;
|
|
|
|
char *authcode;
|
|
|
|
} srv_auth;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Function prototypes
|
|
|
|
*/
|
2002-12-28 17:29:06 +00:00
|
|
|
void WriteError(const char *, ...);
|
2006-03-06 19:55:10 +00:00
|
|
|
void Syslogp(int, char *);
|
2002-12-28 17:29:06 +00:00
|
|
|
void Syslog(int, const char *, ...);
|
2001-08-17 05:46:24 +00:00
|
|
|
int ulog(char *, char *, char *, char *, char*);
|
|
|
|
char *xstrcpy(char *);
|
|
|
|
char *xstrcat(char *, char *);
|
|
|
|
void CreateSema(char *);
|
|
|
|
void TouchSema(char *);
|
|
|
|
void RemoveSema(char *);
|
|
|
|
int IsSema(char *);
|
|
|
|
int file_exist(char *, int);
|
2002-01-19 13:04:55 +00:00
|
|
|
int mkdirs(char *, mode_t);
|
2005-10-11 20:49:41 +00:00
|
|
|
int file_size(char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
time_t file_time(char *);
|
2002-12-28 20:29:26 +00:00
|
|
|
char *ascfnode(faddr *, int);
|
2006-01-30 22:27:02 +00:00
|
|
|
void ascfnode_r(faddr *, int, char *);
|
|
|
|
void fido2str_r(fidoaddr, int, char *);
|
|
|
|
void Dos2Unix_r(char *, char *);
|
2001-08-17 05:46:24 +00:00
|
|
|
char *dayname(void);
|
|
|
|
void InitFidonet(void);
|
|
|
|
int SearchFidonet(unsigned short);
|
2002-12-28 17:29:06 +00:00
|
|
|
char *printable(char *, int);
|
2001-08-17 05:46:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|