Handbook
Glossary
find-so ( namespec -- so-name/f )
Vocabulary
ldcache
Inputs
namespec
library name
Outputs
so-name/f
a
string
or
f
Word description
Looks up the library named 'namespec' from the system cache.
Definition
USING:
accessors
io.files
kernel
ldcache.private
system
;
IN:
ldcache
:
find-so
( namespec -- so-name/f )
"/etc/ld.so.cache"
[
parse-ldcache-file
swap
cpu
search-ldcache
[
key>>
]
[
f
]
if*
]
[
2drop
f
]
if-file-exists
;