namespace.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms, with or without
00006  * modification, are permitted provided that the following conditions
00007  * are met:
00008  * 1. Redistributions of source code must retain the above copyright
00009  *    notice, this list of conditions and the following disclaimer.
00010  * 2. Redistributions in binary form must reproduce the above copyright
00011  *    notice, this list of conditions and the following disclaimer in the
00012  *    documentation and/or other materials provided with the distribution.
00013  *
00014  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
00015  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00016  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00017  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00018  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00019  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00020  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00021  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00022  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00023  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00024  * SUCH DAMAGE.
00025  *
00026  * $FreeBSD: src/lib/libc/include/namespace.h,v 1.16 2003/05/01 19:03:13 nectar Exp $
00027  */
00028 
00029 #ifndef _NAMESPACE_H_
00030 #define _NAMESPACE_H_
00031 
00032 /*
00033  * Adjust names so that headers declare "hidden" names.
00034  *
00035  * README: When modifying this file don't forget to make the appropriate
00036  *         changes in un-namespace.h!!!
00037  */
00038 
00039 /*
00040  * ISO C (C90) section.  Most names in libc aren't in ISO C, so they
00041  * should be here.  Most aren't here...
00042  */
00043 #define         err                             _err
00044 #define         warn                            _warn
00045 #define         nsdispatch                      _nsdispatch
00046 
00047 /*
00048  * Prototypes for syscalls/functions that need to be overridden
00049  * in libc_r/libpthread.
00050  */
00051 #define         accept                          _accept
00052 #define         __acl_aclcheck_fd               ___acl_aclcheck_fd
00053 #define         __acl_delete_fd                 ___acl_delete_fd
00054 #define         __acl_get_fd                    ___acl_get_fd
00055 #define         __acl_set_fd                    ___acl_set_fd
00056 #define         bind                            _bind
00057 #define         __cap_get_fd                    ___cap_get_fd
00058 #define         __cap_set_fd                    ___cap_set_fd
00059 #define         close                           _close
00060 #define         connect                         _connect
00061 #define         dup                             _dup
00062 #define         dup2                            _dup2
00063 #define         execve                          _execve
00064 #define         fcntl                           _fcntl
00065 /*#define               flock                           _flock */
00066 #define         flockfile                       _flockfile
00067 #define         fpathconf                       _fpathconf
00068 #define         fstat                           _fstat
00069 #define         fstatfs                         _fstatfs
00070 #define         fsync                           _fsync
00071 #define         funlockfile                     _funlockfile
00072 #define         getdirentries                   _getdirentries
00073 #define         getlogin                        _getlogin
00074 #define         getpeername                     _getpeername
00075 #define         getprogname                     _getprogname
00076 #define         getsockname                     _getsockname
00077 #define         getsockopt                      _getsockopt
00078 #define         ioctl                           _ioctl
00079 /* #define              kevent                          _kevent */
00080 #define         listen                          _listen
00081 #define         nanosleep                       _nanosleep
00082 #define         open                            _open
00083 #define         poll                            _poll
00084 #define         pthread_cond_broadcast          _pthread_cond_broadcast
00085 #define         pthread_cond_destroy            _pthread_cond_destroy
00086 #define         pthread_cond_init               _pthread_cond_init
00087 #define         pthread_cond_signal             _pthread_cond_signal
00088 #define         pthread_cond_timedwait          _pthread_cond_timedwait
00089 #define         pthread_cond_wait               _pthread_cond_wait
00090 #define         pthread_exit                    _pthread_exit
00091 #define         pthread_getspecific             _pthread_getspecific
00092 #define         pthread_key_create              _pthread_key_create
00093 #define         pthread_key_delete              _pthread_key_delete
00094 #define         pthread_main_np                 _pthread_main_np
00095 #define         pthread_mutex_destroy           _pthread_mutex_destroy
00096 #define         pthread_mutex_init              _pthread_mutex_init
00097 #define         pthread_mutex_lock              _pthread_mutex_lock
00098 #define         pthread_mutex_trylock           _pthread_mutex_trylock
00099 #define         pthread_mutex_unlock            _pthread_mutex_unlock
00100 #define         pthread_mutexattr_destroy       _pthread_mutexattr_destroy
00101 #define         pthread_mutexattr_init          _pthread_mutexattr_init
00102 #define         pthread_mutexattr_settype       _pthread_mutexattr_settype
00103 #define         pthread_once                    _pthread_once
00104 #define         pthread_rwlock_destroy          _pthread_rwlock_destroy
00105 #define         pthread_rwlock_init             _pthread_rwlock_init
00106 #define         pthread_rwlock_rdlock           _pthread_rwlock_rdlock
00107 #define         pthread_rwlock_wrlock           _pthread_rwlock_wrlock
00108 #define         pthread_rwlock_tryrdlock        _pthread_rwlock_tryrdlock
00109 #define         pthread_rwlock_trywrlock        _pthread_rwlock_trywrlock
00110 #define         pthread_rwlock_unlock           _pthread_rwlock_unlock
00111 #define         pthread_self                    _pthread_self
00112 #define         pthread_setspecific             _pthread_setspecific
00113 #define         pthread_sigmask                 _pthread_sigmask
00114 #define         read                            _read
00115 #define         readv                           _readv
00116 #define         recvfrom                        _recvfrom
00117 #define         recvmsg                         _recvmsg
00118 #define         select                          _select
00119 #define         sendmsg                         _sendmsg
00120 #define         sendto                          _sendto
00121 #define         setsockopt                      _setsockopt
00122 /*#define               sigaction                       _sigaction*/
00123 #define         sigprocmask                     _sigprocmask
00124 #define         sigsuspend                      _sigsuspend
00125 #define         socket                          _socket
00126 #define         socketpair                      _socketpair
00127 #define         wait4                           _wait4
00128 #define         waitpid                         _waitpid
00129 #define         write                           _write
00130 #define         writev                          _writev
00131 
00132 
00133 /*
00134  * Other hidden syscalls/functions that libc_r needs to override
00135  * but are not used internally by libc.
00136  *
00137  * XXX - When modifying libc to use one of the following, remove
00138  * the prototype from below and place it in the list above.
00139  */
00140 #if 0
00141 #define         creat                           _creat
00142 #define         fchflags                        _fchflags
00143 #define         fchmod                          _fchmod
00144 #define         ftrylockfile                    _ftrylockfile
00145 #define         msync                           _msync
00146 #define         nfssvc                          _nfssvc
00147 #define         pause                           _pause
00148 #define         pthread_rwlockattr_init         _pthread_rwlockattr_init
00149 #define         pthread_rwlockattr_destroy      _pthread_rwlockattr_destroy
00150 #define         sched_yield                     _sched_yield
00151 #define         sendfile                        _sendfile
00152 #define         shutdown                        _shutdown
00153 #define         sigaltstack                     _sigaltstack
00154 #define         sigpending                      _sigpending
00155 #define         sigreturn                       _sigreturn
00156 #define         sigsetmask                      _sigsetmask
00157 #define         sleep                           _sleep
00158 #define         system                          _system
00159 #define         tcdrain                         _tcdrain
00160 #define         wait                            _wait
00161 #endif
00162 
00163 #endif /* _NAMESPACE_H_ */

Generated on Fri Apr 14 22:57:27 2006 for minix by  doxygen 1.4.6