[MLton-devel] errno problem

Stephen Weeks MLton@mlton.org
Fri, 7 Feb 2003 14:25:34 -0800


> I looked a bit more and found
> http://lists.debian.org/debian-glibc/2002/debian-glibc-200212/msg00364.html
> which makes it seem that not only is errno a macro (at least
> officially allowed by C99, even though stupid) but also that some
> errno object exists in the library.

We do use "#include <errno.h>" and not "extern int errno;", so should
be OK there.  However, in two places
(Posix.FileSys.{readdir,rewinddir}), the basis library tries to assign
errno to zero, which looks like a bad idea.  Can you take a look at
those two and see if it makes sense to you to eliminate the
Error.clearErrno () calls?


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel