OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [sim/] [moxie/] [sysdep.h] - Blame information for rev 854

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* System includes and definitions used by the moxie simulator.
2
   Copyright (C) 2008, 2010 Free Software Foundation, Inc.
3
   Contributed by Anthony Green
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 3 of the License, or
10
(at your option) 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
18
along 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
47
extern char * mktemp ();
48
#ifndef memset
49
extern PTR    memset ();
50
#endif
51
 
52
#ifndef DONTDECLARE_MALLOC
53
extern PTR   malloc ();
54
extern PTR   realloc ();
55
#endif
56
 
57
#ifndef __GNUC__
58
extern PTR   memcpy ();
59
#else
60
/* char * memcpy (); */
61
#endif
62
 
63
#ifdef __STDC__
64
extern void free ();
65
#else
66
extern int free();
67
#endif
68
 
69
#ifndef strchr
70
extern char * strchr();
71
#endif
72
extern char * getenv();
73
extern PTR    memchr();
74
extern char * strrchr();
75
 
76
extern char * strrchr();
77
extern char * ctime();
78
extern long   atol();
79
extern 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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.