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

  man pages->FreeBSD man pages -> pthread_mutexattr_getkind_np (3)              
Title
Content
Arch
Section
 

Contents


PTHREAD_MUTEXATTR_G... FreeBSD Library Functions Manual PTHREAD_MUTEXATTR_G...

NAME    [Toc]    [Back]

     pthread_mutexattr_getkind_np, pthread_mutexattr_setkind_np -- mutex
     attribute operations (legacy)

LIBRARY    [Toc]    [Back]

     Reentrant C Library (libc_r, -lc_r)

SYNOPSIS    [Toc]    [Back]

     #include <pthread_np.h>

     int
     pthread_mutexattr_getkind_np(pthread_mutexattr_t attr);

     int
     pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind);

DESCRIPTION    [Toc]    [Back]

     These functions are deprecated and non-portable implementation of the
     mutex type manipulation.

     It is recommended to use the pthread_mutexattr_gettype(3) and
     pthread_mutexattr_settype(3) functions instead.

RETURN VALUES    [Toc]    [Back]

     The pthread_mutexattr_getkind_np() function returns a positive value representing
 the ``kind'' of the mutex attribute attr if successful; otherwise
 the value -1 is returned and the global variable errno is set to
     indicate the error.

     The pthread_mutexattr_setkind_np() function returns the value 0 if successful;
 otherwise the value -1 is returned and the global variable errno
     is set to indicate the error.

ERRORS    [Toc]    [Back]

     The pthread_mutexattr_getkind_np() and pthread_mutexattr_setkind_np()
     functions will fail if:

     [EINVAL]		The value specified by attr is invalid.

SEE ALSO    [Toc]    [Back]

      
      
     pthread_mutexattr_gettype(3), pthread_mutexattr_settype(3),
     pthread_mutex_create(3), pthread_mutex_destroy(3)


FreeBSD 5.2.1		       February 13, 2003		 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pthread_mutexattr_destroy OpenBSD mutex attribute operations
pthread_mutexattr_getprotocol OpenBSD mutex attribute operations
pthread_mutexattr_setprotocol FreeBSD mutex attribute operations
pthread_mutexattr_setprioceiling FreeBSD mutex attribute operations
pthread_mutexattr_settype FreeBSD mutex attribute operations
pthread_mutexattr_gettype FreeBSD mutex attribute operations
pthread_mutexattr_getprotocol FreeBSD mutex attribute operations
pthread_mutexattr_getprioceiling FreeBSD mutex attribute operations
pthread_mutexattr_destroy FreeBSD mutex attribute operations
pthread_mutexattr_init FreeBSD mutex attribute operations
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service