Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dg_lock_reset(2) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fcntl(2)

dg_lcntl(2)

dg_lock_wait(2)

lockf(3)

fcntl(5)



     dglockreset(2)           DG/UX 4.30            dglockreset(2)



     NAME
          dg_lock_reset - Reset the remote file lock database and
          start the lock reclaim  grace period.

     SYNOPSIS
          int     dg_lock_reset  (grace)
          time_t          grace;

     PARAMETERS
          grace          The number of seconds in the grace period.

     DESCRIPTION
          Remove all (remote) locks set by the network lock server.
          Pend all lock requests, and deny all remote lock requests,
          for <grace> seconds in order to allow remote clients to
          reclaim their locks.

          The only process that uses this function is the network lock
          server, rpc.lockd.

     ACCESS CONTROL
          The caller must be super-user.

     RETURN VALUE
          0              The dg_lock_reset operation was successful.


          -1             An error occurred.  Errno indicates the
                         error.

     EXCEPTIONS
          Errno may be set to one of the following error codes:


          EPERM          Must be super-user to use this system call.


          EINVAL         The grace period is invalid.

     SEE ALSO
          The related manual sections:  fcntl(2), dg_lcntl(2),
          dg_lock_wait(2),
          lockf(3),
          fcntl(5)











     Licensed material--property of copyright holder(s)         Page 1



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