namespace.h revision 244175
10SN/A/* 22362SN/A * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>. 30SN/A * All rights reserved. 40SN/A * 50SN/A * Redistribution and use in source and binary forms, with or without 60SN/A * modification, are permitted provided that the following conditions 72362SN/A * are met: 80SN/A * 1. Redistributions of source code must retain the above copyright 92362SN/A * notice, this list of conditions and the following disclaimer. 100SN/A * 2. Redistributions in binary form must reproduce the above copyright 110SN/A * notice, this list of conditions and the following disclaimer in the 120SN/A * documentation and/or other materials provided with the distribution. 130SN/A * 140SN/A * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 150SN/A * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 160SN/A * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 170SN/A * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 180SN/A * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 190SN/A * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 200SN/A * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 212362SN/A * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 222362SN/A * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 232362SN/A * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 240SN/A * SUCH DAMAGE. 250SN/A * 260SN/A * $FreeBSD: stable/9/lib/libc/include/namespace.h 244175 2012-12-13 06:24:54Z kib $ 270SN/A */ 280SN/A 290SN/A#ifndef _NAMESPACE_H_ 300SN/A#define _NAMESPACE_H_ 310SN/A 320SN/A/* 330SN/A * Adjust names so that headers declare "hidden" names. 340SN/A * 350SN/A * README: When modifying this file don't forget to make the appropriate 360SN/A * changes in un-namespace.h!!! 370SN/A */ 380SN/A 390SN/A/* 400SN/A * ISO C (C90) section. Most names in libc aren't in ISO C, so they 410SN/A * should be here. Most aren't here... 420SN/A */ 430SN/A#define err _err 440SN/A#define warn _warn 450SN/A#define nsdispatch _nsdispatch 460SN/A 470SN/A/* 480SN/A * Prototypes for syscalls/functions that need to be overridden 490SN/A * in libc_r/libpthread. 500SN/A */ 510SN/A#define accept _accept 520SN/A#define __acl_aclcheck_fd ___acl_aclcheck_fd 530SN/A#define __acl_delete_fd ___acl_delete_fd 540SN/A#define __acl_get_fd ___acl_get_fd 550SN/A#define __acl_set_fd ___acl_set_fd 560SN/A#define bind _bind 570SN/A#define __cap_get_fd ___cap_get_fd 580SN/A#define __cap_set_fd ___cap_set_fd 590SN/A#define close _close 600SN/A#define connect _connect 610SN/A#define dup _dup 620SN/A#define dup2 _dup2 630SN/A#define execve _execve 640SN/A#define fcntl _fcntl 650SN/A/*#define flock _flock */ 660SN/A#define flockfile _flockfile 670SN/A#define fpathconf _fpathconf 680SN/A#define fstat _fstat 690SN/A#define fstatfs _fstatfs 700SN/A#define fsync _fsync 710SN/A#define funlockfile _funlockfile 720SN/A#define getdirentries _getdirentries 730SN/A#define getlogin _getlogin 740SN/A#define getpeername _getpeername 750SN/A#define getprogname _getprogname 760SN/A#define getsockname _getsockname 77142SN/A#define getsockopt _getsockopt 780SN/A#define ioctl _ioctl 790SN/A/* #define kevent _kevent */ 800SN/A#define listen _listen 810SN/A#define nanosleep _nanosleep 820SN/A#define open _open 830SN/A#define openat _openat 840SN/A#define poll _poll 850SN/A#define pthread_atfork _pthread_atfork 860SN/A#define pthread_attr_destroy _pthread_attr_destroy 870SN/A#define pthread_attr_get_np _pthread_attr_get_np 880SN/A#define pthread_attr_getaffinity_np _pthread_attr_getaffinity_np 890SN/A#define pthread_attr_getdetachstate _pthread_attr_getdetachstate 900SN/A#define pthread_attr_getguardsize _pthread_attr_getguardsize 910SN/A#define pthread_attr_getinheritsched _pthread_attr_getinheritsched 920SN/A#define pthread_attr_getschedparam _pthread_attr_getschedparam 930SN/A#define pthread_attr_getschedpolicy _pthread_attr_getschedpolicy 940SN/A#define pthread_attr_getscope _pthread_attr_getscope 950SN/A#define pthread_attr_getstack _pthread_attr_getstack 960SN/A#define pthread_attr_getstackaddr _pthread_attr_getstackaddr 970SN/A#define pthread_attr_getstacksize _pthread_attr_getstacksize 980SN/A#define pthread_attr_init _pthread_attr_init 990SN/A#define pthread_attr_setaffinity_np _pthread_attr_setaffinity_np 100142SN/A#define pthread_attr_setcreatesuspend_np _pthread_attr_setcreatesuspend_np 1010SN/A#define pthread_attr_setdetachstate _pthread_attr_setdetachstate 1020SN/A#define pthread_attr_setguardsize _pthread_attr_setguardsize 1030SN/A#define pthread_attr_setinheritsched _pthread_attr_setinheritsched 1040SN/A#define pthread_attr_setschedparam _pthread_attr_setschedparam 1050SN/A#define pthread_attr_setschedpolicy _pthread_attr_setschedpolicy 1060SN/A#define pthread_attr_setscope _pthread_attr_setscope 1070SN/A#define pthread_attr_setstack _pthread_attr_setstack 1080SN/A#define pthread_attr_setstackaddr _pthread_attr_setstackaddr 1090SN/A#define pthread_attr_setstacksize _pthread_attr_setstacksize 1100SN/A#define pthread_barrier_destroy _pthread_barrier_destroy 1110SN/A#define pthread_barrier_init _pthread_barrier_init 1120SN/A#define pthread_barrier_wait _pthread_barrier_wait 1130SN/A#define pthread_barrierattr_destroy _pthread_barrierattr_destroy 1140SN/A#define pthread_barrierattr_getpshared _pthread_barrierattr_getpshared 1150SN/A#define pthread_barrierattr_init _pthread_barrierattr_init 116142SN/A#define pthread_barrierattr_setpshared _pthread_barrierattr_setpshared 1170SN/A#define pthread_cancel _pthread_cancel 1180SN/A#define pthread_cond_broadcast _pthread_cond_broadcast 1190SN/A#define pthread_cond_destroy _pthread_cond_destroy 1200SN/A#define pthread_cond_init _pthread_cond_init 1210SN/A#define pthread_cond_signal _pthread_cond_signal 1220SN/A#define pthread_cond_timedwait _pthread_cond_timedwait 1230SN/A#define pthread_cond_wait _pthread_cond_wait 1240SN/A#define pthread_condattr_destroy _pthread_condattr_destroy 1250SN/A#define pthread_condattr_getclock _pthread_condattr_getclock 1260SN/A#define pthread_condattr_getpshared _pthread_condattr_getpshared 1270SN/A#define pthread_condattr_init _pthread_condattr_init 1280SN/A#define pthread_condattr_setclock _pthread_condattr_setclock 1290SN/A#define pthread_condattr_setpshared _pthread_condattr_setpshared 1300SN/A#define pthread_create _pthread_create 1310SN/A#define pthread_detach _pthread_detach 1320SN/A#define pthread_equal _pthread_equal 1339203SN/A#define pthread_exit _pthread_exit 1340SN/A#define pthread_getaffinity_np _pthread_getaffinity_np 1350SN/A#define pthread_getconcurrency _pthread_getconcurrency 1360SN/A#define pthread_getcpuclockid _pthread_getcpuclockid 1370SN/A#define pthread_getprio _pthread_getprio 1380SN/A#define pthread_getschedparam _pthread_getschedparam 1390SN/A#define pthread_getspecific _pthread_getspecific 1400SN/A#define pthread_getthreadid_np _pthread_getthreadid_np 1410SN/A#define pthread_join _pthread_join 1420SN/A#define pthread_key_create _pthread_key_create 1430SN/A#define pthread_key_delete _pthread_key_delete 1440SN/A#define pthread_kill _pthread_kill 1450SN/A#define pthread_main_np _pthread_main_np 1460SN/A#define pthread_multi_np _pthread_multi_np 1470SN/A#define pthread_mutex_destroy _pthread_mutex_destroy 1480SN/A#define pthread_mutex_getprioceiling _pthread_mutex_getprioceiling 1490SN/A#define pthread_mutex_init _pthread_mutex_init 1500SN/A#define pthread_mutex_isowned_np _pthread_mutex_isowned_np 1510SN/A#define pthread_mutex_lock _pthread_mutex_lock 1520SN/A#define pthread_mutex_setprioceiling _pthread_mutex_setprioceiling 1530SN/A#define pthread_mutex_timedlock _pthread_mutex_timedlock 1540SN/A#define pthread_mutex_trylock _pthread_mutex_trylock 1550SN/A#define pthread_mutex_unlock _pthread_mutex_unlock 1560SN/A#define pthread_mutexattr_destroy _pthread_mutexattr_destroy 1570SN/A#define pthread_mutexattr_getkind_np _pthread_mutexattr_getkind_np 1580SN/A#define pthread_mutexattr_getprioceiling _pthread_mutexattr_getprioceiling 1590SN/A#define pthread_mutexattr_getprotocol _pthread_mutexattr_getprotocol 1600SN/A#define pthread_mutexattr_getpshared _pthread_mutexattr_getpshared 1610SN/A#define pthread_mutexattr_gettype _pthread_mutexattr_gettype 1629203SN/A#define pthread_mutexattr_init _pthread_mutexattr_init 1630SN/A#define pthread_mutexattr_setkind_np _pthread_mutexattr_setkind_np 1640SN/A#define pthread_mutexattr_setprioceiling _pthread_mutexattr_setprioceiling 1650SN/A#define pthread_mutexattr_setprotocol _pthread_mutexattr_setprotocol 166#define pthread_mutexattr_setpshared _pthread_mutexattr_setpshared 167#define pthread_mutexattr_settype _pthread_mutexattr_settype 168#define pthread_once _pthread_once 169#define pthread_resume_all_np _pthread_resume_all_np 170#define pthread_resume_np _pthread_resume_np 171#define pthread_rwlock_destroy _pthread_rwlock_destroy 172#define pthread_rwlock_init _pthread_rwlock_init 173#define pthread_rwlock_rdlock _pthread_rwlock_rdlock 174#define pthread_rwlock_timedrdlock _pthread_rwlock_timedrdlock 175#define pthread_rwlock_timedwrlock _pthread_rwlock_timedwrlock 176#define pthread_rwlock_tryrdlock _pthread_rwlock_tryrdlock 177#define pthread_rwlock_trywrlock _pthread_rwlock_trywrlock 178#define pthread_rwlock_unlock _pthread_rwlock_unlock 179#define pthread_rwlock_wrlock _pthread_rwlock_wrlock 180#define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy 181#define pthread_rwlockattr_getpshared _pthread_rwlockattr_getpshared 182#define pthread_rwlockattr_init _pthread_rwlockattr_init 183#define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared 184#define pthread_self _pthread_self 185#define pthread_set_name_np _pthread_set_name_np 186#define pthread_setaffinity_np _pthread_setaffinity_np 187#define pthread_setcancelstate _pthread_setcancelstate 188#define pthread_setcanceltype _pthread_setcanceltype 189#define pthread_setconcurrency _pthread_setconcurrency 190#define pthread_setprio _pthread_setprio 191#define pthread_setschedparam _pthread_setschedparam 192#define pthread_setspecific _pthread_setspecific 193#define pthread_sigmask _pthread_sigmask 194#define pthread_single_np _pthread_single_np 195#define pthread_spin_destroy _pthread_spin_destroy 196#define pthread_spin_init _pthread_spin_init 197#define pthread_spin_lock _pthread_spin_lock 198#define pthread_spin_trylock _pthread_spin_trylock 199#define pthread_spin_unlock _pthread_spin_unlock 200#define pthread_suspend_all_np _pthread_suspend_all_np 201#define pthread_suspend_np _pthread_suspend_np 202#define pthread_switch_add_np _pthread_switch_add_np 203#define pthread_switch_delete_np _pthread_switch_delete_np 204#define pthread_testcancel _pthread_testcancel 205#define pthread_timedjoin_np _pthread_timedjoin_np 206#define pthread_yield _pthread_yield 207#define read _read 208#define readv _readv 209#define recvfrom _recvfrom 210#define recvmsg _recvmsg 211#define select _select 212#define sem_close _sem_close 213#define sem_destroy _sem_destroy 214#define sem_getvalue _sem_getvalue 215#define sem_init _sem_init 216#define sem_open _sem_open 217#define sem_post _sem_post 218#define sem_timedwait _sem_timedwait 219#define sem_trywait _sem_trywait 220#define sem_unlink _sem_unlink 221#define sem_wait _sem_wait 222#define sendmsg _sendmsg 223#define sendto _sendto 224#define setsockopt _setsockopt 225/*#define sigaction _sigaction*/ 226#define sigprocmask _sigprocmask 227#define sigsuspend _sigsuspend 228#define socket _socket 229#define socketpair _socketpair 230#define usleep _usleep 231#define wait4 _wait4 232#define wait6 _wait6 233#define waitpid _waitpid 234#define write _write 235#define writev _writev 236 237 238/* 239 * Other hidden syscalls/functions that libc_r needs to override 240 * but are not used internally by libc. 241 * 242 * XXX - When modifying libc to use one of the following, remove 243 * the prototype from below and place it in the list above. 244 */ 245#if 0 246#define creat _creat 247#define fchflags _fchflags 248#define fchmod _fchmod 249#define ftrylockfile _ftrylockfile 250#define msync _msync 251#define nfssvc _nfssvc 252#define pause _pause 253#define sched_yield _sched_yield 254#define sendfile _sendfile 255#define shutdown _shutdown 256#define sigaltstack _sigaltstack 257#define sigpending _sigpending 258#define sigreturn _sigreturn 259#define sigsetmask _sigsetmask 260#define sleep _sleep 261#define system _system 262#define tcdrain _tcdrain 263#define wait _wait 264#endif 265 266#endif /* _NAMESPACE_H_ */ 267