X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsunos-os.c;h=48623d333e69cd5d1e03d10a935e4bfab1fdf554;hb=10cdee0326e9e8a5bbfe1d8312a73d58f023fb5f;hp=723534f2ead36c3cf52c06551c017ad45271c7ea;hpb=b27fb452f72190637b03a6ef2e1333091da42a98;p=sbcl.git diff --git a/src/runtime/sunos-os.c b/src/runtime/sunos-os.c index 723534f..48623d3 100644 --- a/src/runtime/sunos-os.c +++ b/src/runtime/sunos-os.c @@ -241,3 +241,16 @@ os_install_interrupt_handlers() undoably_install_low_level_interrupt_handler(SIG_MEMORY_FAULT, sigsegv_handler); } + +char * +os_get_runtime_executable_path() +{ + int ret; + char path[] = "/proc/self/object/a.out"; + + ret = access(path, R_OK); + if (ret == -1) + return NULL; + + return copied_string(path); +}