Fix [perl #19860] by adding a POSIX::fsync() stub.
Rafael Garcia-Suarez [Wed, 22 Jan 2003 21:00:59 +0000 (21:00 +0000)]
p4raw-id: //depot/perl@18569

ext/POSIX/POSIX.pm
ext/POSIX/POSIX.pod

index 5a1cbb9..74a014f 100644 (file)
@@ -282,6 +282,10 @@ sub fseek {
     redef "IO::Seekable::seek()";
 }
 
+sub fsync {
+    redef "IO::Handle::sync()";
+}
+
 sub ferror {
     redef "IO::Handle::error()";
 }
@@ -878,7 +882,7 @@ sub load_imports {
                _SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION
                _exit access ctermid cuserid
                dup2 dup execl execle execlp execv execve execvp
-               fpathconf getcwd getegid geteuid getgid getgroups
+               fpathconf fsync getcwd getegid geteuid getgid getgroups
                getpid getuid isatty lseek pathconf pause setgid setpgid
                setsid setuid sysconf tcgetpgrp tcsetpgrp ttyname)],
 
index 4d1ded6..dd2071b 100644 (file)
@@ -465,6 +465,10 @@ Perl's builtin C<stat> function.
        $fd = POSIX::open( "foo", &POSIX::O_RDONLY );
        @stats = POSIX::fstat( $fd );
 
+=item fsync
+
+Use method C<IO::Handle::sync()> instead.
+
 =item ftell
 
 Use method C<IO::Seekable::tell()> instead, or see L<perlfunc/tell>.