xref: /dflybsd-src/lib/libc/include/un-namespace.h (revision bc2f376e2608506df8336e78a0b706299c65b0d4)
117ea2221SMatthew Dillon /*
217ea2221SMatthew Dillon  * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
317ea2221SMatthew Dillon  * All rights reserved.
417ea2221SMatthew Dillon  *
517ea2221SMatthew Dillon  * Redistribution and use in source and binary forms, with or without
617ea2221SMatthew Dillon  * modification, are permitted provided that the following conditions
717ea2221SMatthew Dillon  * are met:
817ea2221SMatthew Dillon  * 1. Redistributions of source code must retain the above copyright
917ea2221SMatthew Dillon  *    notice, this list of conditions and the following disclaimer.
1017ea2221SMatthew Dillon  * 2. Redistributions in binary form must reproduce the above copyright
1117ea2221SMatthew Dillon  *    notice, this list of conditions and the following disclaimer in the
1217ea2221SMatthew Dillon  *    documentation and/or other materials provided with the distribution.
1317ea2221SMatthew Dillon  *
1417ea2221SMatthew Dillon  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1517ea2221SMatthew Dillon  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1617ea2221SMatthew Dillon  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1717ea2221SMatthew Dillon  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1817ea2221SMatthew Dillon  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1917ea2221SMatthew Dillon  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2017ea2221SMatthew Dillon  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2117ea2221SMatthew Dillon  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2217ea2221SMatthew Dillon  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2317ea2221SMatthew Dillon  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2417ea2221SMatthew Dillon  * SUCH DAMAGE.
2517ea2221SMatthew Dillon  *
2617ea2221SMatthew Dillon  * $FreeBSD: /repoman/r/ncvs/src/lib/libc/include/un-namespace.h,v 1.1 2001/01/24 13:00:09 deischen Exp $
27*bc2f376eSDavid Xu  * $DragonFly: src/lib/libc/include/un-namespace.h,v 1.2 2006/04/06 13:02:12 davidxu Exp $
2817ea2221SMatthew Dillon  */
2917ea2221SMatthew Dillon 
3017ea2221SMatthew Dillon #ifndef _UN_NAMESPACE_H_
3117ea2221SMatthew Dillon #define _UN_NAMESPACE_H_
3217ea2221SMatthew Dillon 
3317ea2221SMatthew Dillon #undef		accept
3417ea2221SMatthew Dillon #undef		bind
3517ea2221SMatthew Dillon #undef		close
3617ea2221SMatthew Dillon #undef		connect
3717ea2221SMatthew Dillon #undef		dup
3817ea2221SMatthew Dillon #undef		dup2
3917ea2221SMatthew Dillon #undef		execve
4017ea2221SMatthew Dillon #undef		fcntl
4117ea2221SMatthew Dillon #undef		flock
4217ea2221SMatthew Dillon #undef		flockfile
4317ea2221SMatthew Dillon #undef		fstat
4417ea2221SMatthew Dillon #undef		fstatfs
4517ea2221SMatthew Dillon #undef		fsync
4617ea2221SMatthew Dillon #undef		funlockfile
4717ea2221SMatthew Dillon #undef		getdirentries
4817ea2221SMatthew Dillon #undef		getlogin
4917ea2221SMatthew Dillon #undef		getpeername
5017ea2221SMatthew Dillon #undef		getsockname
5117ea2221SMatthew Dillon #undef		getsockopt
5217ea2221SMatthew Dillon #undef		ioctl
5317ea2221SMatthew Dillon #undef		kevent
5417ea2221SMatthew Dillon #undef		listen
5517ea2221SMatthew Dillon #undef		nanosleep
5617ea2221SMatthew Dillon #undef		open
57*bc2f376eSDavid Xu #undef		pthread_atfork
58*bc2f376eSDavid Xu #undef		pthread_attr_destroy
59*bc2f376eSDavid Xu #undef		pthread_attr_get_np
60*bc2f376eSDavid Xu #undef		pthread_attr_getdetachstate
61*bc2f376eSDavid Xu #undef		pthread_attr_getguardsize
62*bc2f376eSDavid Xu #undef		pthread_attr_getinheritsched
63*bc2f376eSDavid Xu #undef		pthread_attr_getschedparam
64*bc2f376eSDavid Xu #undef		pthread_attr_getschedpolicy
65*bc2f376eSDavid Xu #undef		pthread_attr_getscope
66*bc2f376eSDavid Xu #undef		pthread_attr_getstack
67*bc2f376eSDavid Xu #undef		pthread_attr_getstackaddr
68*bc2f376eSDavid Xu #undef		pthread_attr_getstacksize
69*bc2f376eSDavid Xu #undef		pthread_attr_init
70*bc2f376eSDavid Xu #undef		pthread_attr_setcreatesuspend_np
71*bc2f376eSDavid Xu #undef		pthread_attr_setdetachstate
72*bc2f376eSDavid Xu #undef		pthread_attr_setguardsize
73*bc2f376eSDavid Xu #undef		pthread_attr_setinheritsched
74*bc2f376eSDavid Xu #undef		pthread_attr_setschedparam
75*bc2f376eSDavid Xu #undef		pthread_attr_setschedpolicy
76*bc2f376eSDavid Xu #undef		pthread_attr_setscope
77*bc2f376eSDavid Xu #undef		pthread_attr_setstack
78*bc2f376eSDavid Xu #undef		pthread_attr_setstackaddr
79*bc2f376eSDavid Xu #undef		pthread_attr_setstacksize
80*bc2f376eSDavid Xu #undef		pthread_barrier_destroy
81*bc2f376eSDavid Xu #undef		pthread_barrier_init
82*bc2f376eSDavid Xu #undef		pthread_barrier_wait
83*bc2f376eSDavid Xu #undef		pthread_barrierattr_destroy
84*bc2f376eSDavid Xu #undef		pthread_barrierattr_getpshared
85*bc2f376eSDavid Xu #undef		pthread_barrierattr_init
86*bc2f376eSDavid Xu #undef		pthread_barrierattr_setpshared
87*bc2f376eSDavid Xu #undef		pthread_cancel
88*bc2f376eSDavid Xu #undef		pthread_cleanup_pop
89*bc2f376eSDavid Xu #undef		pthread_cleanup_push
90*bc2f376eSDavid Xu #undef		pthread_cond_broadcast
91*bc2f376eSDavid Xu #undef		pthread_cond_destroy
92*bc2f376eSDavid Xu #undef		pthread_cond_init
93*bc2f376eSDavid Xu #undef		pthread_cond_signal
94*bc2f376eSDavid Xu #undef		pthread_cond_timedwait
95*bc2f376eSDavid Xu #undef		pthread_cond_wait
96*bc2f376eSDavid Xu #undef		pthread_condattr_destroy
97*bc2f376eSDavid Xu #undef		pthread_condattr_getclock
98*bc2f376eSDavid Xu #undef		pthread_condattr_getpshared
99*bc2f376eSDavid Xu #undef		pthread_condattr_init
100*bc2f376eSDavid Xu #undef		pthread_condattr_setclock
101*bc2f376eSDavid Xu #undef		pthread_condattr_setpshared
102*bc2f376eSDavid Xu #undef		pthread_create
103*bc2f376eSDavid Xu #undef		pthread_detach
104*bc2f376eSDavid Xu #undef		pthread_equal
105*bc2f376eSDavid Xu #undef		pthread_exit
106*bc2f376eSDavid Xu #undef		pthread_getconcurrency
107*bc2f376eSDavid Xu #undef		pthread_getprio
108*bc2f376eSDavid Xu #undef		pthread_getschedparam
10917ea2221SMatthew Dillon #undef		pthread_getspecific
110*bc2f376eSDavid Xu #undef		pthread_join
11117ea2221SMatthew Dillon #undef		pthread_key_create
11217ea2221SMatthew Dillon #undef		pthread_key_delete
113*bc2f376eSDavid Xu #undef		pthread_kill
114*bc2f376eSDavid Xu #undef		pthread_main_np
115*bc2f376eSDavid Xu #undef		pthread_multi_np
11617ea2221SMatthew Dillon #undef		pthread_mutex_destroy
117*bc2f376eSDavid Xu #undef		pthread_mutex_getprioceiling
11817ea2221SMatthew Dillon #undef		pthread_mutex_init
11917ea2221SMatthew Dillon #undef		pthread_mutex_lock
120*bc2f376eSDavid Xu #undef		pthread_mutex_setprioceiling
121*bc2f376eSDavid Xu #undef		pthread_mutex_timedlock
12217ea2221SMatthew Dillon #undef		pthread_mutex_trylock
12317ea2221SMatthew Dillon #undef		pthread_mutex_unlock
12417ea2221SMatthew Dillon #undef		pthread_mutexattr_destroy
125*bc2f376eSDavid Xu #undef		pthread_mutexattr_getkind_np
126*bc2f376eSDavid Xu #undef		pthread_mutexattr_getprioceiling
127*bc2f376eSDavid Xu #undef		pthread_mutexattr_getprotocol
128*bc2f376eSDavid Xu #undef		pthread_mutexattr_getpshared
129*bc2f376eSDavid Xu #undef		pthread_mutexattr_gettype
130*bc2f376eSDavid Xu #undef		pthread_mutexattr_init
131*bc2f376eSDavid Xu #undef		pthread_mutexattr_setkind_np
132*bc2f376eSDavid Xu #undef		pthread_mutexattr_setprioceiling
133*bc2f376eSDavid Xu #undef		pthread_mutexattr_setprotocol
134*bc2f376eSDavid Xu #undef		pthread_mutexattr_setpshared
13517ea2221SMatthew Dillon #undef		pthread_mutexattr_settype
13617ea2221SMatthew Dillon #undef		pthread_once
137*bc2f376eSDavid Xu #undef		pthread_resume_all_np
138*bc2f376eSDavid Xu #undef		pthread_resume_np
139*bc2f376eSDavid Xu #undef		pthread_rwlock_destroy
140*bc2f376eSDavid Xu #undef		pthread_rwlock_init
141*bc2f376eSDavid Xu #undef		pthread_rwlock_rdlock
142*bc2f376eSDavid Xu #undef		pthread_rwlock_timedrdlock
143*bc2f376eSDavid Xu #undef		pthread_rwlock_timedwrlock
144*bc2f376eSDavid Xu #undef		pthread_rwlock_tryrdlock
145*bc2f376eSDavid Xu #undef		pthread_rwlock_trywrlock
146*bc2f376eSDavid Xu #undef		pthread_rwlock_unlock
147*bc2f376eSDavid Xu #undef		pthread_rwlock_wrlock
148*bc2f376eSDavid Xu #undef		pthread_rwlockattr_destroy
149*bc2f376eSDavid Xu #undef		pthread_rwlockattr_getpshared
150*bc2f376eSDavid Xu #undef		pthread_rwlockattr_init
151*bc2f376eSDavid Xu #undef		pthread_rwlockattr_setpshared
152*bc2f376eSDavid Xu #undef		pthread_self
153*bc2f376eSDavid Xu #undef		pthread_set_name_np
154*bc2f376eSDavid Xu #undef		pthread_setcancelstate
155*bc2f376eSDavid Xu #undef		pthread_setcanceltype
156*bc2f376eSDavid Xu #undef		pthread_setconcurrency
157*bc2f376eSDavid Xu #undef		pthread_setprio
158*bc2f376eSDavid Xu #undef		pthread_setschedparam
15917ea2221SMatthew Dillon #undef		pthread_setspecific
160*bc2f376eSDavid Xu #undef		pthread_sigmask
161*bc2f376eSDavid Xu #undef		pthread_single_np
162*bc2f376eSDavid Xu #undef		pthread_spin_destroy
163*bc2f376eSDavid Xu #undef		pthread_spin_init
164*bc2f376eSDavid Xu #undef		pthread_spin_lock
165*bc2f376eSDavid Xu #undef		pthread_spin_trylock
166*bc2f376eSDavid Xu #undef		pthread_spin_unlock
167*bc2f376eSDavid Xu #undef		pthread_suspend_all_np
168*bc2f376eSDavid Xu #undef		pthread_suspend_np
169*bc2f376eSDavid Xu #undef		pthread_switch_add_np
170*bc2f376eSDavid Xu #undef		pthread_switch_delete_np
171*bc2f376eSDavid Xu #undef		pthread_testcancel
172*bc2f376eSDavid Xu #undef		pthread_timedjoin_np
173*bc2f376eSDavid Xu #undef		pthread_yield
17417ea2221SMatthew Dillon #undef		read
17517ea2221SMatthew Dillon #undef		readv
17617ea2221SMatthew Dillon #undef		recvfrom
17717ea2221SMatthew Dillon #undef		recvmsg
17817ea2221SMatthew Dillon #undef		select
179*bc2f376eSDavid Xu #undef		sem_close
180*bc2f376eSDavid Xu #undef		sem_destroy
181*bc2f376eSDavid Xu #undef		sem_getvalue
182*bc2f376eSDavid Xu #undef		sem_init
183*bc2f376eSDavid Xu #undef		sem_open
184*bc2f376eSDavid Xu #undef		sem_post
185*bc2f376eSDavid Xu #undef		sem_timedwait
186*bc2f376eSDavid Xu #undef		sem_trywait
187*bc2f376eSDavid Xu #undef		sem_unlink
188*bc2f376eSDavid Xu #undef		sem_wait
18917ea2221SMatthew Dillon #undef		sendmsg
19017ea2221SMatthew Dillon #undef		sendto
19117ea2221SMatthew Dillon #undef		setsockopt
19217ea2221SMatthew Dillon #undef		sigaction
19317ea2221SMatthew Dillon #undef		sigprocmask
19417ea2221SMatthew Dillon #undef		sigsuspend
19517ea2221SMatthew Dillon #undef		socket
19617ea2221SMatthew Dillon #undef		socketpair
19717ea2221SMatthew Dillon #undef		wait4
19817ea2221SMatthew Dillon #undef		write
19917ea2221SMatthew Dillon #undef		writev
20017ea2221SMatthew Dillon 
20117ea2221SMatthew Dillon #if 0
20217ea2221SMatthew Dillon #undef		creat
20317ea2221SMatthew Dillon #undef		fchflags
20417ea2221SMatthew Dillon #undef		fchmod
20517ea2221SMatthew Dillon #undef		fpathconf
20617ea2221SMatthew Dillon #undef		ftrylockfile
20717ea2221SMatthew Dillon #undef		msync
20817ea2221SMatthew Dillon #undef		nfssvc
20917ea2221SMatthew Dillon #undef		pause
21017ea2221SMatthew Dillon #undef		poll
21117ea2221SMatthew Dillon #undef		pthread_rwlock_destroy
21217ea2221SMatthew Dillon #undef		pthread_rwlock_init
21317ea2221SMatthew Dillon #undef		pthread_rwlock_rdlock
21417ea2221SMatthew Dillon #undef		pthread_rwlock_tryrdlock
21517ea2221SMatthew Dillon #undef		pthread_rwlock_trywrlock
21617ea2221SMatthew Dillon #undef		pthread_rwlock_unlock
21717ea2221SMatthew Dillon #undef		pthread_rwlock_wrlock
21817ea2221SMatthew Dillon #undef		pthread_rwlockattr_init
21917ea2221SMatthew Dillon #undef		pthread_rwlockattr_destroy
22017ea2221SMatthew Dillon #undef		pthread_self
22117ea2221SMatthew Dillon #undef		sched_yield
22217ea2221SMatthew Dillon #undef		sendfile
22317ea2221SMatthew Dillon #undef		shutdown
22417ea2221SMatthew Dillon #undef		sigaltstack
22517ea2221SMatthew Dillon #undef		signanosleep
22617ea2221SMatthew Dillon #undef		sigpending
22717ea2221SMatthew Dillon #undef		sigreturn
22817ea2221SMatthew Dillon #undef		sigsetmask
22917ea2221SMatthew Dillon #undef		sleep
23017ea2221SMatthew Dillon #undef		system
23117ea2221SMatthew Dillon #undef		tcdrain
23217ea2221SMatthew Dillon #undef		wait
23317ea2221SMatthew Dillon #undef		waitpid
23417ea2221SMatthew Dillon #endif	/* 0 */
23517ea2221SMatthew Dillon 
23617ea2221SMatthew Dillon #ifdef _SIGNAL_H_
23717ea2221SMatthew Dillon int     	_sigaction(int, const struct sigaction *, struct sigaction *);
23817ea2221SMatthew Dillon #endif
23917ea2221SMatthew Dillon 
24017ea2221SMatthew Dillon #ifdef _SYS_EVENT_H_
24117ea2221SMatthew Dillon int		_kevent(int, const struct kevent *, int, struct kevent *,
24217ea2221SMatthew Dillon 		    int, const struct timespec *);
24317ea2221SMatthew Dillon #endif
24417ea2221SMatthew Dillon 
24517ea2221SMatthew Dillon #ifdef _SYS_FCNTL_H_
24617ea2221SMatthew Dillon int		_flock(int, int);
24717ea2221SMatthew Dillon #endif
24817ea2221SMatthew Dillon 
24917ea2221SMatthew Dillon #endif	/* _UN_NAMESPACE_H_ */
25017ea2221SMatthew Dillon 
251