Re: O_ACCMODE

2002-04-02 Thread Graham Barr
Has it defined as 3 > > Thanks for the information. It turns out some Win32 systems don't > have it at all, so I have to avoid it. > > Instead, I'm doing: > > use Fcntl 'O_RDONLY', 'O_RDWR', 'O_WRONLY'; > sub O_ACCMODE ()

Re: O_ACCMODE

2002-04-02 Thread Mark-Jason Dominus
it at all, so I have to avoid it. Instead, I'm doing: use Fcntl 'O_RDONLY', 'O_RDWR', 'O_WRONLY'; sub O_ACCMODE () { O_RDONLY | O_WRONLY | O_RDWR } which I think should work everywhere that defines O_((RD|WR)ONLY|RDWR), whatever their values.

Re: O_ACCMODE

2002-04-02 Thread H.Merijn Brand
On Mon 01 Apr 2002 10:37, "H.Merijn Brand" <[EMAIL PROTECTED]> wrote: > On Mon 01 Apr 2002 04:57, Mark-Jason Dominus <[EMAIL PROTECTED]> wrote: > > > > Supposing that Fcntl and O_RDONLY are known to be available, how > > likely is it that O_ACC

Re: O_ACCMODE

2002-04-01 Thread Mattia Barbon
> Supposing that Fcntl and O_RDONLY are known to be available, how > likely is it that O_ACCMODE will also be available? Are there any > platforms that have O_RDONLY but not O_ACCMODE? Win32: MinGW ( gcc ) has it Bcc 5.5 has it MS VC++ 5 has not Regards mattia

Re: O_ACCMODE

2002-03-31 Thread H.Merijn Brand
On Mon 01 Apr 2002 04:57, Mark-Jason Dominus <[EMAIL PROTECTED]> wrote: > > Supposing that Fcntl and O_RDONLY are known to be available, how > likely is it that O_ACCMODE will also be available? Are there any > platforms that have O_RDONLY but not O_ACCMODE? Cygwin has it:

O_ACCMODE

2002-03-31 Thread Mark-Jason Dominus
Supposing that Fcntl and O_RDONLY are known to be available, how likely is it that O_ACCMODE will also be available? Are there any platforms that have O_RDONLY but not O_ACCMODE?