2 * This is the Darwin incarnation of OS-dependent routines. See also
7 * This software is part of the SBCL system. See the README file for
10 * This software is derived from the CMU CL system, which was
11 * written at Carnegie Mellon University and released into the
12 * public domain. The software is in the public domain and is
13 * provided with absolutely no warranty. See the COPYING and CREDITS
14 * files for more information.
23 #include <mach-o/dyld.h>
27 os_get_runtime_executable_path()
29 char path[PATH_MAX + 1];
30 uint32_t size = sizeof(path);
32 if (_NSGetExecutablePath(path, &size) == -1)
37 return copied_string(path);