The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

sync - schedule filesystem updates

 SYNOPSIS



#include <unistd.h>

void sync(void);

 DESCRIPTION

The sync() function causes all information in memory that updates file systems to be scheduled for writing out to all file systems.

The writing, although scheduled, is not necessarily complete upon return from sync().

 RETURN VALUE

The sync() function returns no value.

 ERRORS

No errors are defined.

 EXAMPLES

None.

 APPLICATION USAGE

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

fsync(), <unistd.h>.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]