1993-07-30 18:17:38 +00:00
|
|
|
#include <ansidecl.h>
|
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
|
|
|
|
|
1993-09-17 09:08:00 +00:00
|
|
|
#ifndef DONTDECLARE_MALLOC
|
1993-08-03 06:36:30 +00:00
|
|
|
extern PTR malloc PARAMS ((unsigned));
|
|
|
|
extern PTR realloc PARAMS ((PTR, unsigned));
|
1991-10-28 01:00:06 +00:00
|
|
|
#endif
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int abort PARAMS ((void));
|
|
|
|
extern int free PARAMS ((PTR));
|
|
|
|
extern void bcopy PARAMS ((char*,char*,int));
|
|
|
|
extern void exit PARAMS ((int));
|
|
|
|
extern int strtol PARAMS ((char *, char **, int));
|
|
|
|
extern void bzero PARAMS ((char *, int));
|
1991-10-28 01:00:06 +00:00
|
|
|
#define NO_STDARG 1
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int abort PARAMS ((void));
|
|
|
|
extern int close PARAMS ((int));
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int fcntl PARAMS ((int des, int cmd, int e));
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int qsort PARAMS ((void *data,int els, int siz, int func()));
|
1993-06-18 03:12:04 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int fseek PARAMS ((FILE*, int, int));
|
1993-06-18 03:12:04 +00:00
|
|
|
#endif
|
1993-08-03 06:36:30 +00:00
|
|
|
extern int fclose PARAMS ((FILE*));
|
|
|
|
extern void bcopy PARAMS ((char*,char*,int));
|
|
|
|
extern int bcmp PARAMS ((char *, char *, int));
|
|
|
|
extern void bzero PARAMS ((char *, int));
|
|
|
|
extern void perror PARAMS ((CONST char *));
|
|
|
|
extern PTR memchr PARAMS ((const void *, int, unsigned ));
|
1993-06-18 18:15:58 +00:00
|
|
|
#if 0
|
|
|
|
/* Conflicts with system headers on SVR4. */
|
1993-08-03 06:36:30 +00:00
|
|
|
extern unsigned short getuid PARAMS ((void));
|
|
|
|
extern unsigned short getgid PARAMS ((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"
|