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.
22 #include <mach-o/dyld.h>
28 os_get_runtime_executable_path(int external)
30 char path[PATH_MAX + 1];
31 uint32_t size = sizeof(path);
33 if (_NSGetExecutablePath(path, &size) == -1)
38 return copied_string(path);