On Tue, Apr 02, 2002 at 03:26:36AM -0500, Mark-Jason Dominus wrote:
>
> > You probably already found out, but
> >
> > HP-UX 10.20 Has it defined as 0000003
> > HP-UX 11.00 Has it defined as 0000003
> > AIX 4.3.3.0 Has it defined as 3
> > AIX 4.2.1.0 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 () { O_RDONLY | O_WRONLY | O_RDWR }
>
> which I think should work everywhere that defines O_((RD|WR)ONLY|RDWR),
> whatever their values.
Maybe Fcntl should be patched to provide that if O_ACCMODE is not defined
Graham.