pthread_mutexattr_getkind_np man page on PC-BSD

Man page or keyword search:  
man Server   9747 pages
apropos Keyword Search (all sections)
Output format
PC-BSD logo
[printable version]

PTHREAD_MUTEXATTR_GET... BSD Library Functions Manual PTHREAD_MUTEXATTR_GET...

NAME
     pthread_mutexattr_getkind_np, pthread_mutexattr_setkind_np — mutex
     attribute operations (legacy)

LIBRARY
     POSIX Threads Library (libpthread, -lpthread)

SYNOPSIS
     #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
     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
     The pthread_mutexattr_getkind_np() function returns a positive value rep‐
     resenting 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 suc‐
     cessful; otherwise the value -1 is returned and the global variable errno
     is set to indicate the error.

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

     [EINVAL]		The value specified by attr is invalid.

SEE ALSO
     pthread_mutexattr_gettype(3), pthread_mutexattr_settype(3),
     pthread_mutex_destroy(3), pthread_mutex_init(3)

BSD			       February 13, 2003			   BSD
[top]

List of man pages available for PC-BSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net