[Openmcl-devel] ioctl

Didier Verna didier at lrde.epita.fr
Wed Nov 10 12:37:49 PST 2010


  Hello,

I'm trying to perform an ioctl call from CCL, but I'm stuck on something
I don't understand. I got as far as this:

  (rlet ((winsize :winsize))
    (#_ioctl stream           ;; or should I use ccl::stream-device ?
             #$TIOCGWINSZ
	     winsize)
    (pref winsize :winsize.ws_col))


But this barfs with the following error:

> Error: Remaining arguments should be keyword/value pairs: (WINSIZE)
> While executing: CCL::%EXTERNAL-CALL-EXPANDER, in process listener(1).

So it seems that #_ioctl expects something else than just winsize. I
thought maybe :* winsize was needed, but this is not the case either.

What am I doing wrong ?

Thank you !

-- 
Resistance is futile. You will be jazzimilated.

Scientific site:   http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com



More information about the Openmcl-devel mailing list