openbsd-ports/devel/p5-File-Sync/pkg/DESCR
avsm d3c2109866 initial import of p5-File-Sync-0.009
provides a perl interface to the family of sync() syscalls
2004-01-15 14:15:21 +00:00

12 lines
470 B
Plaintext

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.