X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fundefineds.h;h=2ad75cec5d0c75a698a398f9e122e97ddf01266a;hb=c3699db2053ff3b5ac6a98d4431c3789496002d8;hp=5ca4e20ee94ce5690f70cd55c9851faa67d2f474;hpb=dfa55a883f94470267b626dae77ce7e7dfac3df6;p=sbcl.git diff --git a/src/runtime/undefineds.h b/src/runtime/undefineds.h index 5ca4e20..2ad75ce 100644 --- a/src/runtime/undefineds.h +++ b/src/runtime/undefineds.h @@ -1,5 +1,21 @@ /* * routines that must be linked into the core for Lisp to work + * + * but note this is only the BSD version, as per the FIXME + * + * FIXME: It's tedious and error-prone having to edit both this file and + * the analogous ldso-stubs.S file when we change the references to + * functions, enough so that it would probably be good to rewrite + * both files in terms of a shared list of function names. + * E.g. the function names could be in shared-function-names.h + * SHARED_FUNCTION(cos) + * SHARED_FUNCTION(sinh) + * SHARED_FUNCTION(strlen) + * etc. and the per-OS files could look like + * #define SHARED_FUNCTION(f) .... + * #include "shared-function-names.h" + * ...then going on to do OS-specific things + * "Once and only once." */ /* @@ -12,7 +28,7 @@ * provided with absolutely no warranty. See the COPYING and CREDITS * files for more information. */ - + /* Pick up all the syscalls. */ F(accept) F(access) @@ -56,9 +72,6 @@ F(getegid) F(geteuid) F(getgid) F(getgroups) -#if !defined (SOLARIS) || defined(SOLARIS25) -F(gethostid) -#endif F(gethostname) F(getitimer) #if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) @@ -125,26 +138,21 @@ F(sethostname) #endif F(setitimer) F(setpgrp) +F(setsid) #if !defined(SVR4) || defined(SOLARIS25) F(setpriority) #endif -#if !defined(hpux) && !defined(SVR4) || defined(SOLARIS25) -F(setregid) -F(setreuid) -#endif F(setrlimit) F(setsockopt) F(settimeofday) F(shutdown) -#ifndef SVR4 -F(sigblock) -#endif -F(sigpause) -#if !defined(ibmrt) && !defined(hpux) && !defined(SVR4) && !defined(__i386__) +#if !defined(hpux) && !defined(SVR4) && !defined(LISP_FEATURE_X86) F(sigreturn) #endif -#if !defined(SVR4) && !defined(__FreeBSD__) && !defined(__OpenBSD__) +#if !defined(SVR4) F(sigsetmask) +#endif +#if !defined(SVR4) && !defined(__FreeBSD__) && !defined(__OpenBSD__) F(sigstack) F(sigvec) #endif @@ -157,7 +165,7 @@ F(swapon) F(symlink) F(sync) F(syscall) -#if defined(hpux) || defined(SVR4) || defined(linux) +#if defined(hpux) || defined(SVR4) || defined(__linux__) F(closedir) F(opendir) #if defined(readdir) @@ -206,7 +214,7 @@ F(wait3) F(write) F(writev) -/* Math routines. */ +/* math routines */ F(cos) F(sin) F(tan) @@ -233,16 +241,19 @@ F(pow) #ifndef hpux F(cbrt) #endif -#ifndef __i386__ +#ifndef LISP_FEATURE_X86 F(sqrt) #endif F(hypot) -/* Network support. */ +/* string things */ +F(strlen) + +/* network support */ F(gethostbyname) F(gethostbyaddr) -/* Other miscellaneous things. */ +/* other miscellaneous things */ #if defined(SVR4) || defined(__FreeBSD__) F(setpgid) F(getpgid) @@ -253,9 +264,7 @@ D(daylight) #endif D(tzname) #endif -#if !defined (SOLARIS) || defined(SOLARIS25) -F(getwd) -#endif +F(getcwd) F(ttyname) #ifdef irix