]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mcore/sysdep.h
Update the copyright notice of some of the files I missed
[thirdparty/binutils-gdb.git] / sim / mcore / sysdep.h
CommitLineData
0fda6bd2 1/* System includes and definitions used by the Motorola MCore simulator.
e4d013fc 2 Copyright (C) 1999, 2007, 2008, 2009 Free Software Foundation, Inc.
2d514e6f
SS
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
4744ac1b
JB
9the Free Software Foundation; either version 3 of the License, or
10(at your option) any later version.
2d514e6f
SS
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
4744ac1b
JB
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>. */
2d514e6f
SS
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 ();
085dd6e6 48#ifndef memset
2d514e6f 49extern PTR memset ();
085dd6e6 50#endif
2d514e6f
SS
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
085dd6e6 69#ifndef strchr
2d514e6f 70extern char * strchr();
085dd6e6 71#endif
2d514e6f
SS
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 */