*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> usinitlock (3p)              



NAME    [Toc]    [Back]

     usinitlock	- initializes a	lock

C SYNOPSIS    [Toc]    [Back]

     #include <ulocks.h>

     int usinitlock (ulock_t lock);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

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

DIAGNOSTICS    [Toc]    [Back]

     0 is always returned.

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
lock_init Tru64 General: Initializes a complex lock
simple_lock_init Tru64 General: Initializes a simple lock structure
pthread_rwlock_init Tru64 Initializes a read-write lock object
tis_rwlock_init Tru64 Initializes a read-write lock object
pthread_rwlock_rdlock IRIX lock a read-write lock object for reading
pthread_rwlock_wrlock IRIX lock a read-write lock object for writing
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
tset Tru64 Initializes terminals
reset Tru64 Initializes terminals
initnames IRIX initializes the name stack
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service