1 /* 2 * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * $FreeBSD: /repoman/r/ncvs/src/lib/libc/include/un-namespace.h,v 1.1 2001/01/24 13:00:09 deischen Exp $ 27 */ 28 29 #ifndef _UN_NAMESPACE_H_ 30 #define _UN_NAMESPACE_H_ 31 32 #undef accept 33 #undef bind 34 #undef close 35 #undef connect 36 #undef dup 37 #undef dup2 38 #undef execve 39 #undef fcntl 40 #undef flock 41 #undef flockfile 42 #undef fstat 43 #undef fstatfs 44 #undef fsync 45 #undef funlockfile 46 #undef getdirentries 47 #undef getlogin 48 #undef getpeername 49 #undef getprogname 50 #undef getsockname 51 #undef getsockopt 52 #undef ioctl 53 #undef kevent 54 #undef listen 55 #undef nanosleep 56 #undef open 57 #undef openat 58 #undef unlink 59 #undef unlinkat 60 #undef poll 61 #undef ppoll 62 #undef pthread_atfork 63 #undef pthread_attr_destroy 64 #undef pthread_attr_get_np 65 #undef pthread_attr_getaffinity_np 66 #undef pthread_attr_getdetachstate 67 #undef pthread_attr_getguardsize 68 #undef pthread_attr_getinheritsched 69 #undef pthread_attr_getschedparam 70 #undef pthread_attr_getschedpolicy 71 #undef pthread_attr_getscope 72 #undef pthread_attr_getstack 73 #undef pthread_attr_getstackaddr 74 #undef pthread_attr_getstacksize 75 #undef pthread_attr_init 76 #undef pthread_attr_setaffinity_np 77 #undef pthread_attr_setcreatesuspend_np 78 #undef pthread_attr_setdetachstate 79 #undef pthread_attr_setguardsize 80 #undef pthread_attr_setinheritsched 81 #undef pthread_attr_setschedparam 82 #undef pthread_attr_setschedpolicy 83 #undef pthread_attr_setscope 84 #undef pthread_attr_setstack 85 #undef pthread_attr_setstackaddr 86 #undef pthread_attr_setstacksize 87 #undef pthread_barrier_destroy 88 #undef pthread_barrier_init 89 #undef pthread_barrier_wait 90 #undef pthread_barrierattr_destroy 91 #undef pthread_barrierattr_getpshared 92 #undef pthread_barrierattr_init 93 #undef pthread_barrierattr_setpshared 94 #undef pthread_cancel 95 #undef pthread_cleanup_pop 96 #undef pthread_cleanup_push 97 #undef pthread_cond_broadcast 98 #undef pthread_cond_destroy 99 #undef pthread_cond_init 100 #undef pthread_cond_signal 101 #undef pthread_cond_timedwait 102 #undef pthread_cond_wait 103 #undef pthread_condattr_destroy 104 #undef pthread_condattr_getclock 105 #undef pthread_condattr_getpshared 106 #undef pthread_condattr_init 107 #undef pthread_condattr_setclock 108 #undef pthread_condattr_setpshared 109 #undef pthread_create 110 #undef pthread_detach 111 #undef pthread_equal 112 #undef pthread_exit 113 #undef pthread_getaffinity_np 114 #undef pthread_getconcurrency 115 #undef pthread_getcpuclockid 116 #undef pthread_getprio 117 #undef pthread_getschedparam 118 #undef pthread_getspecific 119 #undef pthread_getthreadid_np 120 #undef pthread_join 121 #undef pthread_key_create 122 #undef pthread_key_delete 123 #undef pthread_kill 124 #undef pthread_main_np 125 #undef pthread_multi_np 126 #undef pthread_mutex_destroy 127 #undef pthread_mutex_getprioceiling 128 #undef pthread_mutex_init 129 #undef pthread_mutex_lock 130 #undef pthread_mutex_setprioceiling 131 #undef pthread_mutex_timedlock 132 #undef pthread_mutex_trylock 133 #undef pthread_mutex_unlock 134 #undef pthread_mutexattr_destroy 135 #undef pthread_mutexattr_getkind_np 136 #undef pthread_mutexattr_getprioceiling 137 #undef pthread_mutexattr_getprotocol 138 #undef pthread_mutexattr_getpshared 139 #undef pthread_mutexattr_gettype 140 #undef pthread_mutexattr_init 141 #undef pthread_mutexattr_setkind_np 142 #undef pthread_mutexattr_setprioceiling 143 #undef pthread_mutexattr_setprotocol 144 #undef pthread_mutexattr_setpshared 145 #undef pthread_mutexattr_settype 146 #undef pthread_once 147 #undef pthread_resume_all_np 148 #undef pthread_resume_np 149 #undef pthread_rwlock_destroy 150 #undef pthread_rwlock_init 151 #undef pthread_rwlock_rdlock 152 #undef pthread_rwlock_timedrdlock 153 #undef pthread_rwlock_timedwrlock 154 #undef pthread_rwlock_tryrdlock 155 #undef pthread_rwlock_trywrlock 156 #undef pthread_rwlock_unlock 157 #undef pthread_rwlock_wrlock 158 #undef pthread_rwlockattr_destroy 159 #undef pthread_rwlockattr_getpshared 160 #undef pthread_rwlockattr_init 161 #undef pthread_rwlockattr_setpshared 162 #undef pthread_self 163 #undef pthread_set_name_np 164 #undef pthread_setaffinity_np 165 #undef pthread_setcancelstate 166 #undef pthread_setcanceltype 167 #undef pthread_setconcurrency 168 #undef pthread_setprio 169 #undef pthread_setschedparam 170 #undef pthread_setspecific 171 #undef pthread_sigmask 172 #undef pthread_single_np 173 #undef pthread_spin_destroy 174 #undef pthread_spin_init 175 #undef pthread_spin_lock 176 #undef pthread_spin_trylock 177 #undef pthread_spin_unlock 178 #undef pthread_suspend_all_np 179 #undef pthread_suspend_np 180 #undef pthread_switch_add_np 181 #undef pthread_switch_delete_np 182 #undef pthread_testcancel 183 #undef pthread_timedjoin_np 184 #undef pthread_yield 185 #undef read 186 #undef readv 187 #undef recvfrom 188 #undef recvmsg 189 #undef select 190 #undef sem_close 191 #undef sem_destroy 192 #undef sem_getvalue 193 #undef sem_init 194 #undef sem_open 195 #undef sem_post 196 #undef sem_timedwait 197 #undef sem_trywait 198 #undef sem_unlink 199 #undef sem_wait 200 #undef sendmsg 201 #undef sendto 202 #undef setsockopt 203 #undef sigaction 204 #undef sigprocmask 205 #undef sigsuspend 206 #undef socket 207 #undef socketpair 208 #undef usleep 209 #undef wait4 210 #undef wait6 211 #undef waitpid 212 #undef waitid 213 #undef write 214 #undef writev 215 216 #if 0 217 #undef creat 218 #undef fchflags 219 #undef fchmod 220 #undef fpathconf 221 #undef ftrylockfile 222 #undef msync 223 #undef nfssvc 224 #undef pause 225 #undef sched_yield 226 #undef sendfile 227 #undef shutdown 228 #undef sigaltstack 229 #undef signanosleep 230 #undef sigpending 231 #undef sigreturn 232 #undef sigsetmask 233 #undef sleep 234 #undef system 235 #undef tcdrain 236 #undef wait 237 #endif /* 0 */ 238 239 #ifdef _SIGNAL_H_ 240 int _sigaction(int, const struct sigaction *, struct sigaction *); 241 #endif 242 243 #ifdef _SYS_EVENT_H_ 244 int _kevent(int, const struct kevent *, int, struct kevent *, 245 int, const struct timespec *); 246 #endif 247 248 #ifdef _SYS_FCNTL_H_ 249 int _flock(int, int); 250 #endif 251 252 #undef err 253 #undef warn 254 #undef nsdispatch 255 256 #endif /* _UN_NAMESPACE_H_ */ 257 258