sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
*
|
sl@0
|
5 |
* Redistribution and use in source and binary forms, with or without
|
sl@0
|
6 |
* modification, are permitted provided that the following conditions
|
sl@0
|
7 |
* are met:
|
sl@0
|
8 |
* 1. Redistributions of source code must retain the above copyright
|
sl@0
|
9 |
* notice, this list of conditions and the following disclaimer.
|
sl@0
|
10 |
* 2. Redistributions in binary form must reproduce the above copyright
|
sl@0
|
11 |
* notice, this list of conditions and the following disclaimer in the
|
sl@0
|
12 |
* documentation and/or other materials provided with the distribution.
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
sl@0
|
15 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
sl@0
|
16 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
sl@0
|
17 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
sl@0
|
18 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
sl@0
|
19 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
sl@0
|
20 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
sl@0
|
21 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
sl@0
|
22 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
sl@0
|
23 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
sl@0
|
24 |
* SUCH DAMAGE.
|
sl@0
|
25 |
*
|
sl@0
|
26 |
** Portions Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).. All rights reserved.
|
sl@0
|
27 |
* $FreeBSD: src/lib/libc/include/namespace.h,v 1.16.12.1 2005/10/08 17:56:33 delphij Exp $
|
sl@0
|
28 |
*/
|
sl@0
|
29 |
|
sl@0
|
30 |
#ifndef _NAMESPACE_H_
|
sl@0
|
31 |
#define _NAMESPACE_H_
|
sl@0
|
32 |
|
sl@0
|
33 |
/*
|
sl@0
|
34 |
* Adjust names so that headers declare "hidden" names.
|
sl@0
|
35 |
*
|
sl@0
|
36 |
* README: When modifying this file don't forget to make the appropriate
|
sl@0
|
37 |
* changes in un-namespace.h!!!
|
sl@0
|
38 |
*/
|
sl@0
|
39 |
|
sl@0
|
40 |
/*
|
sl@0
|
41 |
* ISO C (C90) section. Most names in libc aren't in ISO C, so they
|
sl@0
|
42 |
* should be here. Most aren't here...
|
sl@0
|
43 |
*/
|
sl@0
|
44 |
#define err _err
|
sl@0
|
45 |
#define warn _warn
|
sl@0
|
46 |
#define nsdispatch _nsdispatch
|
sl@0
|
47 |
|
sl@0
|
48 |
/*
|
sl@0
|
49 |
* Prototypes for syscalls/functions that need to be overridden
|
sl@0
|
50 |
* in libc_r/libpthread.
|
sl@0
|
51 |
*/
|
sl@0
|
52 |
#define accept _accept
|
sl@0
|
53 |
#define __acl_aclcheck_fd ___acl_aclcheck_fd
|
sl@0
|
54 |
#define __acl_delete_fd ___acl_delete_fd
|
sl@0
|
55 |
#define __acl_get_fd ___acl_get_fd
|
sl@0
|
56 |
#define __acl_set_fd ___acl_set_fd
|
sl@0
|
57 |
#define bind _bind
|
sl@0
|
58 |
#define __cap_get_fd ___cap_get_fd
|
sl@0
|
59 |
#define __cap_set_fd ___cap_set_fd
|
sl@0
|
60 |
#define close _close
|
sl@0
|
61 |
#define connect _connect
|
sl@0
|
62 |
#define dup _dup
|
sl@0
|
63 |
#define dup2 _dup2
|
sl@0
|
64 |
#define execve _execve
|
sl@0
|
65 |
#define fcntl _fcntl
|
sl@0
|
66 |
/*#define flock _flock */
|
sl@0
|
67 |
#define flockfile _flockfile
|
sl@0
|
68 |
#define fpathconf _fpathconf
|
sl@0
|
69 |
#define fstat _fstat
|
sl@0
|
70 |
#define fstatfs _fstatfs
|
sl@0
|
71 |
#define fsync _fsync
|
sl@0
|
72 |
#define funlockfile _funlockfile
|
sl@0
|
73 |
/*#define getdirentries _getdirentries */
|
sl@0
|
74 |
#define getlogin _getlogin
|
sl@0
|
75 |
#define getpeername _getpeername
|
sl@0
|
76 |
#define _getprogname getprogname
|
sl@0
|
77 |
#define getsockname _getsockname
|
sl@0
|
78 |
#define getsockopt _getsockopt
|
sl@0
|
79 |
#define ioctl _ioctl
|
sl@0
|
80 |
/* #define kevent _kevent */
|
sl@0
|
81 |
#define listen _listen
|
sl@0
|
82 |
#define nanosleep _nanosleep
|
sl@0
|
83 |
#define open _open
|
sl@0
|
84 |
#define poll _poll
|
sl@0
|
85 |
#define pthread_cond_broadcast _pthread_cond_broadcast
|
sl@0
|
86 |
#define pthread_cond_destroy _pthread_cond_destroy
|
sl@0
|
87 |
#define pthread_cond_init _pthread_cond_init
|
sl@0
|
88 |
#define pthread_cond_signal _pthread_cond_signal
|
sl@0
|
89 |
#define pthread_cond_timedwait _pthread_cond_timedwait
|
sl@0
|
90 |
#define pthread_cond_wait _pthread_cond_wait
|
sl@0
|
91 |
#define pthread_exit _pthread_exit
|
sl@0
|
92 |
#define pthread_getspecific _pthread_getspecific
|
sl@0
|
93 |
#define pthread_key_create _pthread_key_create
|
sl@0
|
94 |
#define pthread_key_delete _pthread_key_delete
|
sl@0
|
95 |
#define pthread_main_np _pthread_main_np
|
sl@0
|
96 |
#define pthread_mutex_destroy _pthread_mutex_destroy
|
sl@0
|
97 |
#define pthread_mutex_init _pthread_mutex_init
|
sl@0
|
98 |
#define pthread_mutex_lock _pthread_mutex_lock
|
sl@0
|
99 |
#define pthread_mutex_trylock _pthread_mutex_trylock
|
sl@0
|
100 |
#define pthread_mutex_unlock _pthread_mutex_unlock
|
sl@0
|
101 |
#define pthread_mutexattr_destroy _pthread_mutexattr_destroy
|
sl@0
|
102 |
#define pthread_mutexattr_init _pthread_mutexattr_init
|
sl@0
|
103 |
#define pthread_mutexattr_settype _pthread_mutexattr_settype
|
sl@0
|
104 |
#define pthread_once _pthread_once
|
sl@0
|
105 |
#define pthread_rwlock_destroy _pthread_rwlock_destroy
|
sl@0
|
106 |
#define pthread_rwlock_init _pthread_rwlock_init
|
sl@0
|
107 |
#define pthread_rwlock_rdlock _pthread_rwlock_rdlock
|
sl@0
|
108 |
#define pthread_rwlock_wrlock _pthread_rwlock_wrlock
|
sl@0
|
109 |
#define pthread_rwlock_tryrdlock _pthread_rwlock_tryrdlock
|
sl@0
|
110 |
#define pthread_rwlock_trywrlock _pthread_rwlock_trywrlock
|
sl@0
|
111 |
#define pthread_rwlock_unlock _pthread_rwlock_unlock
|
sl@0
|
112 |
#define pthread_self _pthread_self
|
sl@0
|
113 |
#define pthread_setspecific _pthread_setspecific
|
sl@0
|
114 |
#define pthread_sigmask _pthread_sigmask
|
sl@0
|
115 |
#define read _read
|
sl@0
|
116 |
#define readv _readv
|
sl@0
|
117 |
#define recvfrom _recvfrom
|
sl@0
|
118 |
#define recvmsg _recvmsg
|
sl@0
|
119 |
#define select _select
|
sl@0
|
120 |
#define sendmsg _sendmsg
|
sl@0
|
121 |
#define sendto _sendto
|
sl@0
|
122 |
#define setsockopt _setsockopt
|
sl@0
|
123 |
/*#define sigaction _sigaction*/
|
sl@0
|
124 |
#define sigprocmask _sigprocmask
|
sl@0
|
125 |
#define sigsuspend _sigsuspend
|
sl@0
|
126 |
#define socket _socket
|
sl@0
|
127 |
#define socketpair _socketpair
|
sl@0
|
128 |
#define usleep _usleep
|
sl@0
|
129 |
#define wait4 _wait4
|
sl@0
|
130 |
#define waitpid _waitpid
|
sl@0
|
131 |
#define write _write
|
sl@0
|
132 |
#define writev _writev
|
sl@0
|
133 |
|
sl@0
|
134 |
|
sl@0
|
135 |
/*
|
sl@0
|
136 |
* Other hidden syscalls/functions that libc_r needs to override
|
sl@0
|
137 |
* but are not used internally by libc.
|
sl@0
|
138 |
*
|
sl@0
|
139 |
* XXX - When modifying libc to use one of the following, remove
|
sl@0
|
140 |
* the prototype from below and place it in the list above.
|
sl@0
|
141 |
*/
|
sl@0
|
142 |
#if 0
|
sl@0
|
143 |
#define creat _creat
|
sl@0
|
144 |
#define fchflags _fchflags
|
sl@0
|
145 |
#define fchmod _fchmod
|
sl@0
|
146 |
#define ftrylockfile _ftrylockfile
|
sl@0
|
147 |
#define msync _msync
|
sl@0
|
148 |
#define nfssvc _nfssvc
|
sl@0
|
149 |
#define pause _pause
|
sl@0
|
150 |
#define pthread_rwlockattr_init _pthread_rwlockattr_init
|
sl@0
|
151 |
#define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy
|
sl@0
|
152 |
#define sched_yield _sched_yield
|
sl@0
|
153 |
#define sendfile _sendfile
|
sl@0
|
154 |
#define shutdown _shutdown
|
sl@0
|
155 |
#define sigaltstack _sigaltstack
|
sl@0
|
156 |
#define sigpending _sigpending
|
sl@0
|
157 |
#define sigreturn _sigreturn
|
sl@0
|
158 |
#define sigsetmask _sigsetmask
|
sl@0
|
159 |
#define sleep _sleep
|
sl@0
|
160 |
#define system _system
|
sl@0
|
161 |
#define tcdrain _tcdrain
|
sl@0
|
162 |
#define wait _wait
|
sl@0
|
163 |
#endif
|
sl@0
|
164 |
|
sl@0
|
165 |
#endif /* _NAMESPACE_H_ */
|