xref: /freebsd/lib/libc/include/un-namespace.h (revision 6de306ecee3831f48debaad1d0b22418faa48e10)
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		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		getsockname
50 #undef		getsockopt
51 #undef		ioctl
52 #undef		kevent
53 #undef		listen
54 #undef		nanosleep
55 #undef		open
56 #undef		pthread_getspecific
57 #undef		pthread_key_create
58 #undef		pthread_key_delete
59 #undef		pthread_mutex_destroy
60 #undef		pthread_mutex_init
61 #undef		pthread_mutex_lock
62 #undef		pthread_mutex_trylock
63 #undef		pthread_mutex_unlock
64 #undef		pthread_mutexattr_init
65 #undef		pthread_mutexattr_destroy
66 #undef		pthread_mutexattr_settype
67 #undef		pthread_once
68 #undef		pthread_self
69 #undef		pthread_setspecific
70 #undef		read
71 #undef		readv
72 #undef		recvfrom
73 #undef		recvmsg
74 #undef		select
75 #undef		sendmsg
76 #undef		sendto
77 #undef		setsockopt
78 #undef		sigaction
79 #undef		sigprocmask
80 #undef		sigsuspend
81 #undef		socket
82 #undef		socketpair
83 #undef		wait4
84 #undef		write
85 #undef		writev
86 
87 #if 0
88 #undef		creat
89 #undef		fchflags
90 #undef		fchmod
91 #undef		fpathconf
92 #undef		ftrylockfile
93 #undef		msync
94 #undef		nfssvc
95 #undef		pause
96 #undef		poll
97 #undef		pthread_rwlock_destroy
98 #undef		pthread_rwlock_init
99 #undef		pthread_rwlock_rdlock
100 #undef		pthread_rwlock_tryrdlock
101 #undef		pthread_rwlock_trywrlock
102 #undef		pthread_rwlock_unlock
103 #undef		pthread_rwlock_wrlock
104 #undef		pthread_rwlockattr_init
105 #undef		pthread_rwlockattr_destroy
106 #undef		sched_yield
107 #undef		sendfile
108 #undef		shutdown
109 #undef		sigaltstack
110 #undef		signanosleep
111 #undef		sigpending
112 #undef		sigreturn
113 #undef		sigsetmask
114 #undef		sleep
115 #undef		system
116 #undef		tcdrain
117 #undef		wait
118 #undef		waitpid
119 #endif	/* 0 */
120 
121 #ifdef _SIGNAL_H_
122 int     	_sigaction(int, const struct sigaction *, struct sigaction *);
123 #endif
124 
125 #ifdef _SYS_EVENT_H_
126 int		_kevent(int, const struct kevent *, int, struct kevent *,
127 		    int, const struct timespec *);
128 #endif
129 
130 #ifdef _SYS_FCNTL_H_
131 int		_flock(int, int);
132 #endif
133 
134 #endif	/* _UN_NAMESPACE_H_ */
135