Heavy Kaffe I/O at startup

Glynn Clements glynn at sensei.co.uk
Fri Oct 16 12:53:59 PDT 1998


Archie Cobbs wrote:

> > > > In other words, how does stdio differ from "a simple stdio-like
> > > > buffer scheme" in the sense of thread safety?
> > > 
> > > fread calls read(2) directly.
> > > 
> > > The "read" you see in jar.c is actually a #define Kaffe_syscall.read(), 
> > > which calls jthreadedRead(), blocking the thread (and not the whole process)
> > > if the I/O can't succeed.
> 
> Too bad more systems don't have fropen(3) like FreeBSD does...
> that would be the perfect solution. Might even be worth an #ifdef.
> 
> I wonder what other systems support it? Anything BSD 4.4 based I guess..

What does fropen() do, exactly?

GNU libc has fopencookie(), which basically allows you to specify
functions to use in place of read, write, lseek and close.

-- 
Glynn Clements <glynn at sensei.co.uk>


More information about the kaffe mailing list