X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fsunos-os.c;h=48623d333e69cd5d1e03d10a935e4bfab1fdf554;hb=e0f344219fe6cd5329aae9fc343466bcd71d4edf;hp=1f2581b63522a9c6da0525462186f1fde578b08a;hpb=baa0eaf21221dc564088c37b228c620c298aeaa1;p=sbcl.git diff --git a/src/runtime/sunos-os.c b/src/runtime/sunos-os.c index 1f2581b..48623d3 100644 --- a/src/runtime/sunos-os.c +++ b/src/runtime/sunos-os.c @@ -245,5 +245,12 @@ os_install_interrupt_handlers() char * os_get_runtime_executable_path() { - return NULL; + int ret; + char path[] = "/proc/self/object/a.out"; + + ret = access(path, R_OK); + if (ret == -1) + return NULL; + + return copied_string(path); }