mtlib.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* This file is included in library source files (other than libc) when it
* is desired to call libc functions by their restricted names rather than
* by their public names, to avoid a namespace collision with applications.
* "mtlib.h" is included by "synonyms.h". There is no need to include both.
*/
#ifndef _COMMON_INC_MTLIB_H
#define _COMMON_INC_MTLIB_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#if !defined(__lint)
/* lock primitives and other multithreading interfaces */
#define atomic_add_16 _atomic_add_16
#define atomic_add_32 _atomic_add_32
#define atomic_add_64 _atomic_add_64
#define atomic_add_long _atomic_add_long
#define atomic_add_16_nv _atomic_add_16_nv
#define atomic_add_32_nv _atomic_add_32_nv
#define atomic_add_64_nv _atomic_add_64_nv
#define atomic_or_uint _atomic_or_uint
#define atomic_or_32 _atomic_or_32
#define atomic_and_uint _atomic_and_uint
#define atomic_and_32 _atomic_and_32
#define mutex_init __mutex_init
#define mutex_destroy __mutex_destroy
#define mutex_lock __mutex_lock
#define mutex_trylock __mutex_trylock
#define mutex_unlock __mutex_unlock
#define mutex_held __mutex_held
#define _mutex_init __mutex_init
#define _mutex_destroy __mutex_destroy
#define _mutex_lock __mutex_lock
#define _mutex_trylock __mutex_trylock
#define _mutex_unlock __mutex_unlock
#define _mutex_held __mutex_held
#define cond_init _cond_init
#define cond_destroy _cond_destroy
#define cond_wait _cond_wait
#define cond_timedwait _cond_timedwait
#define cond_reltimedwait _cond_reltimedwait
#define cond_signal _cond_signal
#define cond_broadcast _cond_broadcast
#define rwlock_init _rwlock_init
#define rwlock_destroy _rwlock_destroy
#define rw_rdlock _rw_rdlock
#define rw_wrlock _rw_wrlock
#define rw_tryrdlock _rw_tryrdlock
#define rw_trywrlock _rw_trywrlock
#define rw_unlock _rw_unlock
#define rw_read_held _rw_read_held
#define rw_write_held _rw_write_held
#define sema_held _sema_held
#define sema_init _sema_init
#define sema_destroy _sema_destroy
#define sema_wait _sema_wait
#define sema_reltimedwait _sema_reltimedwait
#define sema_timedwait _sema_timedwait
#define sema_trywait _sema_trywait
#define sema_post _sema_post
#define sem_close _sem_close
#define sem_unlink _sem_unlink
#define sem_destroy _sem_destroy
#define sem_timedwait _sem_timedwait
#define sem_trywait _sem_trywait
#define sem_getvalue _sem_getvalue
#define thr_continue _thr_continue
#define thr_create _thr_create
#define thr_getprio _thr_getprio
#define thr_getspecific _thr_getspecific
#define thr_getstate _thr_getstate
#define thr_keycreate _thr_keycreate
#define thr_min_stack _thr_min_stack
#define thr_setmutator _thr_setmutator
#define thr_setprio _thr_setprio
#define thr_setspecific _thr_setspecific
#define thr_setstate _thr_setstate
#define thr_sighndlrinfo _thr_sighndlrinfo
#define thr_sigsetmask _thr_sigsetmask
#define thr_stksegment _thr_stksegment
#define thr_suspend _thr_suspend
#define thr_wait_mutator _thr_wait_mutator
#define thr_yield _thr_yield
#define pthread_atfork _pthread_atfork
#define pthread_attr_init _pthread_attr_init
#define pthread_cancel _pthread_cancel
#define pthread_cond_init _pthread_cond_init
#define pthread_cond_wait _pthread_cond_wait
#define pthread_create _pthread_create
#define pthread_detach _pthread_detach
#define pthread_equal _pthread_equal
#define pthread_exit _pthread_exit
#define pthread_join _pthread_join
#define pthread_kill _pthread_kill
#define pthread_once _pthread_once
#define pthread_self _pthread_self
#define pthread_sigmask _pthread_sigmask
#endif /* !defined(__lint) */
#ifdef __cplusplus
}
#endif
#endif /* _COMMON_INC_MTLIB_H */