-/* Not sure why this is needed -- Fred Fish put it in */
-#define USG
+/* Amiga Unix host system */
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <utime.h>
#include <ctype.h>
#include <string.h>
#include <sys/file.h>
#define SEEK_SET 0
#define SEEK_CUR 1
-extern PROTO(int, abort,(void));
-extern PROTO(int, close,(int));
-extern PROTO(void, exit,(int));
-extern PROTO(int, fclose,(FILE*));
-extern PROTO(int, free,(PTR));
-extern PROTO(int, fseek,(FILE*, long, int));
-extern PROTO(int, getgid,());
-extern PROTO(int, getuid,());
-extern PROTO(PTR, malloc,(unsigned));
-extern PROTO(void, perror,(CONST char *));
-extern PROTO(int, qsort,(void *data,int els, int siz, int func()));
-extern PROTO(PTR, realloc, (PTR, unsigned));
+#define POSIX_UTIME
+#define HAVE_PROCFS /* This host has /proc support */
+
+extern void EXFUN( abort,(void));
+extern int EXFUN( close,(int));
+extern void EXFUN( exit,(int));
+extern int EXFUN( fclose,(FILE*));
+extern void EXFUN( free,(PTR));
+extern int EXFUN( fseek,(FILE*, long, int));
+extern int EXFUN( getgid,());
+extern int EXFUN( getuid,());
+extern PTR EXFUN( malloc,(unsigned));
+extern void EXFUN( perror,(CONST char *));
+extern int EXFUN( qsort,(void *data,int els, int siz, int func()));
+extern PTR EXFUN( realloc, (PTR, unsigned));
extern char *getenv();
extern int chmod();
typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
+
+#include "fopen-same.h"