1*a318b99dSjca /* $OpenBSD: pthread.h,v 1.6 2017/11/04 22:53:57 jca Exp $ */ 27567a0bfSguenther /* 37567a0bfSguenther * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> 47567a0bfSguenther * 57567a0bfSguenther * Permission to use, copy, modify, and distribute this software for any 67567a0bfSguenther * purpose with or without fee is hereby granted, provided that the above 77567a0bfSguenther * copyright notice and this permission notice appear in all copies. 87567a0bfSguenther * 97567a0bfSguenther * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 107567a0bfSguenther * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 117567a0bfSguenther * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 127567a0bfSguenther * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 137567a0bfSguenther * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 147567a0bfSguenther * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 157567a0bfSguenther * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 167567a0bfSguenther */ 177567a0bfSguenther 187567a0bfSguenther #ifndef _LIBPTHREAD_PTHREAD_H_ 197567a0bfSguenther #define _LIBPTHREAD_PTHREAD_H_ 207567a0bfSguenther 217567a0bfSguenther #include_next <pthread.h> 227567a0bfSguenther 233a2e040fSguenther /* 243a2e040fSguenther * Functions with PROTO_NORMAL() here MUST have matching 253a2e040fSguenther * DEF_STD() or DEF_NONSTD() in the file where they are defined! 263a2e040fSguenther */ 273a2e040fSguenther 287567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_destroy); 297567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getdetachstate); 307567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getguardsize); 317567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getinheritsched); 327567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getschedparam); 337567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getschedpolicy); 347567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getscope); 357567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getstack); 367567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_getstacksize); 377567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_init); 387567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setdetachstate); 397567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setguardsize); 407567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setinheritsched); 417567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setschedparam); 427567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setschedpolicy); 437567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setscope); 447567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setstack); 457567a0bfSguenther PROTO_STD_DEPRECATED(pthread_attr_setstacksize); 467567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrier_destroy); 477567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrier_init); 487567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrier_wait); 497567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrierattr_destroy); 507567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrierattr_getpshared); 517567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrierattr_init); 527567a0bfSguenther PROTO_STD_DEPRECATED(pthread_barrierattr_setpshared); 537567a0bfSguenther PROTO_STD_DEPRECATED(pthread_cancel); 54*a318b99dSjca PROTO_STD_DEPRECATED(pthread_cleanup_pop); 55*a318b99dSjca PROTO_STD_DEPRECATED(pthread_cleanup_push); 567567a0bfSguenther PROTO_STD_DEPRECATED(pthread_condattr_getclock); 577567a0bfSguenther PROTO_STD_DEPRECATED(pthread_condattr_setclock); 587567a0bfSguenther PROTO_STD_DEPRECATED(pthread_create); 597567a0bfSguenther PROTO_STD_DEPRECATED(pthread_detach); 607567a0bfSguenther PROTO_STD_DEPRECATED(pthread_getconcurrency); 617567a0bfSguenther PROTO_STD_DEPRECATED(pthread_getcpuclockid); 627567a0bfSguenther PROTO_STD_DEPRECATED(pthread_getschedparam); 637567a0bfSguenther PROTO_STD_DEPRECATED(pthread_join); 647567a0bfSguenther PROTO_STD_DEPRECATED(pthread_kill); 657567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutex_getprioceiling); 667567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutex_setprioceiling); 677567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_destroy); 687567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_getprioceiling); 697567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_getprotocol); 707567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_gettype); 717567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_init); 727567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_setprioceiling); 737567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_setprotocol); 747567a0bfSguenther PROTO_STD_DEPRECATED(pthread_mutexattr_settype); 757567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_destroy); 767567a0bfSguenther PROTO_NORMAL(pthread_rwlock_init); 777567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_rdlock); 787567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_timedrdlock); 797567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_timedwrlock); 807567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_tryrdlock); 817567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_trywrlock); 827567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_unlock); 837567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlock_wrlock); 847567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlockattr_destroy); 857567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlockattr_getpshared); 867567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlockattr_init); 877567a0bfSguenther PROTO_STD_DEPRECATED(pthread_rwlockattr_setpshared); 887567a0bfSguenther PROTO_NORMAL(pthread_setcancelstate); 897567a0bfSguenther PROTO_STD_DEPRECATED(pthread_setcanceltype); 907567a0bfSguenther PROTO_STD_DEPRECATED(pthread_setconcurrency); 917567a0bfSguenther PROTO_STD_DEPRECATED(pthread_setschedparam); 927567a0bfSguenther PROTO_STD_DEPRECATED(pthread_spin_destroy); 937567a0bfSguenther PROTO_STD_DEPRECATED(pthread_spin_init); 947567a0bfSguenther PROTO_STD_DEPRECATED(pthread_spin_lock); 957567a0bfSguenther PROTO_STD_DEPRECATED(pthread_spin_trylock); 967567a0bfSguenther PROTO_STD_DEPRECATED(pthread_spin_unlock); 977567a0bfSguenther PROTO_STD_DEPRECATED(pthread_testcancel); 987567a0bfSguenther 997567a0bfSguenther /* 1007567a0bfSguenther * Obsolete, non-portable 1017567a0bfSguenther */ 1027567a0bfSguenther PROTO_DEPRECATED(pthread_setprio); 1037567a0bfSguenther PROTO_DEPRECATED(pthread_getprio); 1047567a0bfSguenther PROTO_DEPRECATED(pthread_attr_getstackaddr); 1057567a0bfSguenther PROTO_NORMAL(pthread_attr_setstackaddr); 1067567a0bfSguenther PROTO_DEPRECATED(pthread_yield); 1077567a0bfSguenther 1087567a0bfSguenther #endif /* !_LIBPTHREAD_PTHREAD_H_ */ 109