[Larceny-users] on porting to larceny

Peter Keller psilord at cs.wisc.edu
Tue Dec 30 16:20:50 EST 2008


On Tue, Dec 30, 2008 at 04:03:17PM -0500, William D Clinger wrote:
> The errno business is a	crock, but it's	C's crock so we	
> have to	respect	it.  In	C, everything preserves	a nonzero
> errno; that's true of Larceny as well.	In C, any call to
> any function that might end up calling a C function that
> can set	errno can set errno; that too is true of Larceny.
> 
> So I believe Larceny's current semantics for get-errno and
> set-errno! (as implemented above) is the right semantics.
> We should export it and document it.

I'm just going to mention this, since it bit me in a production system:

http://www.opengroup.org/onlinepubs/009695399/functions/errno.html

If you notice, it says:

"No function in this volume of IEEE Std 1003.1-2001 shall set errno
to 0."

Just to keep that in mind....

Later,
-pete



More information about the Larceny-users mailing list