[plt-scheme] file descriptor ports

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Mar 25 08:16:54 EST 2005

At Fri, 25 Mar 2005 12:42:35 +0000, John Kozak wrote:
> Just wrote a C extension "make_fd_input_port" which wraps a POSIX file
> descriptor as a scheme port.  While rummaging through the mzscheme
> sources to see how I was supposed to handle the blocking stuff, I
> noticed - as I should probably have guessed - that a more
> comprehensive implementation of exactly this function already exists,
> but it's not exposed to the scheme level.  I think it would be nice if
> it were.

I'll change make_fd_{input,output}_port to be included in the MzScheme
C API (which makes it available through the new FFI).


Posted on the users mailing list.