#ifndef __LIB_H #define __LIB_H TRUE #ifndef GOT_TIME #include #endif #include "emsg.h" #include "conf.h" #ifndef TRUE #define FALSE 0 #define TRUE !FALSE #endif #define U_RW 0700 #define EOL "\015\012" char *lib_trim_msg(char *s); char *lib_safe(char *s); int xfclose(FILE *f); int xopen(char *fname, int mode, int access); char *lib_findfile(char *s); FILE *xfopen(char *fname, char *mode); int get_zone(char *s); int parsedate(char *s); int lib_date(char *s); int lib_gmtime(void); int lib_localtime(void); struct tm *lib_split_time(int *t); int str_hash(char *s, int max); int strncmpnc(char *s1, char *s2, int len); #ifdef VMS char *strupr(char *s); char *strlwr(char *s); #endif char *get_word(char *s, int n); void cvt_numfile(int x, int *fg, int *fi); char *sys_gdir(int g); char *sys_gname(int g, int item); char *sys_xname(int g, int item); char *sys_iname(int g, int item); char *sys_nname(int g, int item); int file_length(int f); char *ncpy(char *dst, char *src, int len); int match_wild(char *wild, char *s); char *get_rest(char *in, int n); void lib_createdir(char *s); char *lib_hostname(void); char *lib_messageid(void); char *lib_strdate(void); void config_load(void); char *config_get(int x); char *config_getu(int x); int token_split(char *src, char *p[], char *sep); int token_split2(char *src, char *p[], char *sep); int lib_exists(char *fname); char *file_config(char *s); char *file_hist(char *s); char *file_work(char *s); char *file_log(char *s); int lib_mail_file(char *to, char *subj, char *fname); int lib_mail_msg(char *to, char *subj, char *fname); char *lib_getlicense(void); char *str_trimspace(char *s); int open_log(char *fname, int access, int aa); FILE *fopen_log(char *fname, char *mde); int close_log(int handle); int fclose_log(FILE *stream); int lib_freespace(char *s); int lib_checkspace(void); char *lib_status(void); void fix_address(char *in); int lib_pused(void); void dnews_manager_report(char *s); char *dnews_status(void); char *lib_now(void); int diskuse_get(void); int lib_gmt_to_local(int x); int lib_local_to_gmt(int x); void lib_tzinit(void); char *lib_trim(char *s); #endif