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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [bfd/] [hosts/] [alphavms.h] - Blame information for rev 825

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

Line No. Rev Author Line
1 227 jeremybenn
/* alphavms.h -- BFD definitions for an openVMS host
2
   Copyright 1996, 2000, 2001, 2005, 2007, 2008, 2009
3
   Free Software Foundation, Inc.
4
   Written by Klaus Kämpf (kkaempf@progis.de)
5
   of proGIS Softwareentwicklung, Aachen, Germany
6
 
7
   This file is part of BFD, the Binary File Descriptor library.
8
 
9
   This program is free software; you can redistribute it and/or modify
10
   it under the terms of the GNU General Public License as published by
11
   the Free Software Foundation; either version 3 of the License, or
12
   (at your option) any later version.
13
 
14
   This program is distributed in the hope that it will be useful,
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
   GNU General Public License for more details.
18
 
19
   You should have received a copy of the GNU General Public License
20
   along with this program; if not, write to the Free Software
21
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
22
   MA 02110-1301, USA.  */
23
 
24
#include <stddef.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 <string.h>
31
#include <sys/file.h>
32
#include <stdlib.h>
33
#include <unixlib.h>
34
#include <unixio.h>
35
#include <time.h>
36
 
37
#include "bfd.h"
38
#include "filenames.h"
39
 
40
#ifndef BFD_HOST_64_BIT
41
/* Make the basic types 64-bit quantities on the host.
42
   Also provide the support macros BFD needs.  */
43
# ifdef __GNUC__
44
#  define       BFD_HOST_64_BIT long long
45
# else
46
#  define       BFD_HOST_64_BIT long
47
# endif
48
typedef unsigned BFD_HOST_64_BIT uint64_type;
49
typedef BFD_HOST_64_BIT int64_type;
50
 
51
# define sprintf_vma(s,x) sprintf (s, "%016lx", x) /* BFD_HOST_64_BIT */
52
# define fprintf_vma(f,x) fprintf (f, "%016lx", x) /* BFD_HOST_64_BIT */
53
 
54
# define BYTES_IN_PRINTF_INT 4
55
 
56
/* These must have type unsigned long because they are used as
57
   arguments in printf functions.  */
58
# define uint64_typeLOW(x) ((unsigned long) (((x) & 0xffffffff))) /* BFD_HOST_64_BIT */
59
# define uint64_typeHIGH(x) ((unsigned long) (((x) >> 32) & 0xffffffff)) /* BFD_HOST_64_BIT */
60
 
61
#endif /* BFD_HOST_64_BIT */
62
 
63
#include "fopen-vms.h"
64
 
65
#define NO_FCNTL 1
66
 
67
#ifndef O_ACCMODE
68
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
69
#endif
70
 
71
extern int getpagesize (void);
72
extern char *stpcpy (char *, const char *);
73
 
74
/* No intl.  */
75
#define gettext(Msgid) (Msgid)
76
#define dgettext(Domainname, Msgid) (Msgid)
77
#define dcgettext(Domainname, Msgid, Category) (Msgid)
78
#define textdomain(Domainname) while (0) /* nothing */
79
#define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
80
#define _(String) (String)
81
#define N_(String) (String)

powered by: WebSVN 2.1.0

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