[Openmcl-devel] Changing file permissions

Adam Jensen hanzer at riseup.net
Wed May 27 18:32:48 PDT 2015


I was just reading about this sort of thing in The Foreign-Function Interface documentation. The [single HTML file][1] docs seem to have useful information that isn't in the [manual][2].

For example, with this little blurb from the docs (below), I might guess there is a #_chmod function.

-------------------------------------------------------------------------------------------
Most functions that are in the system C library are included in the interface database that comes with Clozure CL. The reader macro #_ consults that database for information about the foriegn code, and makes foreign functions easy to use.

Example: 

? (#_getpid)
2845
? (#_log2 2048d0)
11.0D0
? (with-encoded-cstrs :ascii ((s "Yow!"))
    (#_write 1 s 4))
-------------------------------------------------------------------------------------------

[1]: http://ccl.clozure.com/docs/ccl.html#the-foreign-function-interface
[2]: http://ccl.clozure.com/manual/chapter13.html#The-Foreign-Function-Interface



More information about the Openmcl-devel mailing list