daily update
[deliverable/binutils-gdb.git] / sim / mcore / sysdep.h
CommitLineData
0fda6bd2 1/* System includes and definitions used by the Motorola MCore simulator.
7b6bb8da
JB
2 Copyright (C) 1999, 2007, 2008, 2009, 2010, 2011
3 Free Software Foundation, Inc.
2d514e6f
SS
4 Contributed by Cygnus Solutions.
5
6This file is part of GDB, the GNU debugger.
7
8This program is free software; you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by
4744ac1b
JB
10the Free Software Foundation; either version 3 of the License, or
11(at your option) any later version.
2d514e6f
SS
12
13This program is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of
15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16GNU General Public License for more details.
17
4744ac1b
JB
18You should have received a copy of the GNU General Public License
19along with this program. If not, see <http://www.gnu.org/licenses/>. */
2d514e6f
SS
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
48extern char * mktemp ();
085dd6e6 49#ifndef memset
2d514e6f 50extern PTR memset ();
085dd6e6 51#endif
2d514e6f
SS
52
53#ifndef DONTDECLARE_MALLOC
54extern PTR malloc ();
55extern PTR realloc ();
56#endif
57
58#ifndef __GNUC__
59extern PTR memcpy ();
60#else
61/* char * memcpy (); */
62#endif
63
64#ifdef __STDC__
65extern void free ();
66#else
67extern int free();
68#endif
69
085dd6e6 70#ifndef strchr
2d514e6f 71extern char * strchr();
085dd6e6 72#endif
2d514e6f
SS
73extern char * getenv();
74extern PTR memchr();
75extern char * strrchr();
76
77extern char * strrchr();
78extern char * ctime();
79extern long atol();
80extern char * getenv();
81#endif /* STDC_HEADERS */
82
83#ifndef BYTES_IN_PRINTF_INT
84#define BYTES_IN_PRINTF_INT 4
85#endif
86
87#include "fopen-same.h"
88#define hosts_std_host_H
89#endif
90
91#ifdef STDC_HEADERS
92#include <stddef.h>
93#endif /* STDC_HEADERS */
94
95#endif /* __SYSDEP_H */
This page took 0.468649 seconds and 4 git commands to generate.