projects
/
sbcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
0.9.11.5
[sbcl.git]
/
src
/
runtime
/
sunos-os.c
diff --git
a/src/runtime/sunos-os.c
b/src/runtime/sunos-os.c
index
1f2581b
..
48623d3
100644
(file)
--- 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);
}