DDTSLOCK(1)

     NAME
          ddtslock - acquire or release a lock on a defect record

     SYNOPSIS
          ddtslock [ -u] [ -q] bugid

     DESCRIPTION
          Use ddtslock to get a lock on a defect record or release one
          that you currently hold.  Locks keep others from making
          edits to the record while you are modifying it.

          -u    releases the lock on bugid.  By default ddtslock
                acquires a lock on bugid.

          -q    performs quietly.  No diagnostic or error messages
                will appear.  The return value will still be set
                appropriately.

     DIAGNOSTICS
          If a lock for the specified bugid is currently held by
          another user, or some other failure to obtain the lock
          occurs, the return value is 1.  A successful lock will
          return 0.

          If the -u option is used, you must be the current owner of
          the lock or be the ddts user.  If not, the program will
          return 1.  If the lock removal is successful the program
          will return 0.

     FILES
          ~ddts/spool/locks   directory where the lock files are kept

     SEE ALSO
          ddtsd(1)