[Openmcl-devel] Turning file pointers into Lisp streams

Barry Perryman gekki_uk at hotmail.com
Wed Jun 4 01:10:24 PDT 2003


You could try the routine

int fileno(FILE *);

This should return the file descriptor for a FILE stream.

Barry

>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().)
>
>Thanks,
>Erann
>
>
>_______________________________________________
>Openmcl-devel mailing list
>Openmcl-devel at clozure.com
>http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel

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


_______________________________________________
Openmcl-devel mailing list
Openmcl-devel at clozure.com
http://clozure.com/cgi-bin/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list