RTEMS Logo

RTEMS 4.9.1 On-Line Library


Input and Output Primitives Manager fsync - Synchronize file complete in-core state with that on disk

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

5.4.9: fsync - Synchronize file complete in-core state with that on disk

CALLING SEQUENCE:

int fsync(
  int fd
);

STATUS CODES:

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

EBADF
fd is not a valid descriptor open for writing
EINVAL
fd is bound to a special file which does not support support synchronization
EROFS
fd is bound to a special file which does not support support synchronization
EIO
An error occurred during synchronization

DESCRIPTION:

fsync copies all in-core parts of a file to disk.

NOTES:

NONE


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation