1/* $OpenBSD: pthread.h,v 1.6 2017/11/04 22:53:57 jca Exp $ */ 2/* 3 * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> 4 * 5 * Permission to use, copy, modify, and distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18#ifndef _LIBPTHREAD_PTHREAD_H_ 19#define _LIBPTHREAD_PTHREAD_H_ 20 21#include_next <pthread.h> 22 23/* 24 * Functions with PROTO_NORMAL() here MUST have matching 25 * DEF_STD() or DEF_NONSTD() in the file where they are defined! 26 */ 27 28PROTO_STD_DEPRECATED(pthread_attr_destroy); 29PROTO_STD_DEPRECATED(pthread_attr_getdetachstate); 30PROTO_STD_DEPRECATED(pthread_attr_getguardsize); 31PROTO_STD_DEPRECATED(pthread_attr_getinheritsched); 32PROTO_STD_DEPRECATED(pthread_attr_getschedparam); 33PROTO_STD_DEPRECATED(pthread_attr_getschedpolicy); 34PROTO_STD_DEPRECATED(pthread_attr_getscope); 35PROTO_STD_DEPRECATED(pthread_attr_getstack); 36PROTO_STD_DEPRECATED(pthread_attr_getstacksize); 37PROTO_STD_DEPRECATED(pthread_attr_init); 38PROTO_STD_DEPRECATED(pthread_attr_setdetachstate); 39PROTO_STD_DEPRECATED(pthread_attr_setguardsize); 40PROTO_STD_DEPRECATED(pthread_attr_setinheritsched); 41PROTO_STD_DEPRECATED(pthread_attr_setschedparam); 42PROTO_STD_DEPRECATED(pthread_attr_setschedpolicy); 43PROTO_STD_DEPRECATED(pthread_attr_setscope); 44PROTO_STD_DEPRECATED(pthread_attr_setstack); 45PROTO_STD_DEPRECATED(pthread_attr_setstacksize); 46PROTO_STD_DEPRECATED(pthread_barrier_destroy); 47PROTO_STD_DEPRECATED(pthread_barrier_init); 48PROTO_STD_DEPRECATED(pthread_barrier_wait); 49PROTO_STD_DEPRECATED(pthread_barrierattr_destroy); 50PROTO_STD_DEPRECATED(pthread_barrierattr_getpshared); 51PROTO_STD_DEPRECATED(pthread_barrierattr_init); 52PROTO_STD_DEPRECATED(pthread_barrierattr_setpshared); 53PROTO_STD_DEPRECATED(pthread_cancel); 54PROTO_STD_DEPRECATED(pthread_cleanup_pop); 55PROTO_STD_DEPRECATED(pthread_cleanup_push); 56PROTO_STD_DEPRECATED(pthread_condattr_getclock); 57PROTO_STD_DEPRECATED(pthread_condattr_setclock); 58PROTO_STD_DEPRECATED(pthread_create); 59PROTO_STD_DEPRECATED(pthread_detach); 60PROTO_STD_DEPRECATED(pthread_getconcurrency); 61PROTO_STD_DEPRECATED(pthread_getcpuclockid); 62PROTO_STD_DEPRECATED(pthread_getschedparam); 63PROTO_STD_DEPRECATED(pthread_join); 64PROTO_STD_DEPRECATED(pthread_kill); 65PROTO_STD_DEPRECATED(pthread_mutex_getprioceiling); 66PROTO_STD_DEPRECATED(pthread_mutex_setprioceiling); 67PROTO_STD_DEPRECATED(pthread_mutexattr_destroy); 68PROTO_STD_DEPRECATED(pthread_mutexattr_getprioceiling); 69PROTO_STD_DEPRECATED(pthread_mutexattr_getprotocol); 70PROTO_STD_DEPRECATED(pthread_mutexattr_gettype); 71PROTO_STD_DEPRECATED(pthread_mutexattr_init); 72PROTO_STD_DEPRECATED(pthread_mutexattr_setprioceiling); 73PROTO_STD_DEPRECATED(pthread_mutexattr_setprotocol); 74PROTO_STD_DEPRECATED(pthread_mutexattr_settype); 75PROTO_STD_DEPRECATED(pthread_rwlock_destroy); 76PROTO_NORMAL(pthread_rwlock_init); 77PROTO_STD_DEPRECATED(pthread_rwlock_rdlock); 78PROTO_STD_DEPRECATED(pthread_rwlock_timedrdlock); 79PROTO_STD_DEPRECATED(pthread_rwlock_timedwrlock); 80PROTO_STD_DEPRECATED(pthread_rwlock_tryrdlock); 81PROTO_STD_DEPRECATED(pthread_rwlock_trywrlock); 82PROTO_STD_DEPRECATED(pthread_rwlock_unlock); 83PROTO_STD_DEPRECATED(pthread_rwlock_wrlock); 84PROTO_STD_DEPRECATED(pthread_rwlockattr_destroy); 85PROTO_STD_DEPRECATED(pthread_rwlockattr_getpshared); 86PROTO_STD_DEPRECATED(pthread_rwlockattr_init); 87PROTO_STD_DEPRECATED(pthread_rwlockattr_setpshared); 88PROTO_NORMAL(pthread_setcancelstate); 89PROTO_STD_DEPRECATED(pthread_setcanceltype); 90PROTO_STD_DEPRECATED(pthread_setconcurrency); 91PROTO_STD_DEPRECATED(pthread_setschedparam); 92PROTO_STD_DEPRECATED(pthread_spin_destroy); 93PROTO_STD_DEPRECATED(pthread_spin_init); 94PROTO_STD_DEPRECATED(pthread_spin_lock); 95PROTO_STD_DEPRECATED(pthread_spin_trylock); 96PROTO_STD_DEPRECATED(pthread_spin_unlock); 97PROTO_STD_DEPRECATED(pthread_testcancel); 98 99/* 100 * Obsolete, non-portable 101 */ 102PROTO_DEPRECATED(pthread_setprio); 103PROTO_DEPRECATED(pthread_getprio); 104PROTO_DEPRECATED(pthread_attr_getstackaddr); 105PROTO_NORMAL(pthread_attr_setstackaddr); 106PROTO_DEPRECATED(pthread_yield); 107 108#endif /* !_LIBPTHREAD_PTHREAD_H_ */ 109