Richard M Kreuter <kreuter@...> wrote:
> Didier Verna writes:
>
>> I just can't sem to figure out how to convert my CL stream to proper
>> ioctl food... Will this be a general (with-open-file) problem, or is
>> it just a problem with *standard-output* ?
>
> Somewhere in between: it's liable to be a problem for *standard-output*,
> and will never be a problem for streams inside with-open-file.
Indeed. With a with-open-file stream, I get an ENOTTY error, which is
normal ;-), but at least, the ioctl handles the stream correctly.
> So I suggest wrapping sb-posix:ioctl in something that does what you
> like to get an fd given an arbitrary Lisp stream. It might not be the
> right thing, but at least it'll seem right to its author. :)
OK, since the problem is more or less contained to *standard-output*,
I figured that I can default my stream to sb-sys:*stdout* instead. Don't
really know what I'm doing, but it works.
--
Resistance is futile. You will be jazzimilated.
Scientific site: http://www.lrde.epita.fr/~didier
Music (Jazz) site: http://www.didierverna.com
EPITA/LRDE, 14-16 rue Voltaire, 94276 Le Kremlin-Bicêtre, France
Tel. +33 (0)1 44 08 01 85 Fax. +33 (0)1 53 14 59 22
|