USINITLOCK(3P)USINITLOCK(3P)NAMEusinitlock - initializes a lock
C SYNOPSIS
#include <ulocks.h>
int usinitlock (ulock_t lock);
DESCRIPTIONusinitlock 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.
NOTEusinitlock 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 ALSOusnewlock(3P), usctllock(3P).
DIAGNOSTICS
0 is always returned.
Page 1