1*9c4ae7f5Sjruoho.\" $NetBSD: pthread_equal.3,v 1.4 2010/07/09 08:51:28 jruoho Exp $ 255818196Snathanw.\" 355818196Snathanw.\" Copyright (c) 2002 The NetBSD Foundation, Inc. 455818196Snathanw.\" All rights reserved. 555818196Snathanw.\" Redistribution and use in source and binary forms, with or without 655818196Snathanw.\" modification, are permitted provided that the following conditions 755818196Snathanw.\" are met: 855818196Snathanw.\" 1. Redistributions of source code must retain the above copyright 955818196Snathanw.\" notice, this list of conditions and the following disclaimer. 1055818196Snathanw.\" 2. Redistributions in binary form must reproduce the above copyright 1155818196Snathanw.\" notice, this list of conditions and the following disclaimer in the 1255818196Snathanw.\" documentation and/or other materials provided with the distribution. 13cd22f25eSmartin.\" 1455818196Snathanw.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 1555818196Snathanw.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 1655818196Snathanw.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1755818196Snathanw.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 1855818196Snathanw.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 1955818196Snathanw.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 2055818196Snathanw.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2155818196Snathanw.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 2255818196Snathanw.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2355818196Snathanw.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2455818196Snathanw.\" POSSIBILITY OF SUCH DAMAGE. 2555818196Snathanw.\" 2655818196Snathanw.\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. 2755818196Snathanw.\" All rights reserved. 2855818196Snathanw.\" 2955818196Snathanw.\" Redistribution and use in source and binary forms, with or without 3055818196Snathanw.\" modification, are permitted provided that the following conditions 3155818196Snathanw.\" are met: 3255818196Snathanw.\" 1. Redistributions of source code must retain the above copyright 3355818196Snathanw.\" notice, this list of conditions and the following disclaimer. 3455818196Snathanw.\" 2. Redistributions in binary form must reproduce the above copyright 3555818196Snathanw.\" notice, this list of conditions and the following disclaimer in the 3655818196Snathanw.\" documentation and/or other materials provided with the distribution. 3755818196Snathanw.\" 3. All advertising materials mentioning features or use of this software 3855818196Snathanw.\" must display the following acknowledgement: 3955818196Snathanw.\" This product includes software developed by John Birrell. 4055818196Snathanw.\" 4. Neither the name of the author nor the names of any co-contributors 4155818196Snathanw.\" may be used to endorse or promote products derived from this software 4255818196Snathanw.\" without specific prior written permission. 4355818196Snathanw.\" 4455818196Snathanw.\" THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND 4555818196Snathanw.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 4655818196Snathanw.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 4755818196Snathanw.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 4855818196Snathanw.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 4955818196Snathanw.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 5055818196Snathanw.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 5155818196Snathanw.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 5255818196Snathanw.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 5355818196Snathanw.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 5455818196Snathanw.\" SUCH DAMAGE. 5555818196Snathanw.\" 5655818196Snathanw.\" $FreeBSD: src/lib/libpthread/man/pthread_equal.3,v 1.11 2002/09/16 19:29:28 mini Exp $ 5755818196Snathanw.\" 58*9c4ae7f5Sjruoho.Dd July 9, 2010 5955818196Snathanw.Dt PTHREAD_EQUAL 3 6055818196Snathanw.Os 6155818196Snathanw.Sh NAME 6255818196Snathanw.Nm pthread_equal 6355818196Snathanw.Nd compare thread IDs 6455818196Snathanw.Sh LIBRARY 6555818196Snathanw.Lb libpthread 6655818196Snathanw.Sh SYNOPSIS 6755818196Snathanw.In pthread.h 6855818196Snathanw.Ft int 6955818196Snathanw.Fn pthread_equal "pthread_t t1" "pthread_t t2" 7055818196Snathanw.Sh DESCRIPTION 7155818196SnathanwThe 7255818196Snathanw.Fn pthread_equal 7355818196Snathanwfunction compares the thread IDs 7455818196Snathanw.Fa t1 7555818196Snathanwand 7655818196Snathanw.Fa t2 . 7755818196Snathanw.Sh RETURN VALUES 7855818196SnathanwThe 7955818196Snathanw.Fn pthread_equal 8055818196Snathanwfunction will return non-zero if the thread IDs 8155818196Snathanw.Fa t1 8255818196Snathanwand 8355818196Snathanw.Fa t2 8455818196Snathanwcorrespond to the same thread, otherwise it will return zero. 8555818196Snathanw.Sh ERRORS 8655818196SnathanwNone. 8755818196Snathanw.Sh SEE ALSO 8855818196Snathanw.Xr pthread_create 3 , 8955818196Snathanw.Xr pthread_exit 3 9055818196Snathanw.Sh STANDARDS 91*9c4ae7f5SjruohoThe function conforms to 92*9c4ae7f5Sjruoho.St -p1003.1-2001 . 93