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$ 27 */ 28 29 #ifndef _UN_NAMESPACE_H_ 30 #define _UN_NAMESPACE_H_ 31 32 #undef accept 33 #undef __acl_aclcheck_fd 34 #undef __acl_delete_fd 35 #undef __acl_get_fd 36 #undef __acl_set_fd 37 #undef bind 38 #undef __cap_get_fd 39 #undef __cap_set_fd 40 #undef close 41 #undef connect 42 #undef dup 43 #undef dup2 44 #undef execve 45 #undef fcntl 46 #undef flock 47 #undef flockfile 48 #undef fpathconf 49 #undef fstat 50 #undef fstatfs 51 #undef fsync 52 #undef funlockfile 53 #undef getdirentries 54 #undef getlogin 55 #undef getpeername 56 #undef getprogname 57 #undef getsockname 58 #undef getsockopt 59 #undef ioctl 60 #undef kevent 61 #undef listen 62 #undef nanosleep 63 #undef open 64 #undef poll 65 #undef pthread_atfork 66 #undef pthread_attr_destroy 67 #undef pthread_attr_getdetachstate 68 #undef pthread_attr_getguardsize 69 #undef pthread_attr_getstackaddr 70 #undef pthread_attr_getstacksize 71 #undef pthread_attr_getinheritsched 72 #undef pthread_attr_getschedparam 73 #undef pthread_attr_getschedpolicy 74 #undef pthread_attr_getscope 75 #undef pthread_attr_init 76 #undef pthread_attr_setdetachstate 77 #undef pthread_attr_setguardsize 78 #undef pthread_attr_setstackaddr 79 #undef pthread_attr_setstacksize 80 #undef pthread_attr_setinheritsched 81 #undef pthread_attr_setschedparam 82 #undef pthread_attr_setschedpolicy 83 #undef pthread_attr_setscope 84 #undef pthread_cancel 85 #undef pthread_cleanup_pop 86 #undef pthread_cleanup_push 87 #undef pthread_cond_broadcast 88 #undef pthread_cond_destroy 89 #undef pthread_cond_init 90 #undef pthread_cond_signal 91 #undef pthread_cond_timedwait 92 #undef pthread_cond_wait 93 #undef pthread_detach 94 #undef pthread_equal 95 #undef pthread_exit 96 #undef pthread_getspecific 97 #undef pthread_join 98 #undef pthread_kill 99 #undef pthread_key_create 100 #undef pthread_key_delete 101 #undef pthread_main_np 102 #undef pthread_mutex_destroy 103 #undef pthread_mutex_init 104 #undef pthread_mutex_lock 105 #undef pthread_mutex_trylock 106 #undef pthread_mutex_unlock 107 #undef pthread_mutexattr_destroy 108 #undef pthread_mutexattr_init 109 #undef pthread_mutexattr_destroy 110 #undef pthread_mutexattr_settype 111 #undef pthread_once 112 #undef pthread_rwlock_destroy 113 #undef pthread_rwlock_init 114 #undef pthread_rwlock_rdlock 115 #undef pthread_rwlock_wrlock 116 #undef pthread_rwlock_tryrdlock 117 #undef pthread_rwlock_trywrlock 118 #undef pthread_rwlock_unlock 119 #undef pthread_self 120 #undef pthread_setcancelstate 121 #undef pthread_setcanceltype 122 #undef pthread_setspecific 123 #undef pthread_sigmask 124 #undef pthread_testcancel 125 #undef read 126 #undef readv 127 #undef recvfrom 128 #undef recvmsg 129 #undef select 130 #undef sendmsg 131 #undef sendto 132 #undef setsockopt 133 #undef sigaction 134 #undef sigprocmask 135 #undef sigsuspend 136 #undef socket 137 #undef socketpair 138 #undef usleep 139 #undef wait4 140 #undef waitpid 141 #undef write 142 #undef writev 143 144 #if 0 145 #undef creat 146 #undef fchflags 147 #undef fchmod 148 #undef ftrylockfile 149 #undef msync 150 #undef nfssvc 151 #undef pause 152 #undef pthread_rwlockattr_init 153 #undef pthread_rwlockattr_destroy 154 #undef sched_yield 155 #undef sendfile 156 #undef shutdown 157 #undef sigaltstack 158 #undef sigpending 159 #undef sigreturn 160 #undef sigsetmask 161 #undef sleep 162 #undef system 163 #undef tcdrain 164 #undef wait 165 #endif /* 0 */ 166 167 #ifdef _SIGNAL_H_ 168 int _sigaction(int, const struct sigaction *, struct sigaction *); 169 #endif 170 171 #ifdef _SYS_EVENT_H_ 172 int _kevent(int, const struct kevent *, int, struct kevent *, 173 int, const struct timespec *); 174 #endif 175 176 #ifdef _SYS_FCNTL_H_ 177 int _flock(int, int); 178 #endif 179 180 #undef err 181 #undef warn 182 #undef nsdispatch 183 184 #endif /* _UN_NAMESPACE_H_ */ 185