USDUMPLOCK(3P)							USDUMPLOCK(3P)
      usdumplock	- dump out information about a specific	lock
      #include <ulocks.h>
     #include <stdio.h>
     int usdumplock (ulock_t lock, FILE	*fd, const char	*str);
     usdumplock	dumps information about	lock in	a readable form.  This
     information is written to the file	descriptor given by fd.	 The
     information printed includes where	in memory the lock resides, whether it
     is	locked or free,	and the	metering and debugging information (see
     usctllock(3P)).  The argument str is simply printed as a string, and can
     be	used to	aid in identifying where usdumplock was	called from.
     usinit(3P), usctllock(3P).
     Upon successful completion, a value of 0 is returned. Otherwise, a	value
     of	-1 is returned and errno is set	to indicate the	error.
									PPPPaaaaggggeeee 1111 [ Back ]
 |