]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/hosts/sysv4.h
* mpw-make.in (ctor.c): Remove references.
[thirdparty/binutils-gdb.git] / bfd / hosts / sysv4.h
CommitLineData
be78a130
JG
1/* System V Release 4 Unix host system */
2
c5652bff 3#include <stddef.h>
d7276c0a 4#include <ansidecl.h>
be78a130
JG
5#include <fcntl.h>
6#include <errno.h>
7#include <stdio.h>
8#include <sys/types.h>
9#include <sys/stat.h>
10#include <utime.h>
11#include <ctype.h>
12#include <string.h>
13#include <sys/file.h>
14
c5652bff 15#ifndef O_ACCMODE
be78a130
JG
16#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
17#endif
18#define SEEK_SET 0
19#define SEEK_CUR 1
20
21#define POSIX_UTIME
471c3c3f
JK
22
23/* Note that we also use this for ptx4 (sequent). ptx4 does not
24 really have procfs, but it has the relevant headers for BFD to read
25 core files, so the proper thing to do for ptx4 is define
26 HAVE_PROCFS in BFD but not GDB. */
27
be78a130
JG
28#define HAVE_PROCFS /* This host has /proc support */
29
e49d5379
JG
30extern void abort PARAMS ((void));
31extern int close PARAMS ((int));
32extern void exit PARAMS ((int));
33extern int fclose PARAMS ((FILE*));
34extern void free PARAMS ((PTR));
35extern int fseek PARAMS ((FILE*, long, int));
36extern int getgid PARAMS (());
37extern int getuid PARAMS (());
38extern PTR malloc PARAMS ((unsigned));
39extern void perror PARAMS ((CONST char *));
e49d5379 40extern PTR realloc PARAMS ((PTR, unsigned));
be78a130
JG
41
42extern char *getenv();
43extern int chmod();
44extern int fstat();
45extern int stat();
be78a130
JG
46
47extern char *ctime();
48extern int _flsbuf();
49extern int fclose();
50extern int utimes();
51extern int vfprintf();
52extern long atol();
53extern int fputc();
54extern int unlink();
55
be78a130 56#include "fopen-same.h"