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

[MiNT] UNIXMODE problem



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 ??

Alan.