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

Re: [MiNT] Dopendir() return values



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.

-- PeP