[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foreign functions, subprocesses in akcl.



   foreign functions:

See documentation on defentry and faslink.
The file lsp/littleXlsp.lsp provides a good example.

    forking a sub process with associated streams:

There is a file c/run-process.c which is used in some versions eg sun.
You may need to repair something in this, but it gives the basic idea.
If you do fix a bug please send it in.

RUN-PROCESS
Function in the SI package:
Args: (string)

Execute the command STRING in a subshell and return a two way stream 
associated to this.    Use si::fp-output-stream to get an associated
output stream or si::fp-input-stream.
Bugs:   It does not properly deallocate everything, 
so that it will fail if you call it too many times.