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 Mime-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: errno constants in Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk 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 / \ /-_-_-_-_-_-_/