Chameleon

Chameleon Svn Source Tree

Root/branches/cparm/i386/modules/include/_fbsd_compat_.h

1/*
2 * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
11 * file.
12 *
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23#ifndef __FBSD_COMPAT__H_
24#define __FBSD_COMPAT__H_
25
26#include <stdint.h>
27
28#defineOFF_MAXLLONG_MAX
29#defineOFF_MINLLONG_MIN
30#ifndef _BIG_ENDIAN
31#define_BIG_ENDIANBIG_ENDIAN
32#endif /* _BIG_ENDIAN */
33#define_BYTE_ORDERBYTE_ORDER
34#define_LITTLE_ENDIANLITTLE_ENDIAN
35#define__ct_rune_tct_rune_t
36#define__va_list__darwin_va_list
37
38/*
39 * Do the opposite of FreeBSD namespace.h; that is, map the "hidden" names
40 * back to the real names.
41 */
42
43/*
44 * ISO C (C90) section. Most names in libc aren't in ISO C, so they
45 * should be here. Most aren't here...
46 */
47#define_errerr
48#define_warnwarn
49
50#define_acceptaccept
51#define_bindbind
52#define_closeclose
53#define_connectconnect
54#define_creatcreat
55#define_dupdup
56#define_dup2dup2
57#define_execveexecve
58#define_fcntlfcntl
59/*#define_flockflock */
60#define_flockfileflockfile
61#define_ftrylockfileftrylockfile
62#define_fstatfstat
63#define_fstatfsfstatfs
64#define_fsyncfsync
65#define_funlockfilefunlockfile
66#define_getdirentriesgetdirentries
67/* #define_getlogingetlogin */
68#define_getpeernamegetpeername
69#define_getprognamegetprogname
70#define_getsocknamegetsockname
71#define_getsockoptgetsockopt
72#define_ioctlioctl
73/* #define_keventkevent */
74#define_listenlisten
75#define_nanosleepnanosleep
76#define_openopen
77#define_pausepause
78#define_pollpoll
79#define_pthread_cond_broadcastpthread_cond_broadcast
80#define_pthread_cond_destroypthread_cond_destroy
81#define_pthread_cond_initpthread_cond_init
82#define_pthread_cond_signalpthread_cond_signal
83#define_pthread_cond_timedwaitpthread_cond_timedwait
84#define_pthread_cond_waitpthread_cond_wait
85#define_pthread_exitpthread_exit
86#define_pthread_getspecificpthread_getspecific
87#define_pthread_key_createpthread_key_create
88#define_pthread_key_deletepthread_key_delete
89#define_pthread_main_nppthread_main_np
90#define_pthread_mutex_destroypthread_mutex_destroy
91#define_pthread_mutex_initpthread_mutex_init
92#define_pthread_mutex_lockpthread_mutex_lock
93#define_pthread_mutex_trylockpthread_mutex_trylock
94#define_pthread_mutex_unlockpthread_mutex_unlock
95#define_pthread_mutexattr_destroypthread_mutexattr_destroy
96#define_pthread_mutexattr_initpthread_mutexattr_init
97#define_pthread_mutexattr_settypepthread_mutexattr_settype
98#define_pthread_oncepthread_once
99#define_pthread_rwlock_destroypthread_rwlock_destroy
100#define_pthread_rwlock_initpthread_rwlock_init
101#define_pthread_rwlock_rdlockpthread_rwlock_rdlock
102#define_pthread_rwlock_wrlockpthread_rwlock_wrlock
103#define_pthread_rwlock_tryrdlockpthread_rwlock_tryrdlock
104#define_pthread_rwlock_trywrlockpthread_rwlock_trywrlock
105#define_pthread_rwlock_unlockpthread_rwlock_unlock
106#define_pthread_selfpthread_self
107#define_pthread_setspecificpthread_setspecific
108#define_pthread_sigmaskpthread_sigmask
109#define_readread
110#define_readvreadv
111#define_recvfromrecvfrom
112#define_recvmsgrecvmsg
113#define_selectselect
114#define_sendmsgsendmsg
115#define_sendtosendto
116#define_setsockoptsetsockopt
117#define_sigactionsigaction
118#define_sigprocmasksigprocmask
119#define_sigsuspendsigsuspend
120#define_sleepsleep
121#define_socketsocket
122#define_socketpairsocketpair
123#define_systemsystem
124#define_tcdraintcdrain
125#define _usleepusleep
126#define_waitwait
127#define_wait4wait4
128#define_waitpidwaitpid
129#define_writewrite
130#define_writevwritev
131
132#define__creatcreat
133#define__fmtcheckfmtcheck
134#define__inet_addrinet_addr
135#define__inet_atoninet_aton
136#define__inet_lnaofinet_lnaof
137#define__inet_makeaddrinet_makeaddr
138#define__inet_net_ntopinet_net_ntop
139#define__inet_net_ptoninet_net_pton
140#define__inet_netainet_neta
141#define__inet_netofinet_netof
142#define__inet_networkinet_network
143#define__inet_nsap_addrinet_nsap_addr
144#define__inet_nsap_ntoainet_nsap_ntoa
145#define__inet_ntoainet_ntoa
146#define__inet_ntopinet_ntop
147#define__inet_ptoninet_pton
148#define__makecontextmakecontext
149#define__makecontextmakecontext
150#define__pausepause
151#define__pselectpselect
152#define__raiseraise
153#define__signalcontextsignalcontext
154#define__sleepsleep
155#define__strtok_rstrtok_r
156#define__swapcontextswapcontext
157#define__systemsystem
158#define__tcdraintcdrain
159#define __usleepusleep
160#define__vfscanfvfscanf
161#define__waitwait
162#define__waitpidwaitpid
163
164#define_GENERIC_DIRSIZ(dp) \
165 (((unsigned long)&((struct dirent *)0)->d_name + (dp)->d_namlen+1 + 3) & ~3)
166
167#endif /* __FBSD_COMPAT__H_ */
168

Archive Download this file

Revision: 2154