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