Add all pthread functions into libc namespace.
[dragonfly.git] / lib / libc / include / un-namespace.h
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  * $DragonFly: src/lib/libc/include/un-namespace.h,v 1.2 2006/04/06 13:02:12 davidxu Exp $
28  */
29
30 #ifndef _UN_NAMESPACE_H_
31 #define _UN_NAMESPACE_H_
32
33 #undef          accept
34 #undef          bind
35 #undef          close
36 #undef          connect
37 #undef          dup
38 #undef          dup2
39 #undef          execve
40 #undef          fcntl
41 #undef          flock
42 #undef          flockfile
43 #undef          fstat
44 #undef          fstatfs
45 #undef          fsync
46 #undef          funlockfile
47 #undef          getdirentries
48 #undef          getlogin
49 #undef          getpeername
50 #undef          getsockname
51 #undef          getsockopt
52 #undef          ioctl
53 #undef          kevent
54 #undef          listen
55 #undef          nanosleep
56 #undef          open
57 #undef          pthread_atfork
58 #undef          pthread_attr_destroy
59 #undef          pthread_attr_get_np
60 #undef          pthread_attr_getdetachstate
61 #undef          pthread_attr_getguardsize
62 #undef          pthread_attr_getinheritsched
63 #undef          pthread_attr_getschedparam
64 #undef          pthread_attr_getschedpolicy
65 #undef          pthread_attr_getscope
66 #undef          pthread_attr_getstack
67 #undef          pthread_attr_getstackaddr
68 #undef          pthread_attr_getstacksize
69 #undef          pthread_attr_init
70 #undef          pthread_attr_setcreatesuspend_np
71 #undef          pthread_attr_setdetachstate
72 #undef          pthread_attr_setguardsize
73 #undef          pthread_attr_setinheritsched
74 #undef          pthread_attr_setschedparam
75 #undef          pthread_attr_setschedpolicy
76 #undef          pthread_attr_setscope
77 #undef          pthread_attr_setstack
78 #undef          pthread_attr_setstackaddr
79 #undef          pthread_attr_setstacksize
80 #undef          pthread_barrier_destroy
81 #undef          pthread_barrier_init
82 #undef          pthread_barrier_wait
83 #undef          pthread_barrierattr_destroy
84 #undef          pthread_barrierattr_getpshared
85 #undef          pthread_barrierattr_init
86 #undef          pthread_barrierattr_setpshared
87 #undef          pthread_cancel
88 #undef          pthread_cleanup_pop
89 #undef          pthread_cleanup_push
90 #undef          pthread_cond_broadcast
91 #undef          pthread_cond_destroy
92 #undef          pthread_cond_init
93 #undef          pthread_cond_signal
94 #undef          pthread_cond_timedwait
95 #undef          pthread_cond_wait
96 #undef          pthread_condattr_destroy
97 #undef          pthread_condattr_getclock
98 #undef          pthread_condattr_getpshared
99 #undef          pthread_condattr_init
100 #undef          pthread_condattr_setclock
101 #undef          pthread_condattr_setpshared
102 #undef          pthread_create
103 #undef          pthread_detach
104 #undef          pthread_equal
105 #undef          pthread_exit
106 #undef          pthread_getconcurrency
107 #undef          pthread_getprio
108 #undef          pthread_getschedparam
109 #undef          pthread_getspecific
110 #undef          pthread_join
111 #undef          pthread_key_create
112 #undef          pthread_key_delete
113 #undef          pthread_kill
114 #undef          pthread_main_np
115 #undef          pthread_multi_np
116 #undef          pthread_mutex_destroy
117 #undef          pthread_mutex_getprioceiling
118 #undef          pthread_mutex_init
119 #undef          pthread_mutex_lock
120 #undef          pthread_mutex_setprioceiling
121 #undef          pthread_mutex_timedlock
122 #undef          pthread_mutex_trylock
123 #undef          pthread_mutex_unlock
124 #undef          pthread_mutexattr_destroy
125 #undef          pthread_mutexattr_getkind_np
126 #undef          pthread_mutexattr_getprioceiling
127 #undef          pthread_mutexattr_getprotocol
128 #undef          pthread_mutexattr_getpshared
129 #undef          pthread_mutexattr_gettype
130 #undef          pthread_mutexattr_init
131 #undef          pthread_mutexattr_setkind_np
132 #undef          pthread_mutexattr_setprioceiling
133 #undef          pthread_mutexattr_setprotocol
134 #undef          pthread_mutexattr_setpshared
135 #undef          pthread_mutexattr_settype
136 #undef          pthread_once
137 #undef          pthread_resume_all_np
138 #undef          pthread_resume_np
139 #undef          pthread_rwlock_destroy
140 #undef          pthread_rwlock_init
141 #undef          pthread_rwlock_rdlock
142 #undef          pthread_rwlock_timedrdlock
143 #undef          pthread_rwlock_timedwrlock
144 #undef          pthread_rwlock_tryrdlock
145 #undef          pthread_rwlock_trywrlock
146 #undef          pthread_rwlock_unlock
147 #undef          pthread_rwlock_wrlock
148 #undef          pthread_rwlockattr_destroy
149 #undef          pthread_rwlockattr_getpshared
150 #undef          pthread_rwlockattr_init
151 #undef          pthread_rwlockattr_setpshared
152 #undef          pthread_self
153 #undef          pthread_set_name_np
154 #undef          pthread_setcancelstate
155 #undef          pthread_setcanceltype
156 #undef          pthread_setconcurrency
157 #undef          pthread_setprio
158 #undef          pthread_setschedparam
159 #undef          pthread_setspecific
160 #undef          pthread_sigmask
161 #undef          pthread_single_np
162 #undef          pthread_spin_destroy
163 #undef          pthread_spin_init
164 #undef          pthread_spin_lock
165 #undef          pthread_spin_trylock
166 #undef          pthread_spin_unlock
167 #undef          pthread_suspend_all_np
168 #undef          pthread_suspend_np
169 #undef          pthread_switch_add_np
170 #undef          pthread_switch_delete_np
171 #undef          pthread_testcancel
172 #undef          pthread_timedjoin_np
173 #undef          pthread_yield
174 #undef          read
175 #undef          readv
176 #undef          recvfrom
177 #undef          recvmsg
178 #undef          select
179 #undef          sem_close
180 #undef          sem_destroy
181 #undef          sem_getvalue
182 #undef          sem_init
183 #undef          sem_open
184 #undef          sem_post
185 #undef          sem_timedwait
186 #undef          sem_trywait
187 #undef          sem_unlink
188 #undef          sem_wait
189 #undef          sendmsg
190 #undef          sendto
191 #undef          setsockopt
192 #undef          sigaction
193 #undef          sigprocmask
194 #undef          sigsuspend
195 #undef          socket
196 #undef          socketpair
197 #undef          wait4
198 #undef          write
199 #undef          writev
200
201 #if 0
202 #undef          creat
203 #undef          fchflags
204 #undef          fchmod
205 #undef          fpathconf
206 #undef          ftrylockfile
207 #undef          msync
208 #undef          nfssvc
209 #undef          pause
210 #undef          poll
211 #undef          pthread_rwlock_destroy
212 #undef          pthread_rwlock_init
213 #undef          pthread_rwlock_rdlock
214 #undef          pthread_rwlock_tryrdlock
215 #undef          pthread_rwlock_trywrlock
216 #undef          pthread_rwlock_unlock
217 #undef          pthread_rwlock_wrlock
218 #undef          pthread_rwlockattr_init
219 #undef          pthread_rwlockattr_destroy
220 #undef          pthread_self
221 #undef          sched_yield
222 #undef          sendfile
223 #undef          shutdown
224 #undef          sigaltstack
225 #undef          signanosleep
226 #undef          sigpending
227 #undef          sigreturn
228 #undef          sigsetmask
229 #undef          sleep
230 #undef          system
231 #undef          tcdrain
232 #undef          wait
233 #undef          waitpid
234 #endif  /* 0 */
235
236 #ifdef _SIGNAL_H_
237 int             _sigaction(int, const struct sigaction *, struct sigaction *);
238 #endif
239
240 #ifdef _SYS_EVENT_H_
241 int             _kevent(int, const struct kevent *, int, struct kevent *,
242                     int, const struct timespec *);
243 #endif
244
245 #ifdef _SYS_FCNTL_H_
246 int             _flock(int, int);
247 #endif
248
249 #endif  /* _UN_NAMESPACE_H_ */
250