[Openmcl-devel] Turning file pointers into Lisp streams

Barry Perryman gekki_uk at hotmail.com
Wed Jun 4 08:10:24 UTC 2003

You could try the routine

int fileno(FILE *);

This should return the file descriptor for a FILE stream.


>From: Erann Gat <gat at flownet.com>
>To: openmcl-devel at clozure.com
>Subject: [Openmcl-devel] Turning file pointers into Lisp streams
>Date: Tue, 3 Jun 2003 21:20:59 -0700 (PDT)
>Is there an easy way to turn a FILE* into a Lisp stream?  I found the
>fd-stream class that seems to be an easy way to turn a file descriptor
>into a stream, but is there a corrsponding thing for FILE*'s?  (For that
>matter, is there a general way to take a FILE* and convert it to an FD?  I
>know you can go the other way with fdopen().)
>Openmcl-devel mailing list
>Openmcl-devel at clozure.com

Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile

Openmcl-devel mailing list
Openmcl-devel at clozure.com

More information about the Openmcl-devel mailing list