xref: /titanic_52/usr/src/man/man3lib/libpthread.3lib (revision 6a1af1a67532df169a657cce07140be64bdea084)
te
Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
libpthread 3LIB "24 Mar 2004" "SunOS 5.11" "Interface Libraries"
NAME
libpthread - POSIX threads library
SYNOPSIS

cc -mt [ flag... ] file... -lpthread [  -lrt  library... ]
DESCRIPTION

Historically, functions in this library provided POSIX threading support. See standards(5). This functionality now resides in libc(3LIB).

This library is maintained to provide backward compatibility for both runtime and compilation environments. The shared object is implemented as a filter on libc.so.1. New application development needs to specify -lpthread only to obtain POSIX semantics for fork(2) that assumes the behavior of fork1(2) rather than the default behavior that forks all threads.

INTERFACES

The shared object libpthread.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

__pthread_cleanup_pop__pthread_cleanup_push
pthread_attr_destroypthread_attr_getdetachstate
pthread_attr_getguardsizepthread_attr_getinheritsched
pthread_attr_getschedparampthread_attr_getschedpolicy
pthread_attr_getscopepthread_attr_getstackaddr
pthread_attr_getstacksizepthread_attr_init
pthread_attr_setdetachstatepthread_attr_setguardsize
pthread_attr_setinheritschedpthread_attr_setschedparam
pthread_attr_setschedpolicypthread_attr_setscope
pthread_attr_setstackaddrpthread_attr_setstacksize
pthread_cancelpthread_cond_broadcast
pthread_cond_destroypthread_cond_init
pthread_cond_reltimedwait_nppthread_cond_signal
pthread_cond_timedwaitpthread_cond_wait
pthread_condattr_destroypthread_condattr_getpshared
pthread_condattr_initpthread_condattr_setpshared
pthread_createpthread_detach
pthread_equalpthread_exit
pthread_getconcurrencypthread_getschedparam
pthread_getspecificpthread_join
pthread_key_createpthread_key_delete
pthread_killpthread_mutex_consistent_np
pthread_mutex_destroypthread_mutex_getprioceiling
pthread_mutex_initpthread_mutex_lock
pthread_mutex_setprioceilingpthread_mutex_trylock
pthread_mutex_unlockpthread_mutexattr_destroy
pthread_mutexattr_getprioceilingpthread_mutexattr_getprotocol
pthread_mutexattr_getpsharedpthread_mutexattr_getrobust_np
pthread_mutexattr_gettypepthread_mutexattr_init
pthread_mutexattr_setprioceilingpthread_mutexattr_setprotocol
pthread_mutexattr_setpsharedpthread_mutexattr_setrobust_np
pthread_mutexattr_settypepthread_once
pthread_rwlock_destroypthread_rwlock_init
pthread_rwlock_rdlockpthread_rwlock_tryrdlock
pthread_rwlock_trywrlockpthread_rwlock_unlock
pthread_rwlock_wrlockpthread_rwlockattr_destroy
pthread_rwlockattr_getpsharedpthread_rwlockattr_init
pthread_rwlockattr_setpsharedpthread_self
pthread_setcancelstatepthread_setcanceltype
pthread_setconcurrencypthread_setschedparam
pthread_setspecificpthread_sigmask
pthread_testcancel
FILES

/lib/libpthread.so.1

a filter on /lib/libc.so.1

/lib/64/libpthread.so.1

a filter on /lib/64/libc.so.1

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelSafe
SEE ALSO

pvs(1), Intro(2), Intro(3), libc(3LIB), libc_db(3LIB), libthread(3LIB), attributes(5), standards(5), threads(5)