unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-5.10)
Page:
Section:
Apropos / Subsearch:
optional field

sync(2)                          System Calls                          sync(2)



NAME
       sync - update super block

SYNOPSIS
       #include <unistd.h>

       void sync(void);

DESCRIPTION
       The  sync() function writes all information in memory that should be on
       disk, including modified super blocks,  modified  inodes,  and  delayed
       block I/O.

       Unlike fsync(3C), which completes the writing before it returns, sync()
       schedules but does not necessarily complete the writing before  return-
       ing.

USAGE
       The  sync() function should be used by applications that examine a file
       system, such as fsck(1M), and df(1M), and is mandatory  before  reboot-
       ing.

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


       tab()     allbox;     cw(2.750000i)|    cw(2.750000i)    lw(2.750000i)|
       lw(2.750000i).  ATTRIBUTE TYPEATTRIBUTE VALUE Interface  StabilityStan-
       dard


SEE ALSO
       df(1M), fsck(1M), fsync(3C), attributes(5), standards(5)



SunOS 5.10                        5 Jul 1990                           sync(2)