* AdvFS DirectIO from Perl
@ 2001-10-08 17:15 Nemholt, Jesper Frank
0 siblings, 0 replies; only message in thread
From: Nemholt, Jesper Frank @ 2001-10-08 17:15 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-10-08 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-08 17:15 AdvFS DirectIO from Perl Nemholt, Jesper Frank
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox