2 * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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
26 * $FreeBSD: /repoman/r/ncvs/src/lib/libc/include/namespace.h,v 1.1 2001/01/24 13:00:08 deischen Exp $
27 * $DragonFly: src/lib/libc/include/namespace.h,v 1.2 2005/07/23 14:16:13 joerg Exp $
35 * Prototypes for syscalls/functions that need to be overridden
36 * in libc_r/libpthread.
38 #define accept _accept
41 #define connect _connect
44 #define execve _execve
46 /*#define flock _flock */
47 #define flockfile _flockfile
49 #define fstatfs _fstatfs
51 #define funlockfile _funlockfile
52 #define getdirentries _getdirentries
53 #define getlogin _getlogin
54 #define getpeername _getpeername
55 #define getsockname _getsockname
56 #define getsockopt _getsockopt
58 /* #define kevent _kevent */
59 #define listen _listen
60 #define nanosleep _nanosleep
62 #define pthread_getspecific _pthread_getspecific
63 #define pthread_key_create _pthread_key_create
64 #define pthread_key_delete _pthread_key_delete
65 #define pthread_mutex_destroy _pthread_mutex_destroy
66 #define pthread_mutex_init _pthread_mutex_init
67 #define pthread_mutex_lock _pthread_mutex_lock
68 #define pthread_mutex_trylock _pthread_mutex_trylock
69 #define pthread_mutex_unlock _pthread_mutex_unlock
70 #define pthread_mutexattr_init _pthread_mutexattr_init
71 #define pthread_mutexattr_destroy _pthread_mutexattr_destroy
72 #define pthread_mutexattr_settype _pthread_mutexattr_settype
73 #define pthread_once _pthread_once
74 #define pthread_self _pthread_self
75 #define pthread_setspecific _pthread_setspecific
78 #define recvfrom _recvfrom
79 #define recvmsg _recvmsg
80 #define select _select
81 #define sendmsg _sendmsg
82 #define sendto _sendto
83 #define setsockopt _setsockopt
84 /*#define sigaction _sigaction*/
85 #define sigprocmask _sigprocmask
86 #define sigsuspend _sigsuspend
87 #define socket _socket
88 #define socketpair _socketpair
91 #define writev _writev
95 * Other hidden syscalls/functions that libc_r needs to override
96 * but are not used internally by libc.
98 * XXX - When modifying libc to use one of the following, remove
99 * the prototype from below and place it in the list above.
103 #define fchflags _fchflags
104 #define fchmod _fchmod
105 #define fpathconf _fpathconf
106 #define ftrylockfile _ftrylockfile
108 #define nfssvc _nfssvc
111 #define pthread_rwlock_destroy _pthread_rwlock_destroy
112 #define pthread_rwlock_init _pthread_rwlock_init
113 #define pthread_rwlock_rdlock _pthread_rwlock_rdlock
114 #define pthread_rwlock_tryrdlock _pthread_rwlock_tryrdlock
115 #define pthread_rwlock_trywrlock _pthread_rwlock_trywrlock
116 #define pthread_rwlock_unlock _pthread_rwlock_unlock
117 #define pthread_rwlock_wrlock _pthread_rwlock_wrlock
118 #define pthread_rwlockattr_init _pthread_rwlockattr_init
119 #define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy
120 #define sched_yield _sched_yield
121 #define sendfile _sendfile
122 #define shutdown _shutdown
123 #define sigaltstack _sigaltstack
124 #define signanosleep _signanosleep
125 #define sigpending _sigpending
126 #define sigreturn _sigreturn
127 #define sigsetmask _sigsetmask
129 #define system _system
130 #define tcdrain _tcdrain
132 #define waitpid _waitpid
135 #endif /* _NAMESPACE_H_ */