On Mar 23, 2004, at 11:15, Vincent Lubet wrote: On Mar 22, 2004, at 9:08 AM, Justin Walker wrote: On Mar 22, 2004, at 7:59, Matt Jaffa wrote: I was wondering what error code I should throw. [snip] - Classic, and OT in particular, was not built with Unix-style errno codes in mind. The deeper recesses of OT do use the same error code names, though, but they use a different version of the header <sys/errno.h>. In particular, it's possible that EACCES (on Mac OS X) and EAGAIN (on Classic/OT/Mentat) (for example) share the same numeric code. That would be a bummer, of course. An OT expert will have to share his understanding of this one. In fact OT was built with Unix-style errno codes because it is a STREAMS stack after all. The errno codes known by OT can be found in <OpenTransport.h> I thought that OT was built with good ole Mac-style error codes (-XYZW), but that the STREAMS innards continued to use the unix-style error codes. In any case, comparing <sys/errno.h> from Mac OS X with <OpenTransport.h> may indicate how close the match is. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | It's not whether you win or lose... | It's whether *I* win or lose. *--------------------------------------*-------------------------------* _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.