sl@0: /*
sl@0:  * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
sl@0:  * All rights reserved.
sl@0:  *
sl@0:  * Redistribution and use in source and binary forms, with or without
sl@0:  * modification, are permitted provided that the following conditions
sl@0:  * are met:
sl@0:  * 1. Redistributions of source code must retain the above copyright
sl@0:  *    notice, this list of conditions and the following disclaimer.
sl@0:  * 2. Redistributions in binary form must reproduce the above copyright
sl@0:  *    notice, this list of conditions and the following disclaimer in the
sl@0:  *    documentation and/or other materials provided with the distribution.
sl@0:  *
sl@0:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
sl@0:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
sl@0:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
sl@0:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
sl@0:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
sl@0:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
sl@0:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
sl@0:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
sl@0:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
sl@0:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
sl@0:  * SUCH DAMAGE.
sl@0:  *
sl@0:  ** Portions Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).. All rights reserved.
sl@0:  * $FreeBSD: src/lib/libc/include/namespace.h,v 1.16.12.1 2005/10/08 17:56:33 delphij Exp $
sl@0:  */
sl@0: 
sl@0: #ifndef _NAMESPACE_H_
sl@0: #define _NAMESPACE_H_
sl@0: 
sl@0: /*
sl@0:  * Adjust names so that headers declare "hidden" names.
sl@0:  *
sl@0:  * README: When modifying this file don't forget to make the appropriate
sl@0:  *         changes in un-namespace.h!!!
sl@0:  */
sl@0: 
sl@0: /*
sl@0:  * ISO C (C90) section.  Most names in libc aren't in ISO C, so they
sl@0:  * should be here.  Most aren't here...
sl@0:  */
sl@0: #define		err				_err
sl@0: #define		warn				_warn
sl@0: #define		nsdispatch			_nsdispatch
sl@0: 
sl@0: /*
sl@0:  * Prototypes for syscalls/functions that need to be overridden
sl@0:  * in libc_r/libpthread.
sl@0:  */
sl@0: #define		accept				_accept
sl@0: #define		__acl_aclcheck_fd		___acl_aclcheck_fd
sl@0: #define		__acl_delete_fd			___acl_delete_fd
sl@0: #define		__acl_get_fd			___acl_get_fd
sl@0: #define		__acl_set_fd			___acl_set_fd
sl@0: #define		bind				_bind
sl@0: #define		__cap_get_fd			___cap_get_fd
sl@0: #define		__cap_set_fd			___cap_set_fd
sl@0: #define		close				_close
sl@0: #define		connect				_connect
sl@0: #define		dup				_dup
sl@0: #define		dup2				_dup2
sl@0: #define		execve				_execve
sl@0: #define		fcntl				_fcntl
sl@0: /*#define		flock				_flock */
sl@0: #define		flockfile			_flockfile
sl@0: #define		fpathconf			_fpathconf
sl@0: #define		fstat				_fstat
sl@0: #define		fstatfs				_fstatfs
sl@0: #define		fsync				_fsync
sl@0: #define		funlockfile			_funlockfile
sl@0: /*#define		getdirentries			_getdirentries */
sl@0: #define		getlogin			_getlogin
sl@0: #define		getpeername			_getpeername
sl@0: #define		_getprogname			getprogname
sl@0: #define		getsockname			_getsockname
sl@0: #define		getsockopt			_getsockopt
sl@0: #define		ioctl				_ioctl
sl@0: /* #define		kevent				_kevent */
sl@0: #define		listen				_listen
sl@0: #define		nanosleep			_nanosleep
sl@0: #define		open				_open
sl@0: #define		poll				_poll
sl@0: #define		pthread_cond_broadcast		_pthread_cond_broadcast
sl@0: #define		pthread_cond_destroy		_pthread_cond_destroy
sl@0: #define		pthread_cond_init		_pthread_cond_init
sl@0: #define		pthread_cond_signal		_pthread_cond_signal
sl@0: #define		pthread_cond_timedwait		_pthread_cond_timedwait
sl@0: #define		pthread_cond_wait		_pthread_cond_wait
sl@0: #define		pthread_exit			_pthread_exit
sl@0: #define		pthread_getspecific		_pthread_getspecific
sl@0: #define		pthread_key_create		_pthread_key_create
sl@0: #define		pthread_key_delete		_pthread_key_delete
sl@0: #define		pthread_main_np			_pthread_main_np
sl@0: #define		pthread_mutex_destroy		_pthread_mutex_destroy
sl@0: #define		pthread_mutex_init		_pthread_mutex_init
sl@0: #define		pthread_mutex_lock		_pthread_mutex_lock
sl@0: #define		pthread_mutex_trylock		_pthread_mutex_trylock
sl@0: #define		pthread_mutex_unlock		_pthread_mutex_unlock
sl@0: #define		pthread_mutexattr_destroy	_pthread_mutexattr_destroy
sl@0: #define		pthread_mutexattr_init		_pthread_mutexattr_init
sl@0: #define		pthread_mutexattr_settype	_pthread_mutexattr_settype
sl@0: #define		pthread_once			_pthread_once
sl@0: #define		pthread_rwlock_destroy		_pthread_rwlock_destroy
sl@0: #define		pthread_rwlock_init		_pthread_rwlock_init
sl@0: #define		pthread_rwlock_rdlock		_pthread_rwlock_rdlock
sl@0: #define		pthread_rwlock_wrlock		_pthread_rwlock_wrlock
sl@0: #define		pthread_rwlock_tryrdlock	_pthread_rwlock_tryrdlock
sl@0: #define		pthread_rwlock_trywrlock	_pthread_rwlock_trywrlock
sl@0: #define		pthread_rwlock_unlock		_pthread_rwlock_unlock
sl@0: #define		pthread_self			_pthread_self
sl@0: #define		pthread_setspecific		_pthread_setspecific
sl@0: #define		pthread_sigmask			_pthread_sigmask
sl@0: #define		read				_read
sl@0: #define		readv				_readv
sl@0: #define		recvfrom			_recvfrom
sl@0: #define		recvmsg				_recvmsg
sl@0: #define		select				_select
sl@0: #define		sendmsg				_sendmsg
sl@0: #define		sendto				_sendto
sl@0: #define		setsockopt			_setsockopt
sl@0: /*#define		sigaction			_sigaction*/
sl@0: #define		sigprocmask			_sigprocmask
sl@0: #define		sigsuspend			_sigsuspend
sl@0: #define		socket				_socket
sl@0: #define		socketpair			_socketpair
sl@0: #define		usleep				_usleep
sl@0: #define		wait4				_wait4
sl@0: #define		waitpid				_waitpid
sl@0: #define		write				_write
sl@0: #define		writev				_writev
sl@0: 
sl@0: 
sl@0: /*
sl@0:  * Other hidden syscalls/functions that libc_r needs to override
sl@0:  * but are not used internally by libc.
sl@0:  *
sl@0:  * XXX - When modifying libc to use one of the following, remove
sl@0:  * the prototype from below and place it in the list above.
sl@0:  */
sl@0: #if 0
sl@0: #define		creat				_creat
sl@0: #define		fchflags			_fchflags
sl@0: #define		fchmod				_fchmod
sl@0: #define		ftrylockfile			_ftrylockfile
sl@0: #define		msync				_msync
sl@0: #define		nfssvc				_nfssvc
sl@0: #define		pause				_pause
sl@0: #define		pthread_rwlockattr_init		_pthread_rwlockattr_init
sl@0: #define		pthread_rwlockattr_destroy	_pthread_rwlockattr_destroy
sl@0: #define		sched_yield			_sched_yield
sl@0: #define		sendfile			_sendfile
sl@0: #define		shutdown			_shutdown
sl@0: #define		sigaltstack			_sigaltstack
sl@0: #define		sigpending			_sigpending
sl@0: #define		sigreturn			_sigreturn
sl@0: #define		sigsetmask			_sigsetmask
sl@0: #define		sleep				_sleep
sl@0: #define		system				_system
sl@0: #define		tcdrain				_tcdrain
sl@0: #define		wait				_wait
sl@0: #endif
sl@0: 
sl@0: #endif /* _NAMESPACE_H_ */