]>
Commit | Line | Data |
---|---|---|
2d514e6f SS |
1 | /* System includes and definitions used by the Motorolla MCore simulator. |
2 | Copyright (C) 1999 Free Software Foundation, Inc. | |
3 | Contributed by Cygnus Solutions. | |
4 | ||
5 | This file is part of GDB, the GNU debugger. | |
6 | ||
7 | This program is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2, or (at your option) | |
10 | any later version. | |
11 | ||
12 | This program is distributed in the hope that it will be useful, | |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License along | |
18 | with this program; if not, write to the Free Software Foundation, Inc., | |
19 | 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | |
20 | ||
21 | #ifndef __SYSDEP_H | |
22 | #define __SYSDEP_H | |
23 | ||
24 | #ifndef hosts_std_host_H | |
25 | #include <fcntl.h> | |
26 | #include <errno.h> | |
27 | #include <stdio.h> | |
28 | #include <sys/types.h> | |
29 | #include <sys/stat.h> | |
30 | #include <ctype.h> | |
31 | #include <string.h> | |
32 | #include <sys/file.h> | |
33 | #include "ansidecl.h" | |
34 | ||
35 | #ifndef O_ACCMODE | |
36 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
37 | #endif | |
38 | #ifndef SEEK_SET | |
39 | #define SEEK_SET 0 | |
40 | #endif | |
41 | #ifndef SEEK_CUR | |
42 | #define SEEK_CUR 1 | |
43 | #endif | |
44 | #ifdef STDC_HEADERS | |
45 | #include <stdlib.h> | |
46 | /*#include <string.h>*/ | |
47 | #else | |
48 | extern char * mktemp (); | |
49 | extern PTR memset (); | |
50 | ||
51 | #ifndef DONTDECLARE_MALLOC | |
52 | extern PTR malloc (); | |
53 | extern PTR realloc (); | |
54 | #endif | |
55 | ||
56 | #ifndef __GNUC__ | |
57 | extern PTR memcpy (); | |
58 | #else | |
59 | /* char * memcpy (); */ | |
60 | #endif | |
61 | ||
62 | #ifdef __STDC__ | |
63 | extern void free (); | |
64 | #else | |
65 | extern int free(); | |
66 | #endif | |
67 | ||
68 | extern char * strchr(); | |
69 | extern char * getenv(); | |
70 | extern PTR memchr(); | |
71 | extern char * strrchr(); | |
72 | ||
73 | extern char * strrchr(); | |
74 | extern char * ctime(); | |
75 | extern long atol(); | |
76 | extern char * getenv(); | |
77 | #endif /* STDC_HEADERS */ | |
78 | ||
79 | #ifndef BYTES_IN_PRINTF_INT | |
80 | #define BYTES_IN_PRINTF_INT 4 | |
81 | #endif | |
82 | ||
83 | #include "fopen-same.h" | |
84 | #define hosts_std_host_H | |
85 | #endif | |
86 | ||
87 | #ifdef STDC_HEADERS | |
88 | #include <stddef.h> | |
89 | #endif /* STDC_HEADERS */ | |
90 | ||
91 | #endif /* __SYSDEP_H */ |