USINITLOCK(3P)                                                  USINITLOCK(3P)


NAME
     usinitlock - initializes a lock

C SYNOPSIS
     #include <ulocks.h>

     int usinitlock (ulock_t lock);

DESCRIPTION
     usinitlock initializes the lock specified by lock.  All previous
     information associated with the lock (metering, debugging) is
     reinitialized.  usinitlock should only be used for previously allocated
     locks.  Locks are allocated using usnewlock(3P).

     usinitlock will cause unpredictable results if lock does not point to a
     valid lock.

NOTE
     usinitlock assumes that the fields of the ulock_t structure are in a
     valid state.  The use of malloc rather than usnewlock may result in a
     segmentation violation.

SEE ALSO
     usnewlock(3P), usctllock(3P).

DIAGNOSTICS
     0 is always returned.


                                                                        Page 1