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
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. */
40 || defined(__FreeBSD__) \
41 || defined(__OpenBSD__) \
42 || defined(__NetBSD__)
62 #if !defined(hpux) && !defined(SVR4)
69 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) || defined(irix)
78 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25)
85 #if !defined(SVR4) || defined(SOLARIS25)
89 #if !defined(SOLARIS) || defined(SOLARIS25)
98 #if !defined(SOLARIS) || defined(SOLARIS25)
134 #if !defined(SUNOS) && !(defined(SOLARIS) || defined(SOLARIS25))
137 #if !defined(SVR4) || defined(SOLARIS25)
143 #if !defined(SVR4) || defined(SOLARIS25)
150 #if !defined(hpux) && !defined(SVR4) && !defined(LISP_FEATURE_X86)
156 #if !defined(SVR4) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
163 #if !defined(SVR4) && !defined(__OpenBSD__)
169 #if defined(hpux) || defined(SVR4) || defined(__linux__)
179 || defined(__FreeBSD__) \
180 || defined(__OpenBSD__) \
181 || defined(__NetBSD__) \
182 || defined(__linux__)
195 #if !defined(SUNOS) \
196 && !defined(parisc) \
197 && !defined(SOLARIS) \
198 && !defined(__OpenBSD__) \
199 && !defined(__FreeBSD__) \
200 && !defined(__NetBSD__)
210 #if !defined(osf1) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
215 #if !defined(SOLARIS) || defined(SOLARIS25)
248 #ifndef LISP_FEATURE_X86
256 /* network support */
260 /* other miscellaneous things */
261 /* FIXME: NetBSD plays some renaming games, and so cannot simply
262 reference symbols here. "NetBSD needs to get fixed here too PEM
264 #if defined(SVR4) || defined(__FreeBSD__)
268 #if !defined(__FreeBSD__)