fdatasync man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

fdatasync(3RT)		  Realtime Library Functions		fdatasync(3RT)

NAME
       fdatasync - synchronize a file's data

SYNOPSIS
       cc [ flag... ] file... -lrt [ library... ]
       #include <unistd.h>

       int fdatasync(int fildes);

DESCRIPTION
       The  fdatasync()	 function  forces  all currently queued I/O operations
       associated with the file indicated by file  descriptor  fildes  to  the
       synchronized I/O completion state.

       The  functionality  is  as  described  for  fsync(3C)  (with the symbol
       _XOPEN_REALTIME defined), with the exception that  all  I/O  operations
       are  completed  as  defined for synchronised I/O data integrity comple‐
       tion.

RETURN VALUES
       If successful, the fdatasync() function returns 0. Otherwise, the func‐
       tion  returns  −1  and  sets errno to indicate the error. If the fdata‐
       sync() function fails, outstanding I/O operations are not guaranteed to
       have been completed.

ERRORS
       The  fdatasync() function will fail if:

       EBADF	       The fildes argument is not a valid file descriptor open
		       for writing.

       EINVAL	       The system does not support synchronized I/O  for  this
		       file.

       ENOSYS	       The  function  fdatasync() is not supported by the sys‐
		       tem.

       In the event that any of the queued I/O	operations  fail,  fdatasync()
       returns the error conditions defined for read(2) and write(2).

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Standard			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │Async-Signal-Safe		   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       fcntl(2),   open(2),   read(2),	write(2),  fsync(3C),  aio_fsync(3RT),
       fcntl.h(3HEAD), attributes(5), standards(5)

SunOS 5.10			  28 Jun 2002			fdatasync(3RT)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net