sync

OS/161 Reference Manual

Name

sync - flush filesystem data to disk

Library

Standard C Library (libc, -lc)

Synopsis

#include <unistd.h>

void
sync(void);

Description

The sync function forces a write of all dirty filesystem buffers and dirty filesystem state to disk.

Return Values

No value is returned, and sync does not fail.

Errors

None.