Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 8
Synchronize file data
#include <unistd.h>
int fdatasync( int filedes );
- filedes
- The descriptor of the file that you want to synchronize.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The fdatasync() function forces all queued I/O operations for the
file specified by the filedes file descriptor to finish,
synchronizing the file's data.
The function blocks until this is finished.
For more information about synchronizing, see
“Filesystems and block I/O (devb-*) drivers”
in the Fine-Tuning Your System chapter of the
QNX Neutrino User's Guide.
This function is similar to
fsync(),
except that fsync() also guarantees the integrity of
file information, such as access and modification times.
- 0
- Success.
- -1
- An error occurred (errno is set).
- EBADF
- The specified filedes isn't a valid file descriptor open for writing.
- EINVAL
- The implementation doesn't support synchronized I/O for the given file.
- ENOSYS
- The fdatasync() function isn't supported for the filesystem specified
by filedes.
POSIX 1003.1 SIO
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
aio_fsync(),
close(),
fcntl(),
fsync(),
open(),
read(),
sync(),
write()
“Filesystems and block I/O (devb-*) drivers”
in the Fine-Tuning Your System chapter of the
QNX Neutrino User's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 162
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/f/fdatasync.html on line 162