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

Re: [MiNT] UNIXMODE problem

On Fri, 2008-05-30 at 09:16 +0100, Alan Hourihane wrote:
> Hi all,
> I've bumped into a problem with having UNIXMODE as an environment
> variable. These can get wiped at any time causing different behaviour of
> the application - obviously.
> The command 'env -i' basically cleans the environment before forking the
> application causing the application to do things differently.
> The only way I can think of fixing this type of problem is to have a new
> file called /kern/unixmode which has the kernel default for UNIXMODE
> such as "/brUs" and when UNIXMODE doesn't exist in the environment, the
> libc goes and fetches the global value from /kern/unixmode and uses
> that. The /kern/unixmode can be changed by echoing a new value to that
> file (and the kernel needs kern_write support for kernfs - which I can
> do - to do this).
> What this means for people who unset UNIXMODE to nothing for TOS
> applications is that they would have to set UNIXMODE to "-" which is
> documented as having the NULL behaviour as if it was unset.
> Or have people here any alternative ideas ??

Did anyone have any comments on this ?

I wonder how many people play around with the UNIXMODE variable with
older TOS applications ?