In my previous post I contemplated writing my own interface to more system functions, but then I discovered this had already been done:
After installation of the library:
christopher@evenstar:~$ ls /usr/local/lib/ts/ tsx.so christopher@evenstar:~$ tinyscheme TinyScheme 1.41 ts> (load-extension "/usr/local/lib/ts/tsx") #t ts> (system "grep 'model\ name' /proc/cpuinfo | head -n 1") model name : Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz 0
One annoying detail here is that TinyScheme 1.41 does not use
ld.so.conf paths to find the library (even though the documentation says it does). This means you must specify the full path to the extension library. Perhaps I could get this added into my own release of TinyScheme.