Mail Archives: djgpp/1996/12/22/22:03:04
Eli Zaretskii wrote:
>
> To avoid such a costly
> test, DJGPP just strips away the "/dev/" part and lets DOS decide if the
> rest is a known file. This makes "ls -l /dev/tty" and "ls -l /dev/clock$"
> work. Unfortunately, it also has a nasty side-effect if you really have a
> directory called "/dev". End of story.
Would it be possible to put a switch in the DJGPP startup code that
turns off this implicit device handling? That way a program ported from
Unix would work properly, but a program written for DOS alone could turn
off the handling and be able to use "/dev" like it expects to.
Unfortunately, to use this feature with ported programs, you would still
have to convert all the /dev/* references to the DOS ones, which
eliminates the benefit of the library conversion in the first place.
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| * Proud user of DJGPP! * | http://www.cs.com/fighteer |
| ObJoke: If Bill Gates were a robber, not only would he |
| shoot you, but he'd send you a bill for the bullets. |
---------------------------------------------------------------------
- Raw text -