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

Re: [MiNT] STAT bits - Ouch!



On Fri, 2010-12-10 at 11:32 +0100, Vincent Rivière wrote:
> Alan Hourihane wrote:
> > To fix this, I'm thinking of adding an additional command to Ssystem()
> > to tell the kernel to interpret these bits differently. Therefore any
> > new MiNTlib compiled applications would require a new kernel, and if it
> > doesn't get it, the application would fail instantly with an appropriate
> > error message. But existing applications would still work with new or
> > old kernels.
> >
> > What do people think about this ?
> 
> This is the only solution.
> 
> Maybe it could be more general, something like an "API version".
> At startup, the MiNTLib should call Ssystem() to request the necessary 
> API version. If it is not supported by the kernel, the program fails.
> 
> So the kernel could provide some level of compatibility by supporting 
> some old API versions, when possible.
> 
> Having a unique API version for the whole kernel would probably be 
> enough ? I mean a global API version, not a specific version for each 
> function call...

Yes, that would make sense.

Alan.