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