|
0 A.D. | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static const long |
_1e3
See wtime.cpp |
static const long |
_1e6
See wtime.cpp |
static const long |
_1e7
See wtime.cpp |
static const i64 |
_1e9
See wtime.cpp |
static HANDLE* |
aio_hs
See waio.cpp |
static int |
aio_hs_size
See waio.cpp |
anonymous_struct_1[ MAX_DTORS ] |
dtors
See wpthread.cpp |
static WDIR |
global_wdir
See wfilesystem.cpp |
static uintptr_t |
global_wdir_is_in_use
See wfilesystem.cpp |
static const DWORD |
hs
See wfilesystem.cpp |
const struct in6_addr |
in6addr_any
See wsock.cpp |
static ModuleInitState |
initState
See wsock.cpp |
static const uint |
MAX_DTORS
See wpthread.cpp |
const int |
MAX_REQS
See waio.cpp |
static DWORD |
numProcessors
See wposix.cpp |
static DWORD |
pageSize
See wposix.cpp |
static void( WINAPI* )( struct addrinfo* ) |
pfreeaddrinfo
See wsock.cpp |
static int( WINAPI* )( const char*, const char*, const struct addrinfo*, struct addrinfo** ) |
pgetaddrinfo
See wsock.cpp |
static int( WINAPI* )( const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, unsigned int ) |
pgetnameinfo
See wsock.cpp |
static BOOL( WINAPI* )( MEMORYSTATUSEX* ) |
pGlobalMemoryStatusEx
See wposix.cpp |
static const u64 |
posix_epoch_hns
See wtime.cpp |
static Req[ MAX_REQS ] |
reqs
See waio.cpp |
static HANDLE[ 2 ] |
std_h
See wterminal.cpp |
static i64 |
stInitial_ns
See wtime.cpp |
static const uint |
TLS_LIMIT
See wpthread.cpp |
Method Summary | |
void |
_get_console()
See wterminal.cpp |
void |
_hide_console()
See wterminal.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
accept( int, struct sockaddr*, socklen_t* )
See wsock.h |
int |
access( const char* path, int mode )
See wfilesystem.cpp |
int |
aio_cancel( int fd, struct aiocb* cb )
See waio.cpp |
int |
aio_close( int fd )
See waio.cpp |
int |
aio_error( const struct aiocb* cb )
See waio.cpp |
int |
aio_fsync( int, struct aiocb* )
init / cleanup |
static void |
aio_h_cleanup()
See waio.cpp |
static HANDLE |
aio_h_get( const int fd )
See waio.cpp |
static bool |
aio_h_is_set( const int fd )
See waio.cpp |
static LibError |
aio_h_set( const int fd, const HANDLE h )
See waio.cpp |
int |
aio_read( struct aiocb* cb )
See waio.cpp |
int |
aio_reopen( int fd, const char* fn, int oflag,... )
See waio.cpp |
ssize_t |
aio_return( struct aiocb* cb )
See waio.cpp |
static int |
aio_rw( struct aiocb* cb )
See waio.cpp |
int |
aio_suspend( const struct aiocb* const cbs[], int n, const struct timespec* ts )
See waio.cpp |
int |
aio_write( struct aiocb* cb )
See waio.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
bind( int, const struct sockaddr*, socklen_t )
See wsock.h |
static DWORD |
calc_timeout_length_ms( const struct timespec* abs_timeout, bool& timeout_is_valid )
See wpthread.cpp |
static void |
call_tls_dtors()
See wpthread.cpp |
int |
clock_getres( clockid_t clock, struct timespec* ts )
See wtime.cpp |
int |
clock_gettime( clockid_t clock, struct timespec* ts )
See wtime.cpp |
int |
close( int fd )
See waio.cpp |
int |
closedir( DIR* d_ )
See wfilesystem.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
closesocket( int )
See wsock.h |
EXTERN_C __declspec( dllimport ) int __stdcall |
connect( int, const struct sockaddr*, socklen_t )
See wsock.h |
static i64 |
CurrentSystemTime_ns()
See wtime.cpp |
static void |
detect_filesystem()
See wfilesystem.cpp |
int |
dlclose( void* handle )
See wdlfcn.cpp |
char* |
dlerror( void )
See wdlfcn.cpp |
void* |
dlopen( const char* so_name, int flags )
See wdlfcn.cpp |
void* |
dlsym( void* handle, const char* sym_name )
See wdlfcn.cpp |
static time_t |
filetime_to_time_t( FILETIME* ft )
See wfilesystem.cpp |
void |
freeaddrinfo( struct addrinfo* ai )
See wsock.cpp |
int |
getaddrinfo( const char* nodename, const char* servname, const struct addrinfo* hints, struct addrinfo** res )
See wsock.cpp |
char* |
getcwd( char* buf, size_t buf_size )
See wposix.cpp |
EXTERN_C __declspec( dllimport ) struct hostent* __stdcall |
gethostbyname( const char* name )
See wsock.h |
EXTERN_C __declspec( dllimport ) int __stdcall |
gethostname( char*, int )
========================================================================= File : wsock. |
int |
getnameinfo( const struct sockaddr* sa, socklen_t salen, char* host, socklen_t hostlen, char* serv, socklen_t servlen, unsigned int flags )
See wsock.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
getsockopt( int, int, int, void*, socklen_t* )
See wsock.h |
inline HANDLE |
HANDLE_from_intptr( intptr_t i )
See wposix_internal.h |
static HANDLE |
HANDLE_from_pthread( pthread_t p )
========================================================================= File : wpthread. |
static HANDLE |
HANDLE_from_sem_t( sem_t* sem )
See wpthread.cpp |
static HMODULE |
HMODULE_from_void( void* handle )
See wdlfcn.cpp |
EXTERN_C __declspec( dllimport ) unsigned long __stdcall |
htonl( unsigned long hostlong )
See wsock.h |
EXTERN_C __declspec( dllimport ) unsigned short __stdcall |
htons( unsigned short hostlong )
See wsock.h |
static void |
ImportOptionalFunctions()
See wsock.cpp |
EXTERN_C __declspec( dllimport ) in_addr_t __stdcall |
inet_addr( const char* )
See wsock.h |
EXTERN_C __declspec( dllimport ) char* __stdcall |
inet_ntoa( in_addr )
See wsock.h |
static void |
InitSysconf()
See wposix.cpp |
int |
ioctl( int fd, int op, int* data )
See wterminal.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
ioctlsocket( int, int, const void* )
See wsock.h |
static bool |
is_normal_dir( const char* path )
See wfilesystem.cpp |
static bool |
is_valid_file_handle( const HANDLE h )
See waio.cpp |
static bool |
isAioPossible( int fd, bool is_com_port, int oflag )
See waio.cpp |
static void |
LatchInitialSystemTime()
See wtime.cpp |
int |
lio_listio( int mode, struct aiocb* const cbs[], int n, struct sigevent* se )
See waio.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
listen( int, int )
See wsock.h |
static void |
lock()
See waio.cpp |
off_t |
lseek( int fd, off_t ofs, int whence )
Req |
int |
mkdir( const char* path, mode_t UNUSED( mode ) )
See wfilesystem.cpp |
void* |
mmap( void* start, size_t len, int prot, int flags, int fd, off_t ofs )
See wmman.cpp |
static LibError |
mmap_file( void* start, size_t len, int prot, int flags, int fd, off_t ofs, void** pp )
See wmman.cpp |
static LibError |
mmap_file_access( int prot, int flags, DWORD& flProtect, DWORD& dwAccess )
See wmman.cpp |
static LibError |
mmap_mem( void* start, size_t len, int prot, int flags, int fd, void** pp )
See wmman.cpp |
int |
mprotect( void* addr, size_t len, int prot )
See wmman.cpp |
static uint |
MsFromTimespec( const timespec& ts )
See wtime.cpp |
int |
munmap( void* start, size_t UNUSED( len ) )
See wmman.cpp |
int |
nanosleep( const struct timespec* rqtp, struct timespec* )
See wtime.cpp |
EXTERN_C __declspec( dllimport ) unsigned long __stdcall |
ntohl( unsigned long hostlong )
See wsock.h |
EXTERN_C __declspec( dllimport ) unsigned short __stdcall |
ntohs( unsigned short hostlong )
See wsock.h |
int |
open( const char* fn, int oflag,... )
See waio.cpp |
DIR* |
opendir( const char* path )
See wfilesystem.cpp |
int |
poll( struct pollfd[], int, int )
See wterminal.cpp |
int |
pthread_cancel( pthread_t thread )
See wpthread.cpp |
int |
pthread_create( pthread_t* thread_id, const void* UNUSED( attr ), void* ( * func )( void* ), void* arg )
See wpthread.cpp |
static pthread_t |
pthread_from_HANDLE( HANDLE h )
See wpthread.cpp |
int |
pthread_getschedparam( pthread_t thread, int* policy, struct sched_param* param )
See wpthread.cpp |
void* |
pthread_getspecific( pthread_key_t key )
See wpthread.cpp |
int |
pthread_join( pthread_t thread, void** value_ptr )
See wpthread.cpp |
int |
pthread_key_create( pthread_key_t* key, void ( * dtor )( void* ) )
See wpthread.cpp |
int |
pthread_key_delete( pthread_key_t key )
See wpthread.cpp |
int |
pthread_mutex_destroy( pthread_mutex_t* m )
See wpthread.cpp |
int |
pthread_mutex_init( pthread_mutex_t* m, const pthread_mutexattr_t* )
See wpthread.cpp |
pthread_mutex_t |
pthread_mutex_initializer()
See wpthread.cpp |
int |
pthread_mutex_lock( pthread_mutex_t* m )
See wpthread.cpp |
int |
pthread_mutex_timedlock( pthread_mutex_t* UNUSED( m ), const struct timespec* UNUSED( abs_timeout ) )
See wpthread.cpp |
int |
pthread_mutex_trylock( pthread_mutex_t* m )
See wpthread.cpp |
int |
pthread_mutex_unlock( pthread_mutex_t* m )
See wpthread.cpp |
int |
pthread_once( pthread_once_t* once, void ( * init_routine )( void ) )
See wpthread.cpp |
pthread_t |
pthread_self( void )
See wpthread.cpp |
int |
pthread_setschedparam( pthread_t thread, int policy, const struct sched_param* param )
See wpthread.cpp |
int |
pthread_setspecific( pthread_key_t key, const void* value )
See wpthread.cpp |
int |
read( int fd, void* buf, size_t nbytes )
See waio.cpp |
|
readdir( DIR* d_ )
See wfilesystem.cpp |
int |
readdir_stat_np( DIR* d_, struct stat* s )
See wfilesystem.cpp |
char* |
realpath( const char* fn, char* path )
See wfilesystem.cpp |
EXTERN_C __declspec( dllimport ) ssize_t __stdcall |
recv( int, void*, size_t, int )
See wsock.h |
EXTERN_C __declspec( dllimport ) ssize_t __stdcall |
recvfrom( int, void*, size_t, int, struct sockaddr*, socklen_t* )
See wsock.h |
static Req* |
req_alloc( aiocb* cb )
See waio.cpp |
static void |
req_cleanup( void )
See waio.cpp |
static Req* |
req_find( const aiocb* cb )
See waio.cpp |
static LibError |
req_free( Req* r )
See waio.cpp |
static void |
req_init()
See waio.cpp |
int |
rmdir( const char* path )
See wfilesystem.cpp |
int |
sem_close( sem_t* sem )
See wpthread.cpp |
int |
sem_destroy( sem_t* sem )
See wpthread.cpp |
int |
sem_init( sem_t* sem, int pshared, unsigned value )
See wpthread.cpp |
int |
sem_msgwait_np( sem_t* sem )
See wpthread.cpp |
sem_t* |
sem_open( const char* name, int oflag,... )
See wpthread.cpp |
int |
sem_post( sem_t* sem )
See wpthread.cpp |
int |
sem_timedwait( sem_t* sem, const struct timespec* abs_timeout )
See wpthread.cpp |
int |
sem_unlink( const char* UNUSED( name ) )
See wpthread.cpp |
int |
sem_wait( sem_t* sem )
See wpthread.cpp |
EXTERN_C __declspec( dllimport ) ssize_t __stdcall |
send( int, const void*, size_t, int )
See wsock.h |
EXTERN_C __declspec( dllimport ) ssize_t __stdcall |
sendto( int, const void*, size_t, int, const struct sockaddr*, socklen_t )
See wsock.h |
EXTERN_C __declspec( dllimport ) int __stdcall |
setsockopt( int, int, int, const void*, socklen_t )
See wsock.h |
EXTERN_C __declspec( dllimport ) int __stdcall |
shutdown( int, int )
See wsock.h |
uint |
sleep( uint sec )
See wtime.cpp |
EXTERN_C __declspec( dllimport ) int __stdcall |
socket( int, int, int )
See wsock.h |
size_t |
sys_max_sector_size()
associate async-capable handle with POSIX file descriptor (int) |
long |
sysconf( int name )
See wposix.cpp |
int |
tcgetattr( int fd, struct termios* termios_p )
See wterminal.cpp |
int |
tcsetattr( int fd, int, const struct termios* termios_p )
See wterminal.cpp |
static unsigned __stdcall |
thread_start( void* param )
See wpthread.cpp |
time_t |
time_t_from_local_filetime( FILETIME* ft )
See wfilesystem.cpp |
static timespec |
TimespecFromNs( i64 ns )
See wtime.cpp |
static u64 |
u64_from_FILETIME( const FILETIME* ft )
See wtime.cpp |
int |
uname( struct utsname* un )
See wutsname.cpp |
static void |
unlock()
See waio.cpp |
int |
usleep( useconds_t us )
See wtime.cpp |
static void* |
void_from_HMODULE( HMODULE hModule )
See wdlfcn.cpp |
static LibError |
waio_Init()
See waio.cpp |
static LibError |
waio_Shutdown()
See waio.cpp |
static inline WDIR* |
wdir_alloc()
See wfilesystem.cpp |
static inline void |
wdir_free( WDIR* d )
See wfilesystem.cpp |
static DWORD |
win32_prot( int prot )
See wmman.cpp |
|
WINIT_REGISTER_CRITICAL_INIT( wposix_Init )
========================================================================= File : wposix. |
|
WINIT_REGISTER_MAIN_INIT( waio_Init )
========================================================================= File : waio. |
|
WINIT_REGISTER_MAIN_INIT( wtime_Init )
========================================================================= File : wtime. |
|
WINIT_REGISTER_MAIN_INIT( wsock_Init )
========================================================================= File : wsock. |
|
WINIT_REGISTER_MAIN_SHUTDOWN( wsock_Shutdown )
See wsock.cpp |
|
WINIT_REGISTER_MAIN_SHUTDOWN( waio_Shutdown )
See waio.cpp |
static LibError |
wposix_Init()
See wposix.cpp |
int |
write( int fd, void* buf, size_t nbytes )
See waio.cpp |
static LibError |
wsock_ActualInit()
See wsock.cpp |
static LibError |
wsock_Init()
See wsock.cpp |
static LibError |
wsock_Shutdown()
See wsock.cpp |
static LibError |
wtime_Init()
See wtime.cpp |
time_t |
wtime_utc_filetime_to_time_t( FILETIME* ft )
See wtime.cpp |
Macro Summary | |
#define |
IMP(ret, name, param) EXTERN_C __declspec(dllimport) ret __stdcall name param
See wsock.h |
#define |
S_ISDIR(m) (m & S_IFDIR)
See wfilesystem.h |
#define |
S_ISREG(m) (m & S_IFREG)
See wfilesystem.h |
#define |
sched_get_priority_max(policy) +2
See wpthread.h |
#define |
sched_get_priority_min(policy) -2
See wpthread.h |
Field Detail |
static const long _1e3;
static const long _1e6;
static const long _1e7;
static const i64 _1e9;
static HANDLE* aio_hs;
static int aio_hs_size;
anonymous_struct_1 dtors[ MAX_DTORS ];
static WDIR global_wdir;
static uintptr_t global_wdir_is_in_use;
static const DWORD hs;
const struct in6_addr in6addr_any;
static ModuleInitState initState;
static const uint MAX_DTORS;
const int MAX_REQS;
static DWORD numProcessors;
static DWORD pageSize;
static void( WINAPI* pfreeaddrinfo )( struct addrinfo* );
static int( WINAPI* pgetaddrinfo )( const char*, const char*, const struct addrinfo*, struct addrinfo** );
static int( WINAPI* pgetnameinfo )( const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, unsigned int );
static BOOL( WINAPI* pGlobalMemoryStatusEx )( MEMORYSTATUSEX* );
static const u64 posix_epoch_hns;
static Req reqs[ MAX_REQS ];
static HANDLE std_h[ 2 ];
static i64 stInitial_ns;
static const uint TLS_LIMIT;
Method Detail |
void _get_console();
void _hide_console();
EXTERN_C __declspec( dllimport ) int __stdcall accept( int, struct sockaddr*, socklen_t* );
int access( const char* path, int mode );
int aio_cancel( int fd, struct aiocb* cb );
int aio_close( int fd );
int aio_error( const struct aiocb* cb );
int aio_fsync( int, struct aiocb* );
static void aio_h_cleanup();
static HANDLE aio_h_get( const int fd );
static bool aio_h_is_set( const int fd );
static LibError aio_h_set( const int fd, const HANDLE h );
int aio_read( struct aiocb* cb );
int aio_reopen( int fd, const char* fn, int oflag,... );
ssize_t aio_return( struct aiocb* cb );
static int aio_rw( struct aiocb* cb );
int aio_suspend( const struct aiocb* const cbs[], int n, const struct timespec* ts );
int aio_write( struct aiocb* cb );
EXTERN_C __declspec( dllimport ) int __stdcall bind( int, const struct sockaddr*, socklen_t );
static DWORD calc_timeout_length_ms( const struct timespec* abs_timeout, bool& timeout_is_valid );
static void call_tls_dtors();
int clock_getres( clockid_t clock, struct timespec* ts );
int clock_gettime( clockid_t clock, struct timespec* ts );
int close( int fd );
int closedir( DIR* d_ );
EXTERN_C __declspec( dllimport ) int __stdcall closesocket( int );
EXTERN_C __declspec( dllimport ) int __stdcall connect( int, const struct sockaddr*, socklen_t );
static i64 CurrentSystemTime_ns();
static void detect_filesystem();
int dlclose( void* handle );
char* dlerror( void );
void* dlopen( const char* so_name, int flags );
void* dlsym( void* handle, const char* sym_name );
static time_t filetime_to_time_t( FILETIME* ft );
void freeaddrinfo( struct addrinfo* ai );
int getaddrinfo( const char* nodename, const char* servname, const struct addrinfo* hints, struct addrinfo** res );
char* getcwd( char* buf, size_t buf_size );
EXTERN_C __declspec( dllimport ) struct hostent* __stdcall gethostbyname( const char* name );
EXTERN_C __declspec( dllimport ) int __stdcall gethostname( char*, int );
int getnameinfo( const struct sockaddr* sa, socklen_t salen, char* host, socklen_t hostlen, char* serv, socklen_t servlen, unsigned int flags );
EXTERN_C __declspec( dllimport ) int __stdcall getsockopt( int, int, int, void*, socklen_t* );
inline HANDLE HANDLE_from_intptr( intptr_t i );
static HANDLE HANDLE_from_pthread( pthread_t p );
static HANDLE HANDLE_from_sem_t( sem_t* sem );
static HMODULE HMODULE_from_void( void* handle );
EXTERN_C __declspec( dllimport ) unsigned long __stdcall htonl( unsigned long hostlong );
EXTERN_C __declspec( dllimport ) unsigned short __stdcall htons( unsigned short hostlong );
static void ImportOptionalFunctions();
EXTERN_C __declspec( dllimport ) in_addr_t __stdcall inet_addr( const char* );
EXTERN_C __declspec( dllimport ) char* __stdcall inet_ntoa( in_addr );
static void InitSysconf();
int ioctl( int fd, int op, int* data );
EXTERN_C __declspec( dllimport ) int __stdcall ioctlsocket( int, int, const void* );
static bool is_normal_dir( const char* path );
static bool is_valid_file_handle( const HANDLE h );
static bool isAioPossible( int fd, bool is_com_port, int oflag );
static void LatchInitialSystemTime();
int lio_listio( int mode, struct aiocb* const cbs[], int n, struct sigevent* se );
EXTERN_C __declspec( dllimport ) int __stdcall listen( int, int );
static void lock();
off_t lseek( int fd, off_t ofs, int whence );
int mkdir( const char* path, mode_t UNUSED( mode ) );
void* mmap( void* start, size_t len, int prot, int flags, int fd, off_t ofs );
static LibError mmap_file( void* start, size_t len, int prot, int flags, int fd, off_t ofs, void** pp );
static LibError mmap_file_access( int prot, int flags, DWORD& flProtect, DWORD& dwAccess );
static LibError mmap_mem( void* start, size_t len, int prot, int flags, int fd, void** pp );
int mprotect( void* addr, size_t len, int prot );
static uint MsFromTimespec( const timespec& ts );
int munmap( void* start, size_t UNUSED( len ) );
int nanosleep( const struct timespec* rqtp, struct timespec* );
EXTERN_C __declspec( dllimport ) unsigned long __stdcall ntohl( unsigned long hostlong );
EXTERN_C __declspec( dllimport ) unsigned short __stdcall ntohs( unsigned short hostlong );
int open( const char* fn, int oflag,... );
DIR* opendir( const char* path );
int poll( struct pollfd[], int, int );
int pthread_cancel( pthread_t thread );
int pthread_create( pthread_t* thread_id, const void* UNUSED( attr ), void* ( * func )( void* ), void* arg );
static pthread_t pthread_from_HANDLE( HANDLE h );
int pthread_getschedparam( pthread_t thread, int* policy, struct sched_param* param );
void* pthread_getspecific( pthread_key_t key );
int pthread_join( pthread_t thread, void** value_ptr );
int pthread_key_create( pthread_key_t* key, void ( * dtor )( void* ) );
int pthread_key_delete( pthread_key_t key );
int pthread_mutex_destroy( pthread_mutex_t* m );
int pthread_mutex_init( pthread_mutex_t* m, const pthread_mutexattr_t* );
pthread_mutex_t pthread_mutex_initializer();
int pthread_mutex_lock( pthread_mutex_t* m );
int pthread_mutex_timedlock( pthread_mutex_t* UNUSED( m ), const struct timespec* UNUSED( abs_timeout ) );
int pthread_mutex_trylock( pthread_mutex_t* m );
int pthread_mutex_unlock( pthread_mutex_t* m );
int pthread_once( pthread_once_t* once, void ( * init_routine )( void ) );
pthread_t pthread_self( void );
int pthread_setschedparam( pthread_t thread, int policy, const struct sched_param* param );
int pthread_setspecific( pthread_key_t key, const void* value );
int read( int fd, void* buf, size_t nbytes );
readdir( DIR* d_ );
int readdir_stat_np( DIR* d_, struct stat* s );
char* realpath( const char* fn, char* path );
EXTERN_C __declspec( dllimport ) ssize_t __stdcall recv( int, void*, size_t, int );
EXTERN_C __declspec( dllimport ) ssize_t __stdcall recvfrom( int, void*, size_t, int, struct sockaddr*, socklen_t* );
static Req* req_alloc( aiocb* cb );
static void req_cleanup( void );
static Req* req_find( const aiocb* cb );
static LibError req_free( Req* r );
static void req_init();
int rmdir( const char* path );
int sem_close( sem_t* sem );
int sem_destroy( sem_t* sem );
int sem_init( sem_t* sem, int pshared, unsigned value );
int sem_msgwait_np( sem_t* sem );
sem_t* sem_open( const char* name, int oflag,... );
int sem_post( sem_t* sem );
int sem_timedwait( sem_t* sem, const struct timespec* abs_timeout );
int sem_unlink( const char* UNUSED( name ) );
int sem_wait( sem_t* sem );
EXTERN_C __declspec( dllimport ) ssize_t __stdcall send( int, const void*, size_t, int );
EXTERN_C __declspec( dllimport ) ssize_t __stdcall sendto( int, const void*, size_t, int, const struct sockaddr*, socklen_t );
EXTERN_C __declspec( dllimport ) int __stdcall setsockopt( int, int, int, const void*, socklen_t );
EXTERN_C __declspec( dllimport ) int __stdcall shutdown( int, int );
uint sleep( uint sec );
EXTERN_C __declspec( dllimport ) int __stdcall socket( int, int, int );
size_t sys_max_sector_size();
long sysconf( int name );
int tcgetattr( int fd, struct termios* termios_p );
int tcsetattr( int fd, int, const struct termios* termios_p );
static unsigned __stdcall thread_start( void* param );
time_t time_t_from_local_filetime( FILETIME* ft );
static timespec TimespecFromNs( i64 ns );
static u64 u64_from_FILETIME( const FILETIME* ft );
int uname( struct utsname* un );
static void unlock();
int usleep( useconds_t us );
static void* void_from_HMODULE( HMODULE hModule );
static LibError waio_Init();
static LibError waio_Shutdown();
static inline WDIR* wdir_alloc();
static inline void wdir_free( WDIR* d );
static DWORD win32_prot( int prot );
WINIT_REGISTER_CRITICAL_INIT( wposix_Init );
WINIT_REGISTER_MAIN_INIT( waio_Init );
WINIT_REGISTER_MAIN_INIT( wtime_Init );
WINIT_REGISTER_MAIN_INIT( wsock_Init );
WINIT_REGISTER_MAIN_SHUTDOWN( wsock_Shutdown );
WINIT_REGISTER_MAIN_SHUTDOWN( waio_Shutdown );
static LibError wposix_Init();
int write( int fd, void* buf, size_t nbytes );
static LibError wsock_ActualInit();
static LibError wsock_Init();
static LibError wsock_Shutdown();
static LibError wtime_Init();
time_t wtime_utc_filetime_to_time_t( FILETIME* ft );
Symbol Detail |
#define __STDC__ 0
#define _INC_DIRECT
#define _INC_IO
#define _SC_AVPHYS_PAGES 3
#define _SC_NPROCESSORS_CONF 4
#define _SC_PAGE_SIZE 1
#define _SC_PAGESIZE 1
#define _SC_PHYS_PAGES 2
#define AF_INET 2
#define AF_INET6 23
#define AI_PASSIVE 0x1
#define E2BIG 7
#define EACCES 13
#define EADDRINUSE 48
#define EADDRNOTAVAIL 49
#define EAFNOSUPPORT 47
#define EAGAIN 11
#define EAI_NONAME HOST_NOT_FOUND
#define EALREADY 37
#define EBADF 9
#define EBADMSG 74
#define EBUSY 16
#define ECANCELED 125
#define ECHILD 10
#define ECHO 4
#define ECONNABORTED 53
#define ECONNREFUSED 61
#define ECONNRESET 54
#define EDEADLK 35
#define EDESTADDRREQ 39
#define EDOM 33
#define EDQUOT 69
#define EEXIST 17
#define EFAULT 14
#define EFBIG 27
#define EHOSTDOWN 64
#define EHOSTUNREACH 65
#define EIDRM 43
#define EILSEQ 84
#define EINPROGRESS 36
#define EINTR 4
#define EINVAL 22
#define EIO 5
#define EISCONN 56
#define EISDIR 21
#define ELOOP 62
#define EMFILE 24
#define EMLINK 31
#define EMSGSIZE 40
#define EMULTIHOP 72
#define ENAMETOOLONG 36
#define ENETDOWN 50
#define ENETRESET 52
#define ENETUNREACH 51
#define ENFILE 23
#define ENOBUFS 55
#define ENODEV 19
#define ENOENT 2
#define ENOEXEC 8
#define ENOLCK 37
#define ENOLINK 67
#define ENOMEM 12
#define ENOMSG 42
#define ENOPROTOOPT 42
#define ENOSPC 28
#define ENOSYS 38
#define ENOTCONN 57
#define ENOTDIR 20
#define ENOTEMPTY 39
#define ENOTSOCK 38
#define ENOTTY 25
#define ENXIO 6
#define EOPNOTSUPP 45
#define EOVERFLOW 75
#define EPERM 1
#define EPFNOSUPPORT 46
#define EPIPE 32
#define EPROCLIM 67
#define EPROTO 71
#define EPROTONOSUPPORT 43
#define EPROTOTYPE 41
#define ERANGE 34
#define EREMOTE 71
#define ESHUTDOWN 58
#define ESOCKTNOSUPPORT 44
#define ESPIPE 29
#define ESRCH 3
#define ESTALE 70
#define ETIMEDOUT 60
#define ETOOMANYREFS 59
#define EUSERS 68
#define EWOULDBLOCK 35
#define F_OK 0
#define FD_ACCEPT 0x08
#define FD_CLOSE 0x20
#define FD_CONNECT 0x10
#define FD_READ 0x01
#define FD_WRITE 0x02
#define FIONBIO 0x8004667E
#define FIONREAD 0
#define h_error WSAGetLastError()
#define HAVE_CLOCK_GETTIME 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_SSIZE_T
#define HOST_NOT_FOUND 11001
#define ICANON 2
#define IN6ADDR_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }
#define in6addr_loopback PS_in6addr_loopback
#define IN6ADDR_LOOPBACK_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } }
#define INADDR_ANY 0
#define INADDR_LOOPBACK 0x7f000001
#define INADDR_NONE ((in_addr_t)-1)
#define INCLUDED_WAIO
#define INCLUDED_WDLFCN
#define INCLUDED_WERRNO
#define INCLUDED_WFILESYSTEM
#define INCLUDED_WMMAN
#define INCLUDED_WPOSIX
#define INCLUDED_WPOSIX_INTERNAL
#define INCLUDED_WPOSIX_TYPES
#define INCLUDED_WPTHREAD
#define INCLUDED_WSOCK
#define INCLUDED_WTERMINAL
#define INCLUDED_WTIME
#define INCLUDED_WTIME_INTERNAL
#define INCLUDED_WUTSNAME
#define INET_ADDRSTRLEN 16
#define INT16_MAX 32767
#define INT16_MIN -32768
#define IP_ADD_MEMBERSHIP 5
#define IP_DROP_MEMBERSHIP 6
#define IPPROTO_IP 0
#define MAP_ANONYMOUS 0x10
#define MAP_FAILED ((void*)-1L)
#define MAP_FIXED 0x04
#define MAP_NORESERVE 0x20
#define MAP_PRIVATE 0x02
#define MAP_SHARED 0x01
#define NI_MAXHOST 1025
#define NI_MAXSERV 32
#define NI_NUMERICHOST 0x02
#define O_BINARY_NP 0x8000
#define O_NO_AIO_NP 0x20000
#define O_NONBLOCK 0x1000000
#define O_TEXT_NP 0x4000
#define PATH_MAX 256
#define PF_INET AF_INET
#define PF_INET6 AF_INET6
#define POLLIN 1
#define PROT_EXEC 0x04
#define PROT_NONE 0x00
#define PROT_READ 0x01
#define PROT_WRITE 0x02
#define PTHREAD_MUTEX_INITIALIZER pthread_mutex_initializer()
#define PTHREAD_ONCE_INIT 0
#define R_OK 4
#define RTLD_GLOBAL 0x04
#define RTLD_LAZY 0x01
#define RTLD_LOCAL 0x08
#define RTLD_NOW 0x02
#define S_IRWXG 0xFFFF
#define S_IRWXO 0xFFFF
#define S_IRWXU 0xFFFF
#define SEM_FAILED 0
#define SIZE_MAX 0xFFFFFFFFFFFFFFFF
#define SOCK_DGRAM 2
#define SOCK_STREAM 1
#define SOL_SOCKET 0xFFFF
#define TCP_NODELAY 0x0001
#define TCSANOW 0
#define TIOCM_CD 0x80
#define TIOCM_CTS 0x10
#define TIOCM_RTS 1
#define TRY_AGAIN 11002
#define UINT16_MAX 65536u
#define UINT16_MIN 0u
#define W_OK 2
#define WPOSIX_DEFINED_DIRECT_INCLUDE_GUARD
#define WPOSIX_DEFINED_IO_INCLUDE_GUARD
#define X_OK 0
Macro Detail |
#define IMP(ret, name, param) EXTERN_C __declspec(dllimport) ret __stdcall name param;
#define S_ISDIR(m) (m & S_IFDIR)
#define S_ISREG(m) (m & S_IFREG)
#define sched_get_priority_max(policy) +2
#define sched_get_priority_min(policy) -2
|
0 A.D.
Generated on September 04, 2007 at 18:13 CppDoc v2.4.0 |
|||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |