1992-03-29 18:46:10 +00:00
|
|
|
/* System V Release 4 Unix host system */
|
|
|
|
|
1993-09-17 09:08:00 +00:00
|
|
|
#include <stddef.h>
|
1993-06-10 20:31:17 +00:00
|
|
|
#include <ansidecl.h>
|
1992-03-29 18:46:10 +00:00
|
|
|
#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>
|
1995-02-17 18:35:40 +00:00
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
1992-03-29 18:46:10 +00:00
|
|
|
|
1993-09-17 09:08:00 +00:00
|
|
|
#ifndef O_ACCMODE
|
1992-03-29 18:46:10 +00:00
|
|
|
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
|
|
|
|
#endif
|
1995-02-17 18:35:40 +00:00
|
|
|
#ifndef SEEK_SET
|
1992-03-29 18:46:10 +00:00
|
|
|
#define SEEK_SET 0
|
1995-02-17 18:35:40 +00:00
|
|
|
#endif
|
|
|
|
#ifndef SEEK_CUR
|
1992-03-29 18:46:10 +00:00
|
|
|
#define SEEK_CUR 1
|
1995-02-17 18:35:40 +00:00
|
|
|
#endif
|
1992-03-29 18:46:10 +00:00
|
|
|
|
|
|
|
#define POSIX_UTIME
|
1994-03-26 01:12:53 +00:00
|
|
|
|
|
|
|
/* Note that we also use this for ptx4 (sequent). ptx4 does not
|
|
|
|
really have procfs, but it has the relevant headers for BFD to read
|
|
|
|
core files, so the proper thing to do for ptx4 is define
|
|
|
|
HAVE_PROCFS in BFD but not GDB. */
|
|
|
|
|
1992-03-29 18:46:10 +00:00
|
|
|
#define HAVE_PROCFS /* This host has /proc support */
|
|
|
|
|
|
|
|
#include "fopen-same.h"
|