1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
|
/* Definitions of target machine GNU compiler. 64bit VMS version.
Copyright (C) 2009, 2010 Free Software Foundation, Inc.
Contributed by Douglas B Rupp (rupp@gnat.com).
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
/*
Correlation array of 64bit standard CRTL names with DECCRTL
function names. Currently contains only a partial list,
e.g. those functions use in GNAT and GCC. Memory allocation
routines are 32bit but this can be overridden by -mmalloc
subtarget switch.
Note: Please keep in alphabetical order.
*/
#undef CRTL_NAMES
#define CRTL_NAMES \
{ \
{"_calloc32", "decc$calloc", 0}, \
{"_malloc32", "decc$malloc", 0}, \
{"_realloc32", "decc$realloc", 0}, \
{"_strdup32", "decc$strdup", 0}, \
{"abs", "decc$abs", 0}, \
{"abort", "decc$abort", 0}, \
{"access", "decc$access", 0}, \
{"accept", "decc$accept", 0}, \
{"acos", "decc$tacos", 0}, \
{"alarm", "decc$alarm", 0}, \
{"asin", "decc$tasin", 0}, \
{"atan", "decc$tatan", 0}, \
{"atan2", "decc$tatan2", 0}, \
{"atexit", "decc$atexit", 0}, \
{"atoi", "decc$atoi", 0}, \
{"atoll", "decc$atoll", 0}, \
{"atoq", "decc$atoq", 0}, \
{"basename", "decc$_basename64", 0}, \
{"bcmp", "decc$bcmp", 0}, \
{"bcopy", "decc$bcopy", 0}, \
{"bsearch", "decc$_bsearch64", 0}, \
{"bzero", "decc$bzero", 0}, \
{"calloc", "decc$calloc", 0}, \
{"ceil", "decc$tceil", 0}, \
{"chdir", "decc$chdir", 0}, \
{"chown", "decc$chown", 0}, \
{"clearerr", "decc$clearerr", 0}, \
{"clock", "decc$clock", 0}, \
{"close", "decc$close", 0}, \
{"cos", "decc$tcos", 0}, \
{"connect", "decc$connect", 0}, \
{"ctime", "decc$ctime", 0}, \
{"dup", "decc$dup", 0}, \
{"dup2", "decc$dup2", 0}, \
{"exit", "decc$exit", 0}, \
{"exp", "decc$texp", 0}, \
{"fabs", "decc$tfabs", 0}, \
{"fclose", "decc$fclose", 0}, \
{"fdopen", "decc$fdopen", 0}, \
{"fgetc", "decc$fgetc", 0}, \
{"fgets", "decc$_fgets64", 0}, \
{"fflush", "decc$fflush", 0}, \
{"ffs", "decc$ffs", 0}, \
{"floor", "decc$tfloor", 0}, \
{"fopen", "decc$fopen", 0}, \
{"fputc", "decc$fputc", 0}, \
{"fputs", "decc$fputs", 0}, \
{"free", "decc$free", 0}, \
{"fread", "decc$fread", 0}, \
{"freopen", "decc$freopen", 0}, \
{"fseek", "decc$fseek", 0}, \
{"ftell", "decc$ftell", 0}, \
{"fwrite", "decc$fwrite", 0}, \
{"getcwd", "decc$_getcwd64", 0}, \
{"getegid", "decc$getegid", 0}, \
{"getenv", "decc$getenv", 0}, \
{"geteuid", "decc$geteuid", 0}, \
{"getgid", "decc$getgid", 0}, \
{"gethostbyaddr","decc$gethostbyaddr",0}, \
{"gethostbyname","decc$gethostbyname",0}, \
{"getpagesize", "decc$getpagesize", 0}, \
{"getpid", "decc$getpid", 0}, \
{"getservbyname","decc$getservbyname",0}, \
{"getservbyport","decc$getservbyport",0}, \
{"gettimeofday", "decc$gettimeofday", 0}, \
{"getuid", "decc$getuid", 0}, \
{"htons", "decc$htons", 0}, \
{"iconv", "decc$iconv", 0}, \
{"index", "decc$_index64", 0}, \
{"isatty", "decc$isatty", 0}, \
{"isdigit", "decc$isdigit", 0}, \
{"kill", "decc$kill", 0}, \
{"log", "decc$tlog", 0}, \
{"log10", "decc$tlog10", 0}, \
{"lseek", "decc$lseek", 0}, \
{"ioctl", "decc$ioctl", 0}, \
{"malloc", "decc$malloc", 0}, \
{"mbstowcs", "decc$_mbstowcs64", 0}, \
{"memchr", "decc$_memchr64", 0}, \
{"memcmp", "decc$memcmp", 0}, \
{"memcpy", "decc$_memcpy64", 0}, \
{"memmove", "decc$_memmove64", 0}, \
{"memset", "decc$_memset64", 0}, \
{"mkstemp", "decc$mkstemp", 0}, \
{"mktemp", "decc$_mktemp64", 0}, \
{"mmap", "decc$_mmap64", 0}, \
{"munmap", "decc$munmap", 0}, \
{"nl_langinfo", "decc$nl_langinfo", 0}, \
{"open", "decc$open", 0}, \
{"pclose", "decc$pclose", 0}, \
{"popen", "decc$popen", 0}, \
{"pow", "decc$tpow", 0}, \
{"printf", "decc$txprintf", 0}, \
{"putenv", "decc$putenv", 0}, \
{"puts", "decc$puts", 0}, \
{"random", "decc$random", 0}, \
{"read", "decc$read", 0}, \
{"realloc", "decc$realloc", 0}, \
{"recv", "decc$recv", 0}, \
{"recvfrom", "decc$recvfrom", 0}, \
{"recvmsg", "decc$__bsd44___recvmsg64", 0}, \
{"rename", "decc$rename", 0}, \
{"rewind", "decc$rewind", 0}, \
{"rindex", "decc$_rindex64", 0}, \
{"rmdir", "decc$rmdir", 0}, \
{"send", "decc$send", 0}, \
{"sendmsg", "decc$__bsd44___sendmsg64", 0}, \
{"sendto", "decc$sendto", 0}, \
{"setenv", "decc$setenv", 0}, \
{"setlocale", "decc$setlocale", 0}, \
{"setvbuf", "decc$setvbuf", 0}, \
{"signal", "decc$signal", 0}, \
{"sigsetmask", "decc$sigsetmask", 0}, \
{"sin", "decc$tsin", 0}, \
{"snprintf", "decc$txsnprintf", 0}, \
{"socket", "decc$socket", 0}, \
{"sqrt", "decc$tsqrt", 0}, \
{"strcasecmp", "decc$strcasecmp", 0}, \
{"strchr", "decc$_strchr64", 0}, \
{"strcpy", "decc$_strcpy64", 0}, \
{"strdup", "decc$strdup", 0}, \
{"strerror", "decc$strerror", 0}, \
{"strlen", "decc$strlen", 0}, \
{"strncasecmp", "decc$strncasecmp", 0}, \
{"strncmp", "decc$strncmp", 0}, \
{"strncpy", "decc$_strncpy64", 0}, \
{"strrchr", "decc$_strrchr64", 0}, \
{"strstr", "decc$_strstr64", 0}, \
{"strtod", "decc$t_strtod64", 0}, \
{"strtol", "decc$_strtoll64", 0}, \
{"strtoul", "decc$_strtoull64", 0}, \
{"sysconf", "decc$sysconf", 0}, \
{"system", "decc$system", 0}, \
{"tan", "decc$ttan", 0}, \
{"time", "decc$time", 0}, \
{"times", "decc$times", 0}, \
{"tmpfile", "decc$tmpfile", 0}, \
{"tmpnam", "decc$_tmpnam64", 0}, \
{"ungetc", "decc$ungetc", 0}, \
{"unlink", "decc$unlink", 0}, \
{"umask", "decc$umask", 0}, \
{"utime", "decc$utime", 0}, \
{"wait", "decc$wait", 0}, \
{"waitpid", "decc$waitpid", 0}, \
{"wcswidth", "decc$wcswidth", 0}, \
{"write", "decc$write", 0}, \
{"vfprintf", "decc$txvfprintf", 0}, \
{"vprintf", "decc$txvprintf", 0}, \
{"vsprintf", "decc$txvsprintf", 0}, \
{"vsnprintf", "decc$txvsnprintf", 0}, \
{NULL, NULL, 0} \
}
/* Initialize of libfuncs that are 32/64 bit memory specific. */
#undef MEM_LIBFUNCS_INIT
#define MEM_LIBFUNCS_INIT \
do { \
memcpy_libfunc = init_one_libfunc ("decc$_memcpy64"); \
memmove_libfunc = init_one_libfunc ("decc$_memmove64"); \
memset_libfunc = init_one_libfunc ("decc$_memset64"); \
} while (0)
|