Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

fsync(2)

aio_fsync(3P4)

fdatasync(2)

NAME

fdatasync − synchronize a file’s in-core state with that on disk

SYNOPSIS

fdatasync(fd)
int fd;

DESCRIPTION

The fdatasync function causes all modified data in the file referenced by file descriptor fd to be moved to a permanent storage device.  All I/O operations are completed as defined for synchronized I/O data integrity completion (see open(2)). 

RETURN VALUE

Upon successful completion, the fdatasync function will return zero.  Otherwise, it will return −1 and will set errno to indicate the error.  Possible errors include:

[EBADF] Fd is not a valid descriptor. 

[EINVAL] The implementation does not support synchronized I/O for this file type. 

SEE ALSO

open(2), fsync(2), aio_fsync(3P4)

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026