"JüRgen BöMmels" wrote: [snip] > void > PIO_unix_flush(theINTERP, ParrotIOLayer *layer, ParrotIO *io) > { > -# if 0 > fsync(io->fd); > -# endif > }
AFAIK, for disk files, fsync has (should have) no visible effect from the point of view of any user program -- all it does is tell the OS to start writing the OS-level cache for that handle to disk, and it blocks until all is copied. So... it is a slow system call, with no visible effect -- why do we do it? It's possible that fsync()ing will sometimes be desired, but, IMHO, I don't think that it should be done by flush -- I'd rather it be done by an explicit call to sychronized the handle with the disk. -- $a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "[EMAIL PROTECTED] ]\n";((6<=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))&&redo;}