1 '\" te 2 .\" Copyright (c) 2014, Joyent, Inc. 3 .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. 4 .\" 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. 5 .\" 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. 6 .\" 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] 7 .TH LIBPTHREAD 3LIB "Aug 19, 2019" 8 .SH NAME 9 libpthread \- POSIX threads library 10 .SH SYNOPSIS 11 .nf 12 cc -mt [ \fIflag\fR... ] \fIfile\fR... \fB-lpthread\fR [ \fIlibrary\fR... ] 13 .fi 14 15 .SH DESCRIPTION 16 Historically, functions in this library provided POSIX threading support. See 17 \fBstandards\fR(5). This functionality now resides in \fBlibc\fR(3LIB). 18 .LP 19 This library is maintained to provide backward compatibility for both runtime 20 and compilation environments. The shared object is implemented as a filter on 21 \fBlibc.so.1\fR. New application development need not specify \fB-lpthread\fR 22 although doing so has no effect. 23 .SH INTERFACES 24 The shared object \fBlibpthread.so.1\fR provides the public interfaces defined 25 below. See \fBIntro\fR(3) for additional information on shared object 26 interfaces. 27 .sp 28 29 .sp 30 .TS 31 l l 32 l l . 33 \fB__pthread_cleanup_pop\fR \fB__pthread_cleanup_push\fR 34 \fBpthread_attr_destroy\fR \fBpthread_attr_getdetachstate\fR 35 \fBpthread_attr_getguardsize\fR \fBpthread_attr_getinheritsched\fR 36 \fBpthread_attr_getschedparam\fR \fBpthread_attr_getschedpolicy\fR 37 \fBpthread_attr_getscope\fR \fBpthread_attr_getstackaddr\fR 38 \fBpthread_attr_getstacksize\fR \fBpthread_attr_init\fR 39 \fBpthread_attr_setdetachstate\fR \fBpthread_attr_setguardsize\fR 40 \fBpthread_attr_setinheritsched\fR \fBpthread_attr_setschedparam\fR 41 \fBpthread_attr_setschedpolicy\fR \fBpthread_attr_setscope\fR 42 \fBpthread_attr_setstackaddr\fR \fBpthread_attr_setstacksize\fR 43 \fBpthread_cancel\fR \fBpthread_cond_broadcast\fR 44 \fBpthread_cond_destroy\fR \fBpthread_cond_init\fR 45 \fBpthread_cond_reltimedwait_np\fR \fBpthread_cond_signal\fR 46 \fBpthread_cond_timedwait\fR \fBpthread_cond_wait\fR 47 \fBpthread_condattr_destroy\fR \fBpthread_condattr_getpshared\fR 48 \fBpthread_condattr_init\fR \fBpthread_condattr_setpshared\fR 49 \fBpthread_create\fR \fBpthread_detach\fR 50 \fBpthread_equal\fR \fBpthread_exit\fR 51 \fBpthread_getconcurrency\fR \fBpthread_getschedparam\fR 52 \fBpthread_getspecific\fR \fBpthread_join\fR 53 \fBpthread_key_create\fR \fBpthread_key_delete\fR 54 \fBpthread_kill\fR \fBpthread_mutex_consistent_np\fR 55 \fBpthread_mutex_destroy\fR \fBpthread_mutex_getprioceiling\fR 56 \fBpthread_mutex_init\fR \fBpthread_mutex_lock\fR 57 \fBpthread_mutex_setprioceiling\fR \fBpthread_mutex_trylock\fR 58 \fBpthread_mutex_unlock\fR \fBpthread_mutexattr_destroy\fR 59 \fBpthread_mutexattr_getprioceiling\fR \fBpthread_mutexattr_getprotocol\fR 60 \fBpthread_mutexattr_getpshared\fR \fBpthread_mutexattr_getrobust_np\fR 61 \fBpthread_mutexattr_gettype\fR \fBpthread_mutexattr_init\fR 62 \fBpthread_mutexattr_setprioceiling\fR \fBpthread_mutexattr_setprotocol\fR 63 \fBpthread_mutexattr_setpshared\fR \fBpthread_mutexattr_setrobust_np\fR 64 \fBpthread_mutexattr_settype\fR \fBpthread_once\fR 65 \fBpthread_rwlock_destroy\fR \fBpthread_rwlock_init\fR 66 \fBpthread_rwlock_rdlock\fR \fBpthread_rwlock_tryrdlock\fR 67 \fBpthread_rwlock_trywrlock\fR \fBpthread_rwlock_unlock\fR 68 \fBpthread_rwlock_wrlock\fR \fBpthread_rwlockattr_destroy\fR 69 \fBpthread_rwlockattr_getpshared\fR \fBpthread_rwlockattr_init\fR 70 \fBpthread_rwlockattr_setpshared\fR \fBpthread_self\fR 71 \fBpthread_setcancelstate\fR \fBpthread_setcanceltype\fR 72 \fBpthread_setconcurrency\fR \fBpthread_setschedparam\fR 73 \fBpthread_setspecific\fR \fBpthread_sigmask\fR 74 \fBpthread_testcancel\fR 75 .TE 76 77 .SH FILES 78 .ne 2 79 .na 80 \fB/lib/libpthread.so.1\fR 81 .ad 82 .RS 27n 83 a filter on \fB/lib/libc.so.1\fR 84 .RE 85 86 .sp 87 .ne 2 88 .na 89 \fB/lib/64/libpthread.so.1\fR 90 .ad 91 .RS 27n 92 a filter on \fB/lib/64/libc.so.1\fR 93 .RE 94 95 .SH ATTRIBUTES 96 See \fBattributes\fR(5) for descriptions of the following attributes: 97 .sp 98 99 .sp 100 .TS 101 box; 102 c | c 103 l | l . 104 ATTRIBUTE TYPE ATTRIBUTE VALUE 105 _ 106 MT-Level Safe 107 .TE 108 109 .SH SEE ALSO 110 \fBpvs\fR(1), \fBIntro\fR(2), \fBIntro\fR(3), \fBlibc\fR(3LIB), 111 \fBlibc_db\fR(3LIB), \fBlibthread\fR(3LIB), \fBattributes\fR(5), 112 \fBstandards\fR(5), \fBthreads\fR(5)