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__)
63 #if !defined(hpux) && !defined(SVR4)
70 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) || defined(irix)
79 #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25)
86 #if !defined(SVR4) || defined(SOLARIS25)
90 #if !defined(SOLARIS) || defined(SOLARIS25)
99 #if !defined(SOLARIS) || defined(SOLARIS25)
135 #if !defined(SUNOS) && !(defined(SOLARIS) || defined(SOLARIS25))
138 #if !defined(SVR4) || defined(SOLARIS25)
144 #if !defined(SVR4) || defined(SOLARIS25)
151 #if !defined(hpux) && !defined(SVR4) && !defined(LISP_FEATURE_X86)
157 #if !defined(SVR4) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
164 #if !defined(SVR4) && !defined(__OpenBSD__)
170 #if defined(hpux) || defined(SVR4) || defined(__linux__)
180 || defined(__FreeBSD__) \
181 || defined(__OpenBSD__) \
182 || defined(__NetBSD__) \
183 || defined(__linux__)
196 #if !defined(SUNOS) \
197 && !defined(parisc) \
198 && !defined(SOLARIS) \
199 && !defined(__OpenBSD__) \
200 && !defined(__FreeBSD__) \
201 && !defined(__NetBSD__)
211 #if !defined(osf1) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
216 #if !defined(SOLARIS) || defined(SOLARIS25)
249 #ifndef LISP_FEATURE_X86
257 /* network support */
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
265 #if defined(SVR4) || defined(__FreeBSD__)
269 #if !defined(__FreeBSD__)