Part of binutils 2.20 update
[cegcc.git] / cegcc / src / binutils / bfd / hosts / alphavms.h
blob2a3421200a16455046531ddb506b62154a5d61c7
1 /* 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
7 This file is part of BFD, the Binary File Descriptor library.
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.
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.
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. */
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>
37 #include "bfd.h"
38 #include "filenames.h"
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;
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 */
54 # define BYTES_IN_PRINTF_INT 4
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 */
61 #endif /* BFD_HOST_64_BIT */
63 #include "fopen-vms.h"
65 #define NO_FCNTL 1
67 #ifndef O_ACCMODE
68 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
69 #endif
71 extern int getpagesize (void);
72 extern char *stpcpy (char *, const char *);
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)