Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sync(1M)

fsync(2)

appropriate_privilege(5)

cap_defaults(5)



sync(2)                        DG/UX R4.11MU05                       sync(2)


NAME
       sync - synchronize disk and memory resident file system information

SYNOPSIS
       #include <unistd.h>

       void  sync ()

DESCRIPTION
       The sync system call causes file system information in memory to be
       written to disk.

       This call works only for a user with appropriate privilege.  If a
       user without appropriate privilege makes the call, it fails silently.
       (The kernel automatically writes file system information to disk at
       MAXBUFAGE intervals.)  For systems supporting the DG/UX Capability
       Option, appropriate privilege is defined as having one or more
       specific capabilities enabled in the effective capability set of the
       calling process.  See cap_defaults(5) for the default capability for
       this system call.

       On systems without the DG/UX Capability Option, appropriate privilege
       means that the process has an effective UID of root.  See the
       appropriate_privilege(5) man page for more information.

       Activity may continue on the file system device while the sync is
       being performed, but there is no guarantee that changes to files or
       file system data occurring after sync starts will get written to
       disk.  Upon return from sync, there is no guarantee that all writes
       to the disk have completed.

ACCESS CONTROL
       None.

RETURN VALUE
       None.

DIAGNOSTICS
       None.

SEE ALSO
       sync(1M), fsync(2), appropriate_privilege(5).
       cap_defaults(5).


Licensed material--property of copyright holder(s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026