Replace %CODE-ENTRY-POINTS with an array, remove %SIMPLE-FUN-NEXT.
[sbcl.git] / src / runtime / undefineds.h
blob64bd72c8042e3966b8efe660d0c16aaeb1b23150
1 /*
2 * routines that must be linked into the core for Lisp to work
4 * but note this is only the BSD version, as per the FIXME
6 * FIXME: It's tedious and error-prone having to edit both this file and
7 * the analogous ldso-stubs.S file when we change the references to
8 * functions, enough so that it would probably be good to rewrite
9 * both files in terms of a shared list of function names.
10 * E.g. the function names could be in shared-function-names.h
11 * SHARED_FUNCTION(cos)
12 * SHARED_FUNCTION(sinh)
13 * SHARED_FUNCTION(strlen)
14 * etc. and the per-OS files could look like
15 * #define SHARED_FUNCTION(f) ....
16 * #include "shared-function-names.h"
17 * ...then going on to do OS-specific things
18 * "Once and only once."
22 * This software is part of the SBCL system. See the README file for
23 * more information.
25 * This software is derived from the CMU CL system, which was
26 * written at Carnegie Mellon University and released into the
27 * public domain. The software is in the public domain and is
28 * provided with absolutely no warranty. See the COPYING and CREDITS
29 * files for more information.
32 /* Pick up all the syscalls. */
33 F(accept)
34 F(access)
35 F(acct)
36 F(bind)
37 F(brk)
38 #if defined(hpux) \
39 || defined(SVR4) \
40 || defined(LISP_FEATURE_FREEBSD) \
41 || defined(__OpenBSD__) \
42 || defined(__NetBSD__) \
43 || defined(__DragonFly__)
44 F(cfgetospeed)
45 F(cfsetospeed)
46 F(cfgetispeed)
47 F(cfsetispeed)
48 #endif
49 F(chdir)
50 F(chmod)
51 F(chown)
52 F(chroot)
53 F(close)
54 F(connect)
55 F(creat)
56 F(dup)
57 F(dup2)
58 F(execve)
59 F(exit)
60 F(_exit)
61 F(fchmod)
62 F(fchown)
63 F(fcntl)
64 #if !defined(hpux) && !defined(SVR4)
65 F(flock)
66 #endif
67 F(fork)
68 F(fstat)
69 F(fsync)
70 F(ftruncate)
71 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) || defined(irix)
72 F(getdtablesize)
73 #endif
74 F(getegid)
75 F(geteuid)
76 F(getgid)
77 F(getgroups)
78 F(gethostname)
79 F(getitimer)
80 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25)
81 F(getpagesize)
82 #endif
83 F(getpeername)
84 F(getpgrp)
85 F(getpid)
86 F(getppid)
87 #if !defined(SVR4) || defined(SOLARIS25)
88 F(getpriority)
89 #endif
90 F(getrlimit)
91 #if !defined(SOLARIS) || defined(SOLARIS25)
92 F(getrusage)
93 #endif
94 F(getsockname)
95 F(getsockopt)
96 F(gettimeofday)
97 F(getuid)
98 F(ioctl)
99 F(kill)
100 #if !defined(SOLARIS) || defined(SOLARIS25)
101 F(killpg)
102 #endif
103 F(link)
104 F(listen)
105 F(lseek)
106 F(lstat)
107 F(mkdir)
108 F(mknod)
109 F(mmap)
110 F(mount)
111 F(munmap)
112 F(open)
113 F(pipe)
114 F(profil)
115 F(ptrace)
116 #ifdef mach
117 F(quota)
118 #endif
119 F(read)
120 F(readlink)
121 F(readv)
122 #ifndef SVR4
123 F(reboot)
124 #endif
125 F(recv)
126 F(recvfrom)
127 F(recvmsg)
128 F(rename)
129 F(rmdir)
130 F(sbrk)
131 F(select)
132 F(send)
133 F(sendmsg)
134 F(sendto)
135 F(setgroups)
136 #if !defined(SUNOS) && !(defined(SOLARIS) || defined(SOLARIS25))
137 F(sethostid)
138 #endif
139 #if !defined(SVR4) || defined(SOLARIS25)
140 F(sethostname)
141 #endif
142 F(setitimer)
143 F(setpgrp)
144 F(setsid)
145 #if !defined(SVR4) || defined(SOLARIS25)
146 F(setpriority)
147 #endif
148 F(setrlimit)
149 F(setsockopt)
150 F(settimeofday)
151 F(shutdown)
152 #if !defined(hpux) && !defined(SVR4) && !defined(LISP_FEATURE_X86)
153 F(sigreturn)
154 #endif
155 #if !defined(SVR4) && !defined(LISP_FEATURE_FREEBSD) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
156 F(sigstack)
157 F(sigvec)
158 #endif
159 F(socket)
160 F(socketpair)
161 F(stat)
162 #if !defined(SVR4) && !defined(__OpenBSD__)
163 F(swapon)
164 #endif
165 F(symlink)
166 F(sync)
167 F(syscall)
168 #if defined(hpux) || defined(SVR4) || defined(__linux__)
169 F(closedir)
170 F(opendir)
171 #if defined(readdir)
172 #undef reddir
173 #endif
174 F(readdir)
175 #endif
176 #if defined(hpux) \
177 || defined(SVR4) \
178 || defined(LISP_FEATURE_FREEBSD) \
179 || defined(__OpenBSD__) \
180 || defined(__NetBSD__) \
181 || defined(__DragonFly__) \
182 || defined(__linux__)
183 F(tcgetattr)
184 F(tcsetattr)
185 F(tcsendbreak)
186 F(tcdrain)
187 F(tcflush)
188 F(tcflow)
189 #endif
190 #if defined(SOLARIS)
191 F(times)
192 #endif
193 F(truncate)
194 F(umask)
195 #if !defined(SUNOS) \
196 && !defined(parisc) \
197 && !defined(SOLARIS) \
198 && !defined(__OpenBSD__) \
199 && !defined(LISP_FEATURE_FREEBSD) \
200 && !defined(__DragonFly__) \
201 && !defined(__NetBSD__)
202 F(umount)
203 #endif
204 F(unlink)
205 #ifndef hpux
206 F(utimes)
207 #endif
208 #ifndef irix
209 F(vfork)
210 #endif
211 #if !defined(osf1) && !defined(LISP_FEATURE_FREEBSD) && !defined(__OpenBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
212 F(vhangup)
213 #endif
214 F(wait)
215 F(waitpid)
216 #if !defined(SOLARIS) || defined(SOLARIS25)
217 F(wait3)
218 #endif
219 F(write)
220 F(writev)
222 /* math routines */
223 F(cos)
224 F(sin)
225 F(tan)
226 F(acos)
227 F(asin)
228 F(atan)
229 F(atan2)
230 F(sinh)
231 F(cosh)
232 F(tanh)
233 F(asinh)
234 F(acosh)
235 F(atanh)
236 F(exp)
237 #ifndef hpux
238 F(expm1)
239 #endif
240 F(log)
241 F(log10)
242 #ifndef hpux
243 F(log1p)
244 #endif
245 F(pow)
246 #ifndef hpux
247 F(cbrt)
248 #endif
249 #ifndef LISP_FEATURE_X86
250 F(sqrt)
251 #endif
252 F(hypot)
254 /* string things */
255 F(strlen)
257 /* network support */
258 F(gethostbyname)
259 F(gethostbyaddr)
261 /* other miscellaneous things */
262 /* FIXME: NetBSD plays some renaming games, and so cannot simply
263 reference symbols here. "NetBSD needs to get fixed here too PEM
264 2004-03-27" */
265 #if defined(SVR4) || defined(LISP_FEATURE_FREEBSD)
266 F(setpgid)
267 F(getpgid)
268 D(timezone)
269 #if !defined(LISP_FEATURE_FREEBSD)
270 D(altzone)
271 D(daylight)
272 #endif
273 D(tzname)
274 #endif
275 F(getcwd)
276 F(ttyname)
278 #ifdef irix
279 F(_getpty)
280 #endif
282 F(dlopen)
283 F(dlsym)
284 F(dlclose)
285 F(dlerror)