Mail Archives: djgpp-workers/1998/03/09/05:08:38
Hi,
The current errno constants in errno match to some extent the values
defined on a variety of unixy systems.
So far no problem.
Since DJGPP programs are supposed to run on dosy platforms, and hence
tend to interact with device drivers which return numeric error codes
and not "#define"-ed values, it makes more sence to have our errno
values match DOS ones.
The real problem start when DOS functions are called in the libc
routines. DOS extended error codes are in many cases precise enough to
decide what EXACTLY went wrong, but the way it is current implemented (D
->U translated error codes) often make loose a lot of this information.
Many libc routines would look a lot more simple (and faster) when these
DOS error codes were propagated through the return value and to errno
instead.
Any comments?
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -