USINITLOCK(3P)							USINITLOCK(3P)
      usinitlock	- initializes a	lock
      #include <ulocks.h>
     int usinitlock (ulock_t lock);
     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.
     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.
     usnewlock(3P), usctllock(3P).
     0 is always returned.
									PPPPaaaaggggeeee 1111  [ Back ]
 |