OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [posix/] [namespace.h] - Blame information for rev 802

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/*
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: src/lib/libc/include/namespace.h,v 1.9 2002/03/29 22:43:42 markm Exp $
27
 */
28
 
29
#ifndef _NAMESPACE_H_
30
#define _NAMESPACE_H_
31
 
32
/*
33
 * Adjust names so that headers declare "hidden" names.
34
 */
35
 
36
/*
37
 * ISO C (C90) section.  Most names in libc aren't in ISO C, so they
38
 * should be here.  Most aren't here...
39
 */
40
#define         err                             _err
41
#define         warn                            _warn
42
 
43
/*
44
 * Prototypes for syscalls/functions that need to be overridden
45
 * in libc_r/libpthread.
46
 */
47
#define         accept                          _accept
48
#define         __acl_aclcheck_fd               ___acl_aclcheck_fd
49
#define         __acl_delete_fd                 ___acl_delete_fd
50
#define         __acl_get_fd                    ___acl_get_fd
51
#define         __acl_set_fd                    ___acl_set_fd
52
#define         bind                            _bind
53
#define         __cap_get_fd                    ___cap_get_fd
54
#define         __cap_set_fd                    ___cap_set_fd
55
#define         close                           _close
56
#define         connect                         _connect
57
#define         dup                             _dup
58
#define         dup2                            _dup2
59
#define         execve                          _execve
60
#define         fcntl                           _fcntl
61
/*#define               flock                           _flock */
62
#define         fstat                           _fstat
63
#define         fstatfs                         _fstatfs
64
#define         fsync                           _fsync
65
#define         getdirentries                   _getdirentries
66
#define         getlogin                        _getlogin
67
#define         getpeername                     _getpeername
68
#define         getprogname                     _getprogname
69
#define         getsockname                     _getsockname
70
#define         getsockopt                      _getsockopt
71
#define         ioctl                           _ioctl
72
/* #define              kevent                          _kevent */
73
#define         listen                          _listen
74
#define         nanosleep                       _nanosleep
75
#define         open                            _open
76
#define         poll                            _poll
77
#define         pthread_cond_signal             _pthread_cond_signal
78
#define         pthread_cond_wait               _pthread_cond_wait
79
#define         pthread_cond_init               _pthread_cond_init
80
#define         pthread_exit                    _pthread_exit
81
#define         pthread_getspecific             _pthread_getspecific
82
#define         pthread_key_create              _pthread_key_create
83
#define         pthread_key_delete              _pthread_key_delete
84
#define         pthread_main_np                 _pthread_main_np
85
#define         pthread_mutex_destroy           _pthread_mutex_destroy
86
#define         pthread_mutex_init              _pthread_mutex_init
87
#define         pthread_mutex_lock              _pthread_mutex_lock
88
#define         pthread_mutex_trylock           _pthread_mutex_trylock
89
#define         pthread_mutex_unlock            _pthread_mutex_unlock
90
#define         pthread_mutexattr_init          _pthread_mutexattr_init
91
#define         pthread_mutexattr_destroy       _pthread_mutexattr_destroy
92
#define         pthread_mutexattr_settype       _pthread_mutexattr_settype
93
#define         pthread_once                    _pthread_once
94
#define         pthread_rwlock_init             _pthread_rwlock_init
95
#define         pthread_rwlock_rdlock           _pthread_rwlock_rdlock
96
#define         pthread_rwlock_wrlock           _pthread_rwlock_wrlock
97
#define         pthread_rwlock_unlock           _pthread_rwlock_unlock
98
#define         pthread_self                    _pthread_self
99
#define         pthread_setspecific             _pthread_setspecific
100
#define         pthread_sigmask                 _pthread_sigmask
101
#define         read                            _read
102
#define         readv                           _readv
103
#define         recvfrom                        _recvfrom
104
#define         recvmsg                         _recvmsg
105
#define         select                          _select
106
#define         sendmsg                         _sendmsg
107
#define         sendto                          _sendto
108
#define         setsockopt                      _setsockopt
109
/*#define               sigaction                       _sigaction*/
110
#define         sigprocmask                     _sigprocmask
111
#define         sigsuspend                      _sigsuspend
112
#define         socket                          _socket
113
#define         socketpair                      _socketpair
114
#define         wait4                           _wait4
115
/*#define               write                           _write*/
116
#define         writev                          _writev
117
 
118
 
119
/*
120
 * Other hidden syscalls/functions that libc_r needs to override
121
 * but are not used internally by libc.
122
 *
123
 * XXX - When modifying libc to use one of the following, remove
124
 * the prototype from below and place it in the list above.
125
 */
126
#if 0
127
#define         creat                           _creat
128
#define         fchflags                        _fchflags
129
#define         fchmod                          _fchmod
130
#define         fpathconf                       _fpathconf
131
#define         msync                           _msync
132
#define         nfssvc                          _nfssvc
133
#define         pause                           _pause
134
#define         pthread_rwlock_destroy          _pthread_rwlock_destroy
135
#define         pthread_rwlock_tryrdlock        _pthread_rwlock_tryrdlock
136
#define         pthread_rwlock_trywrlock        _pthread_rwlock_trywrlock
137
#define         pthread_rwlockattr_init         _pthread_rwlockattr_init
138
#define         pthread_rwlockattr_destroy      _pthread_rwlockattr_destroy
139
#define         sched_yield                     _sched_yield
140
#define         sendfile                        _sendfile
141
#define         shutdown                        _shutdown
142
#define         sigaltstack                     _sigaltstack
143
#define         sigpending                      _sigpending
144
#define         sigreturn                       _sigreturn
145
#define         sigsetmask                      _sigsetmask
146
#define         sleep                           _sleep
147
#define         system                          _system
148
#define         tcdrain                         _tcdrain
149
#define         wait                            _wait
150
#define         waitpid                         _waitpid
151
#endif
152
 
153
#endif /* _NAMESPACE_H_ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.