[Openmcl-devel] Changing file permissions
R. Matthew Emerson
rme at clozure.com
Wed May 27 14:45:21 PDT 2015
> On May 27, 2015, at 5:06 PM, Wimpie Nortje <wimpie at selectiveshare.com> wrote:
>
> I need to change the permissions of an existing directory. Previously I used osicat but having a non-standard shared lib makes application delivery difficult. So I discovered fd-chmod in l0-io.lisp.
>
> I assume fd-chmod is not exposed in ccl: for a reason. Is there a better way to change file permissions or should I just use this?
No, you don't want to use unexported symbols.
You can just use the FFI to call chmod(2) directly.
(with-filename-cstrs ((s "/tmp/some-dir"))
(#_chmod s #o700))
More information about the Openmcl-devel
mailing list