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: PC03:/usr/include 502 $ grep -r O_ACCMODE . ./mingw/fcntl.h:#define _O_ACCMODE (_O_RDONLY|_O_WRONLY|_O_RDWR) ./mingw/fcntl.h:#define O_ACCMODE _O_ACCMODE ./sys/fcntl.h:#define O_ACCMODE (O_RDONLY|O_WRONLY|O_RDWR) PC03:/usr/include 503 $ Cannot check HP-UX and AIX, systems down for Easter -- H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/) using perl-5.6.1, 5.7.3 & 631 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3, WinNT 4, Win2K pro & WinCE 2.11. Smoking perl CORE: [EMAIL PROTECTED] http:[EMAIL PROTECTED]/ [EMAIL PROTECTED] send smoke reports to: [EMAIL PROTECTED], QA: http://qa.perl.org