[cffi-devel] Using the exec() family of functions
Leslie P. Polzer
sky at viridian-project.de
Mon Mar 30 13:00:39 UTC 2009
> On Sun, Mar 29, 2009 at 11:11 AM, Leslie P. Polzer
> That should be something like:
>
> (with-foreign-object (args :string 2)
> (setf (mem-aref args :string 0) "/bin/chmod")
> (setf (mem-aref args :pointer 1) (null-pointer))
> (execv "/bin/chmod" args))
I didn't know that the caller is supposed to setup argv[0] as well.
Thanks!
More information about the cffi-devel
mailing list