os/ossrv/genericopenlibs/openenvcore/libc/include/namespace.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/libc/include/namespace.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,165 @@
     1.4 +/*
     1.5 + * Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
     1.6 + * All rights reserved.
     1.7 + *
     1.8 + * Redistribution and use in source and binary forms, with or without
     1.9 + * modification, are permitted provided that the following conditions
    1.10 + * are met:
    1.11 + * 1. Redistributions of source code must retain the above copyright
    1.12 + *    notice, this list of conditions and the following disclaimer.
    1.13 + * 2. Redistributions in binary form must reproduce the above copyright
    1.14 + *    notice, this list of conditions and the following disclaimer in the
    1.15 + *    documentation and/or other materials provided with the distribution.
    1.16 + *
    1.17 + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    1.18 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1.19 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    1.20 + * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
    1.21 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    1.22 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    1.23 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    1.24 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    1.25 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    1.26 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.27 + * SUCH DAMAGE.
    1.28 + *
    1.29 + ** Portions Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).. All rights reserved.
    1.30 + * $FreeBSD: src/lib/libc/include/namespace.h,v 1.16.12.1 2005/10/08 17:56:33 delphij Exp $
    1.31 + */
    1.32 +
    1.33 +#ifndef _NAMESPACE_H_
    1.34 +#define _NAMESPACE_H_
    1.35 +
    1.36 +/*
    1.37 + * Adjust names so that headers declare "hidden" names.
    1.38 + *
    1.39 + * README: When modifying this file don't forget to make the appropriate
    1.40 + *         changes in un-namespace.h!!!
    1.41 + */
    1.42 +
    1.43 +/*
    1.44 + * ISO C (C90) section.  Most names in libc aren't in ISO C, so they
    1.45 + * should be here.  Most aren't here...
    1.46 + */
    1.47 +#define		err				_err
    1.48 +#define		warn				_warn
    1.49 +#define		nsdispatch			_nsdispatch
    1.50 +
    1.51 +/*
    1.52 + * Prototypes for syscalls/functions that need to be overridden
    1.53 + * in libc_r/libpthread.
    1.54 + */
    1.55 +#define		accept				_accept
    1.56 +#define		__acl_aclcheck_fd		___acl_aclcheck_fd
    1.57 +#define		__acl_delete_fd			___acl_delete_fd
    1.58 +#define		__acl_get_fd			___acl_get_fd
    1.59 +#define		__acl_set_fd			___acl_set_fd
    1.60 +#define		bind				_bind
    1.61 +#define		__cap_get_fd			___cap_get_fd
    1.62 +#define		__cap_set_fd			___cap_set_fd
    1.63 +#define		close				_close
    1.64 +#define		connect				_connect
    1.65 +#define		dup				_dup
    1.66 +#define		dup2				_dup2
    1.67 +#define		execve				_execve
    1.68 +#define		fcntl				_fcntl
    1.69 +/*#define		flock				_flock */
    1.70 +#define		flockfile			_flockfile
    1.71 +#define		fpathconf			_fpathconf
    1.72 +#define		fstat				_fstat
    1.73 +#define		fstatfs				_fstatfs
    1.74 +#define		fsync				_fsync
    1.75 +#define		funlockfile			_funlockfile
    1.76 +/*#define		getdirentries			_getdirentries */
    1.77 +#define		getlogin			_getlogin
    1.78 +#define		getpeername			_getpeername
    1.79 +#define		_getprogname			getprogname
    1.80 +#define		getsockname			_getsockname
    1.81 +#define		getsockopt			_getsockopt
    1.82 +#define		ioctl				_ioctl
    1.83 +/* #define		kevent				_kevent */
    1.84 +#define		listen				_listen
    1.85 +#define		nanosleep			_nanosleep
    1.86 +#define		open				_open
    1.87 +#define		poll				_poll
    1.88 +#define		pthread_cond_broadcast		_pthread_cond_broadcast
    1.89 +#define		pthread_cond_destroy		_pthread_cond_destroy
    1.90 +#define		pthread_cond_init		_pthread_cond_init
    1.91 +#define		pthread_cond_signal		_pthread_cond_signal
    1.92 +#define		pthread_cond_timedwait		_pthread_cond_timedwait
    1.93 +#define		pthread_cond_wait		_pthread_cond_wait
    1.94 +#define		pthread_exit			_pthread_exit
    1.95 +#define		pthread_getspecific		_pthread_getspecific
    1.96 +#define		pthread_key_create		_pthread_key_create
    1.97 +#define		pthread_key_delete		_pthread_key_delete
    1.98 +#define		pthread_main_np			_pthread_main_np
    1.99 +#define		pthread_mutex_destroy		_pthread_mutex_destroy
   1.100 +#define		pthread_mutex_init		_pthread_mutex_init
   1.101 +#define		pthread_mutex_lock		_pthread_mutex_lock
   1.102 +#define		pthread_mutex_trylock		_pthread_mutex_trylock
   1.103 +#define		pthread_mutex_unlock		_pthread_mutex_unlock
   1.104 +#define		pthread_mutexattr_destroy	_pthread_mutexattr_destroy
   1.105 +#define		pthread_mutexattr_init		_pthread_mutexattr_init
   1.106 +#define		pthread_mutexattr_settype	_pthread_mutexattr_settype
   1.107 +#define		pthread_once			_pthread_once
   1.108 +#define		pthread_rwlock_destroy		_pthread_rwlock_destroy
   1.109 +#define		pthread_rwlock_init		_pthread_rwlock_init
   1.110 +#define		pthread_rwlock_rdlock		_pthread_rwlock_rdlock
   1.111 +#define		pthread_rwlock_wrlock		_pthread_rwlock_wrlock
   1.112 +#define		pthread_rwlock_tryrdlock	_pthread_rwlock_tryrdlock
   1.113 +#define		pthread_rwlock_trywrlock	_pthread_rwlock_trywrlock
   1.114 +#define		pthread_rwlock_unlock		_pthread_rwlock_unlock
   1.115 +#define		pthread_self			_pthread_self
   1.116 +#define		pthread_setspecific		_pthread_setspecific
   1.117 +#define		pthread_sigmask			_pthread_sigmask
   1.118 +#define		read				_read
   1.119 +#define		readv				_readv
   1.120 +#define		recvfrom			_recvfrom
   1.121 +#define		recvmsg				_recvmsg
   1.122 +#define		select				_select
   1.123 +#define		sendmsg				_sendmsg
   1.124 +#define		sendto				_sendto
   1.125 +#define		setsockopt			_setsockopt
   1.126 +/*#define		sigaction			_sigaction*/
   1.127 +#define		sigprocmask			_sigprocmask
   1.128 +#define		sigsuspend			_sigsuspend
   1.129 +#define		socket				_socket
   1.130 +#define		socketpair			_socketpair
   1.131 +#define		usleep				_usleep
   1.132 +#define		wait4				_wait4
   1.133 +#define		waitpid				_waitpid
   1.134 +#define		write				_write
   1.135 +#define		writev				_writev
   1.136 +
   1.137 +
   1.138 +/*
   1.139 + * Other hidden syscalls/functions that libc_r needs to override
   1.140 + * but are not used internally by libc.
   1.141 + *
   1.142 + * XXX - When modifying libc to use one of the following, remove
   1.143 + * the prototype from below and place it in the list above.
   1.144 + */
   1.145 +#if 0
   1.146 +#define		creat				_creat
   1.147 +#define		fchflags			_fchflags
   1.148 +#define		fchmod				_fchmod
   1.149 +#define		ftrylockfile			_ftrylockfile
   1.150 +#define		msync				_msync
   1.151 +#define		nfssvc				_nfssvc
   1.152 +#define		pause				_pause
   1.153 +#define		pthread_rwlockattr_init		_pthread_rwlockattr_init
   1.154 +#define		pthread_rwlockattr_destroy	_pthread_rwlockattr_destroy
   1.155 +#define		sched_yield			_sched_yield
   1.156 +#define		sendfile			_sendfile
   1.157 +#define		shutdown			_shutdown
   1.158 +#define		sigaltstack			_sigaltstack
   1.159 +#define		sigpending			_sigpending
   1.160 +#define		sigreturn			_sigreturn
   1.161 +#define		sigsetmask			_sigsetmask
   1.162 +#define		sleep				_sleep
   1.163 +#define		system				_system
   1.164 +#define		tcdrain				_tcdrain
   1.165 +#define		wait				_wait
   1.166 +#endif
   1.167 +
   1.168 +#endif /* _NAMESPACE_H_ */