Re: open commnand in linux exu ATTENTION ALL LINUX USERS

new topic     » topic index » view thread      » older message » newer message

Bernie Ryan wrote:
> 
> Bernie Ryan wrote:
> > 
> > When I use: 
> > }}}
<eucode>
> >  fn = open("CON","a")
> > </eucode>
{{{

> > 
> > It creates a file called CON and does not get the file number
> > of the console like the document states.

The documentation should mention that those "magic" file names
like "CON", "AUX" etc. apply only to DOS/Windows, not Linux/FreeBSD. 
Those names are hard-coded into DOS/Windows. It's not something Euphoria
is doing. I'll add that to the docs. Thanks.

> ...
> I found that you can do the following in linux
> }}}
<eucode>
> -- to get a file descriptor of console
> -- Rob maybe should do this internally to make "CON" work.
> --
> fn = open("/dev/console","a"
> </eucode>
{{{


Thanks, but I'm not going to do any behind-the-scenes
hocus pocus on Linux/FreeBSD file names. All file names
used in open() are passed through unchanged to the underlying
operating system. I think that's how it should be.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu