This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj: accessing environment variables


Per Bothner <per@bothner.com> writes:

> Anthony Green wrote:
> > Willful non-conformance is probably a bad idea.
> 
> Yes, there may be legal issues we don't want to get into.

We don't claim to be JavaTM do we?


> > Perhaps we should
> > introduce a new scheme in the gnu.* package.
> 
> Perhaps a Java API similar to the scsh (Scheme Shell),
> which provides a nice wrapper around Posix APIs.
> 
> E.g.
> package gnu.posix;
> public class Process
> {
>    static int fork ();
>    static void exec(String[] args);
>    ...;
> }
> 
> public class File
> {
>    static int open(String name, int mode);
>    ...
> }

That's a pretty good idea. We could implement some of the java libs
in terms of this posix layer.


Nic


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]