delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/03/09/05:08:38

Sender: vheyndri AT rug DOT ac DOT be
Message-Id: <3503BEB1.6745@rug.ac.be>
Date: Mon, 09 Mar 1998 11:04:33 +0100
From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: errno constants in <errno.h>

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019