1993-07-30 18:17:38 +00:00
|
|
|
#include <ansidecl.h>
|
1991-04-15 15:29:40 +00:00
|
|
|
#include <fcntl.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdio.h>
|
1991-09-20 03:44:17 +00:00
|
|
|
#include <sys/types.h>
|
1991-04-15 15:29:40 +00:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <string.h>
|
1992-07-04 21:45:42 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
|
1993-09-17 09:08:00 +00:00
|
|
|
#ifndef O_ACCMODE
|
1991-04-15 15:29:40 +00:00
|
|
|
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
|
|
|
#endif
|
1993-09-17 09:08:00 +00:00
|
|
|
#ifndef SEEK_SET
|
1991-04-15 15:29:40 +00:00
|
|
|
#define SEEK_SET 0
|
|
|
|
#define SEEK_CUR 1
|
1992-07-04 21:45:42 +00:00
|
|
|
#endif
|
|
|
|
|
1992-11-02 20:41:14 +00:00
|
|
|
#define USE_UTIME
|
1991-10-11 10:41:22 +00:00
|
|
|
|
|
|
|
/* Some things that need to be defined in order to make code written for
|
|
|
|
BSD Unix compile under System V Unix. */
|
1991-04-15 15:29:40 +00:00
|
|
|
|
1992-07-04 21:45:42 +00:00
|
|
|
/*#include <memory.h>*/
|
1991-04-15 15:29:40 +00:00
|
|
|
#define bcmp(b1,b2,len) memcmp(b1,b2,len)
|
|
|
|
#define bcopy(src,dst,len) memcpy(dst,src,len)
|
|
|
|
#define bzero(s,n) memset(s,0,n)
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
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));
|
|
|
|
extern void free PARAMS ((PTR));
|
1991-05-25 01:52:23 +00:00
|
|
|
#endif
|
|
|
|
|
1991-12-13 05:03:17 +00:00
|
|
|
#include "fopen-same.h"
|