[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Dopendir() return values



On Sat, 2012-01-14 at 13:57 +0100, Peter Persson wrote:
> 14 jan 2012 kl. 07:12 skrev Paul Wratt:
> 
> > the ENOENT (-33) is the *nix way to answer - making it a non-issue for
> > porting code or "posix compliance" (adding to it at least)
> > 
> > but EPTHNF (-34) is the "atari way" of doing it (which for historical
> > reason is standard) in Magic
> > 
> > how do current libraries handle this situation, ones that work with
> > both Magic & 1.15
> > 
> > there must be a way to handle the situation where the binary can be
> > running on either Magic or MiNT
> 
> Honestly - un*x compatibilty for return values etc is a job primarily for mintlib. System calls should return codes which somewhat matches Atari behavior, nothing else. I seriously hope we're not mixing apples & oranges here.

I agree with you - unix-compatibility should be supplied by the MiNTlib,
not by altering the behaviour of GEMDOS functions. But Dopendir is not a
legacy GEMDOS call, it's a MiNT-extension that mimics the behaviour of
the unix opendir syscall. So I'd say that MagiC's implementation is
wrong in this case.

Jo Even