--- pgp/src/fileio.h 2018/04/24 16:41:12 1.1.1.5 +++ pgp/src/fileio.h 2018/04/24 16:45:40 1.1.1.7 @@ -25,7 +25,11 @@ * Directory for system-wide files. Must end in a /, ready for * dumb appending of the filename. (If not defined, it's not used.) */ -#define PGP_SYSTEM_DIR "/usr/local/lib/pgp/" +#ifdef LINUX +# define PGP_SYSTEM_DIR "/var/lib/pgp/" +#else +# define PGP_SYSTEM_DIR "/usr/local/lib/pgp/" +#endif #define FOPRBIN "r" #define FOPRTXT "r" #define FOPWBIN "w" @@ -140,6 +144,7 @@ VOID *xmalloc(unsigned); char *tempfile(int); void rmtemp(char *); char *savetemp(char *, char *); +char *ck_dup_output(char *, boolean, boolean); void cleanup_tmpf(void); int savetempbak(char *, char *); @@ -153,3 +158,11 @@ extern boolean has_extension(char *filen extern char const * const manual_dirs[]; /* Returns non-zero if any manuals are missing */ unsigned manuals_missing(void); + +#ifdef __PUREC__ +int access(const char *name,int flag); +#endif + +#ifdef MACTC5 +void mac_cleanup_tmpf(void); +#endif