1991-10-28 01:00:06 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1992-11-02 20:41:14 +00:00
|
|
|
#define USE_UTIME
|
|
|
|
|
1991-10-28 01:00:06 +00:00
|
|
|
#ifndef DONTDECLARE_MALLOC
|
1992-03-13 15:57:41 +00:00
|
|
|
extern PTR EXFUN(malloc,(unsigned));
|
1992-03-06 12:14:14 +00:00
|
|
|
extern PTR EXFUN(realloc, (PTR, unsigned));
|
1991-10-28 01:00:06 +00:00
|
|
|
#endif
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(abort,(void));
|
|
|
|
extern int EXFUN(free,(PTR));
|
|
|
|
extern void EXFUN(bcopy,(char*,char*,int));
|
|
|
|
extern void EXFUN(exit,(int));
|
1993-01-29 05:04:45 +00:00
|
|
|
extern int EXFUN(strtol,(char *, char **, int));
|
1992-03-13 15:57:41 +00:00
|
|
|
extern void EXFUN(bzero,(char *, int));
|
1991-10-28 01:00:06 +00:00
|
|
|
#define NO_STDARG 1
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(abort,(void));
|
|
|
|
extern int EXFUN(close,(int));
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(fcntl,(int des, int cmd, int e));
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(qsort,(void *data,int els, int siz, int func()));
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(fseek,(FILE*, int, int));
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1992-03-13 15:57:41 +00:00
|
|
|
extern int EXFUN(fclose,(FILE*));
|
|
|
|
extern void EXFUN(bcopy,(char*,char*,int));
|
|
|
|
extern int EXFUN(bcmp,(char *, char *, int));
|
|
|
|
extern void EXFUN(bzero,(char *, int));
|
|
|
|
extern void EXFUN(perror,(CONST char *));
|
|
|
|
extern PTR EXFUN(memchr,(const void *, int, unsigned ));
|
1993-06-18 18:15:58 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1992-03-06 12:14:14 +00:00
|
|
|
extern unsigned short EXFUN(getuid,(void));
|
|
|
|
extern unsigned short EXFUN(getgid,(void));
|
1993-06-18 18:15:58 +00:00
|
|
|
#endif
|
1992-03-13 15:57:41 +00:00
|
|
|
|
1991-10-28 01:00:06 +00:00
|
|
|
extern char * strchr();
|
1992-03-13 15:57:41 +00:00
|
|
|
|
1991-10-28 01:00:06 +00:00
|
|
|
extern char *getenv();
|
|
|
|
extern char *strrchr();
|
|
|
|
extern int chmod();
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int fread();
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int fstat();
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int fwrite();
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int sscanf();
|
|
|
|
extern int stat();
|
|
|
|
extern int strtol();
|
|
|
|
extern int fileno();
|
|
|
|
extern char *strrchr();
|
|
|
|
extern char *ctime();
|
|
|
|
extern int _flsbuf();
|
|
|
|
extern int fclose();
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int time();
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1992-11-02 20:41:14 +00:00
|
|
|
extern int utime();
|
1991-10-28 01:00:06 +00:00
|
|
|
extern int vfprintf();
|
|
|
|
extern long atol();
|
|
|
|
extern char *getenv();
|
|
|
|
extern int fputc();
|
|
|
|
extern int unlink();
|
|
|
|
|
|
|
|
|
1991-12-13 05:03:17 +00:00
|
|
|
#include "fopen-same.h"
|