From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653641821683.tru64-unix-managers.marc@archive.invalid> From: "Nemholt, Jesper Frank" Date: Mon, 08 Oct 2001 17:15:52 +0000 To: tru64-unix-managers Subject: AdvFS DirectIO from Perl X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653641821683 Hi! I was just putting together a small Perl script to test performance of read/write, DirectIO, sync/async, block size, file size etc. etc. on CFS in Tru64 v5.x, and I ran into the following error with the Perl present by default (Perl 5.5.3) on Tru64 v5.1 : Argument "O_DIRECTIO" isn't numeric in bit_or at ./benchmark.pl line 41. Line 40 and 41 are : open(HANDLE, "> $filename") or die "open $filename: $!"; sysopen(HANDLE, $filename, O_RDWR|O_DIRECTIO) or die "sysopen $filename: $!"; My use statements are : use Fcntl; use IO::Handle; Looks like Perl's sysopen() or the libraries/modules behind don't know of the O_DIRECTIO flag. Is it possible to do in some other way with the default Perl, or should I upgrade (and will a upgrade to 5.6.1 help) ? /Jesper