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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gdb-7.2/] [sim/] [mcore/] [sysdep.h] - Diff between revs 835 and 841

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 835 Rev 841
/* System includes and definitions used by the Motorola MCore simulator.
/* System includes and definitions used by the Motorola MCore simulator.
   Copyright (C) 1999, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
   Copyright (C) 1999, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
   Contributed by Cygnus Solutions.
   Contributed by Cygnus Solutions.
 
 
This file is part of GDB, the GNU debugger.
This file is part of GDB, the GNU debugger.
 
 
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
(at your option) any later version.
 
 
This program is distributed in the hope that it will be useful,
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
GNU General Public License for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 
#ifndef __SYSDEP_H
#ifndef __SYSDEP_H
#define __SYSDEP_H
#define __SYSDEP_H
 
 
#ifndef hosts_std_host_H
#ifndef hosts_std_host_H
#include <fcntl.h>
#include <fcntl.h>
#include <errno.h>
#include <errno.h>
#include <stdio.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <ctype.h>
#include <ctype.h>
#include <string.h>
#include <string.h>
#include <sys/file.h>
#include <sys/file.h>
#include "ansidecl.h"
#include "ansidecl.h"
 
 
#ifndef O_ACCMODE
#ifndef O_ACCMODE
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#endif
#endif
#ifndef SEEK_SET
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_SET 0
#endif
#endif
#ifndef SEEK_CUR
#ifndef SEEK_CUR
#define SEEK_CUR 1
#define SEEK_CUR 1
#endif
#endif
#ifdef STDC_HEADERS
#ifdef STDC_HEADERS
#include <stdlib.h>
#include <stdlib.h>
/*#include <string.h>*/
/*#include <string.h>*/
#else
#else
extern char * mktemp ();
extern char * mktemp ();
#ifndef memset
#ifndef memset
extern PTR    memset ();
extern PTR    memset ();
#endif
#endif
 
 
#ifndef DONTDECLARE_MALLOC
#ifndef DONTDECLARE_MALLOC
extern PTR   malloc ();
extern PTR   malloc ();
extern PTR   realloc ();
extern PTR   realloc ();
#endif
#endif
 
 
#ifndef __GNUC__
#ifndef __GNUC__
extern PTR   memcpy ();
extern PTR   memcpy ();
#else
#else
/* char * memcpy (); */
/* char * memcpy (); */
#endif
#endif
 
 
#ifdef __STDC__
#ifdef __STDC__
extern void free ();
extern void free ();
#else
#else
extern int free();
extern int free();
#endif
#endif
 
 
#ifndef strchr
#ifndef strchr
extern char * strchr();
extern char * strchr();
#endif
#endif
extern char * getenv();
extern char * getenv();
extern PTR    memchr();
extern PTR    memchr();
extern char * strrchr();
extern char * strrchr();
 
 
extern char * strrchr();
extern char * strrchr();
extern char * ctime();
extern char * ctime();
extern long   atol();
extern long   atol();
extern char * getenv();
extern char * getenv();
#endif /* STDC_HEADERS */
#endif /* STDC_HEADERS */
 
 
#ifndef BYTES_IN_PRINTF_INT
#ifndef BYTES_IN_PRINTF_INT
#define BYTES_IN_PRINTF_INT 4
#define BYTES_IN_PRINTF_INT 4
#endif
#endif
 
 
#include "fopen-same.h"
#include "fopen-same.h"
#define hosts_std_host_H
#define hosts_std_host_H
#endif
#endif
 
 
#ifdef  STDC_HEADERS
#ifdef  STDC_HEADERS
#include <stddef.h>
#include <stddef.h>
#endif /* STDC_HEADERS */
#endif /* STDC_HEADERS */
 
 
#endif /* __SYSDEP_H */
#endif /* __SYSDEP_H */
 
 

powered by: WebSVN 2.1.0

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