File::Sync

File::Sync is a Perl access to fsync() and sync() function calls.
Download

File::Sync Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Carey Evans
  • Publisher web site:
  • http://search.cpan.org/~cevans/File-Sync-0.09/Sync.pm

File::Sync Tags


File::Sync Description

File::Sync is a Perl access to fsync() and sync() function calls. File::Sync is a Perl access to fsync() and sync() function calls.SYNOPSIS use File::Sync qw(fsync sync); fsync(*FILEHANDLE) or die "fsync: $!"; sync(); use File::Sync qw(fsync); use IO::File; $fh = IO::File->new("> /tmp/foo") or die "new IO::File: $!"; ... fsync($fh) or die "fsync: $!";The fsync() function takes a Perl file handle as its only argument, and passes its fileno() to the C function fsync(). It returns undef on failure, or true on success.The fsync_fd() function is used internally by fsync(); it takes a file descriptor as its only argument.The sync() function is identical to the C function sync().This module does not export any methods by default, but fsync() is made available as a method of the FileHandle and IO::Handle classes. Requirements: · Perl


File::Sync Related Software