Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.sysdep.win.wposix
(lib.sysdep.win.wposix globals)

   in crt_posix.h
   in no_crt_posix.h
   in waio.h
   in wdlfcn.h
   in werrno.h
   in wfilesystem.h
   in wmman.h
   in wposix.h
   in wposix_internal.h
   in wposix_types.h
   in wpthread.h
   in wsock.h
   in wterminal.h
   in wtime.h
   in wtime_internal.h
   in wutsname.h
   in wposix_internal.h
   in wsock.h
   in waio.cpp
   in wdlfcn.cpp
   in wfilesystem.cpp
   in wmman.cpp
   in wposix.cpp
   in wpthread.cpp
   in wsock.cpp
   in wterminal.cpp
   in wtime.cpp
   in wutsname.cpp

(lib.sysdep.win.wposix globals)


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
 
Symbol Summary
 #define __STDC__ 0
          See crt_posix.h
 #define _INC_DIRECT
          See no_crt_posix.h
 #define _INC_IO
          See no_crt_posix.h
 #define _SC_AVPHYS_PAGES 3
          See wposix.h
 #define _SC_NPROCESSORS_CONF 4
          See wposix.h
 #define _SC_PAGE_SIZE 1
          See wposix.h
 #define _SC_PAGESIZE 1
          See wposix.h
 #define _SC_PHYS_PAGES 2
          See wposix.h
 #define AF_INET 2
          See wsock.h
 #define AF_INET6 23
          See wsock.h
 #define AI_PASSIVE 0x1
          See wsock.h
 #define E2BIG 7
          See werrno.h
 #define EACCES 13
          See werrno.h
 #define EADDRINUSE 48
          See werrno.h
 #define EADDRNOTAVAIL 49
          See werrno.h
 #define EAFNOSUPPORT 47
          See werrno.h
 #define EAGAIN 11
          See werrno.h
 #define EAI_NONAME HOST_NOT_FOUND
          See wsock.h
 #define EALREADY 37
          See werrno.h
 #define EBADF 9
          See werrno.h
 #define EBADMSG 74
          See werrno.h
 #define EBUSY 16
          See werrno.h
 #define ECANCELED 125
          See werrno.h
 #define ECHILD 10
          See werrno.h
 #define ECHO 4
          See wterminal.h
 #define ECONNABORTED 53
          See werrno.h
 #define ECONNREFUSED 61
          See werrno.h
 #define ECONNRESET 54
          See werrno.h
 #define EDEADLK 35
          See werrno.h
 #define EDESTADDRREQ 39
          See werrno.h
 #define EDOM 33
          See werrno.h
 #define EDQUOT 69
          See werrno.h
 #define EEXIST 17
          See werrno.h
 #define EFAULT 14
          See werrno.h
 #define EFBIG 27
          See werrno.h
 #define EHOSTDOWN 64
          See werrno.h
 #define EHOSTUNREACH 65
          See werrno.h
 #define EIDRM 43
          See werrno.h
 #define EILSEQ 84
          See werrno.h
 #define EINPROGRESS 36
          See werrno.h
 #define EINTR 4
          See werrno.h
 #define EINVAL 22
          See werrno.h
 #define EIO 5
          See werrno.h
 #define EISCONN 56
          See werrno.h
 #define EISDIR 21
          See werrno.h
 #define ELOOP 62
          See werrno.h
 #define EMFILE 24
          See werrno.h
 #define EMLINK 31
          See werrno.h
 #define EMSGSIZE 40
          See werrno.h
 #define EMULTIHOP 72
          See werrno.h
 #define ENAMETOOLONG 36
          See werrno.h
 #define ENETDOWN 50
          See werrno.h
 #define ENETRESET 52
          See werrno.h
 #define ENETUNREACH 51
          See werrno.h
 #define ENFILE 23
          See werrno.h
 #define ENOBUFS 55
          See werrno.h
 #define ENODEV 19
          See werrno.h
 #define ENOENT 2
          See werrno.h
 #define ENOEXEC 8
          See werrno.h
 #define ENOLCK 37
          See werrno.h
 #define ENOLINK 67
          See werrno.h
 #define ENOMEM 12
          See werrno.h
 #define ENOMSG 42
          See werrno.h
 #define ENOPROTOOPT 42
          See werrno.h
 #define ENOSPC 28
          See werrno.h
 #define ENOSYS 38
          See werrno.h
 #define ENOTCONN 57
          See werrno.h
 #define ENOTDIR 20
          See werrno.h
 #define ENOTEMPTY 39
          See werrno.h
 #define ENOTSOCK 38
          See werrno.h
 #define ENOTTY 25
          See werrno.h
 #define ENXIO 6
          See werrno.h
 #define EOPNOTSUPP 45
          See werrno.h
 #define EOVERFLOW 75
          See werrno.h
 #define EPERM 1
          See werrno.h
 #define EPFNOSUPPORT 46
          See werrno.h
 #define EPIPE 32
          See werrno.h
 #define EPROCLIM 67
          See werrno.h
 #define EPROTO 71
          See werrno.h
 #define EPROTONOSUPPORT 43
          See werrno.h
 #define EPROTOTYPE 41
          See werrno.h
 #define ERANGE 34
          See werrno.h
 #define EREMOTE 71
          See werrno.h
 #define ESHUTDOWN 58
          See werrno.h
 #define ESOCKTNOSUPPORT 44
          See werrno.h
 #define ESPIPE 29
          See werrno.h
 #define ESRCH 3
          See werrno.h
 #define ESTALE 70
          See werrno.h
 #define ETIMEDOUT 60
          See werrno.h
 #define ETOOMANYREFS 59
          See werrno.h
 #define EUSERS 68
          See werrno.h
 #define EWOULDBLOCK 35
          See werrno.h
 #define F_OK 0
          See wfilesystem.h
 #define FD_ACCEPT 0x08
          See wsock.h
 #define FD_CLOSE 0x20
          See wsock.h
 #define FD_CONNECT 0x10
          See wsock.h
 #define FD_READ 0x01
          See wsock.h
 #define FD_WRITE 0x02
          See wsock.h
 #define FIONBIO 0x8004667E
          See wsock.h
 #define FIONREAD 0
          See wterminal.h
 #define h_error WSAGetLastError()
          See wsock.h
 #define HAVE_CLOCK_GETTIME 1
          See wtime.h
 #define HAVE_GETTIMEOFDAY 1
          See wtime.h
 #define HAVE_SSIZE_T
          See wposix_types.h
 #define HOST_NOT_FOUND 11001
          See wsock.h
 #define ICANON 2
          See wterminal.h
 #define IN6ADDR_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }
          See wsock.h
 #define in6addr_loopback PS_in6addr_loopback
          See wsock.cpp
 #define IN6ADDR_LOOPBACK_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } }
          See wsock.h
 #define INADDR_ANY 0
          See wsock.h
 #define INADDR_LOOPBACK 0x7f000001
          See wsock.h
 #define INADDR_NONE ((in_addr_t)-1)
          See wsock.h
 #define INCLUDED_WAIO
          See waio.h
 #define INCLUDED_WDLFCN
          See wdlfcn.h
 #define INCLUDED_WERRNO
          See werrno.h
 #define INCLUDED_WFILESYSTEM
          See wfilesystem.h
 #define INCLUDED_WMMAN
          See wmman.h
 #define INCLUDED_WPOSIX
          See wposix.h
 #define INCLUDED_WPOSIX_INTERNAL
          See wposix_internal.h
 #define INCLUDED_WPOSIX_TYPES
          See wposix_types.h
 #define INCLUDED_WPTHREAD
          See wpthread.h
 #define INCLUDED_WSOCK
          See wsock.h
 #define INCLUDED_WTERMINAL
          See wterminal.h
 #define INCLUDED_WTIME
          See wtime.h
 #define INCLUDED_WTIME_INTERNAL
          See wtime_internal.h
 #define INCLUDED_WUTSNAME
          See wutsname.h
 #define INET_ADDRSTRLEN 16
          See wsock.h
 #define INT16_MAX 32767
          See wposix_types.h
 #define INT16_MIN -32768
          See wposix_types.h
 #define IP_ADD_MEMBERSHIP 5
          See wsock.h
 #define IP_DROP_MEMBERSHIP 6
          See wsock.h
 #define IPPROTO_IP 0
          See wsock.h
 #define MAP_ANONYMOUS 0x10
          See wmman.h
 #define MAP_FAILED ((void*)-1L)
          See wmman.h
 #define MAP_FIXED 0x04
          See wmman.h
 #define MAP_NORESERVE 0x20
          See wmman.h
 #define MAP_PRIVATE 0x02
          See wmman.h
 #define MAP_SHARED 0x01
          See wmman.h
 #define NI_MAXHOST 1025
          See wsock.h
 #define NI_MAXSERV 32
          See wsock.h
 #define NI_NUMERICHOST 0x02
          See wsock.h
 #define O_BINARY_NP 0x8000
          See waio.h
 #define O_NO_AIO_NP 0x20000
          See waio.h
 #define O_NONBLOCK 0x1000000
          See waio.h
 #define O_TEXT_NP 0x4000
          See waio.h
 #define PATH_MAX 256
          See wposix_types.h
 #define PF_INET AF_INET
          See wsock.h
 #define PF_INET6 AF_INET6
          See wsock.h
 #define POLLIN 1
          See wterminal.h
 #define PROT_EXEC 0x04
          See wmman.h
 #define PROT_NONE 0x00
          See wmman.h
 #define PROT_READ 0x01
          See wmman.h
 #define PROT_WRITE 0x02
          See wmman.h
 #define PTHREAD_MUTEX_INITIALIZER pthread_mutex_initializer()
          See wpthread.h
 #define PTHREAD_ONCE_INIT 0
          See wpthread.h
 #define R_OK 4
          See wfilesystem.h
 #define RTLD_GLOBAL 0x04
          See wdlfcn.h
 #define RTLD_LAZY 0x01
          See wdlfcn.h
 #define RTLD_LOCAL 0x08
          See wdlfcn.h
 #define RTLD_NOW 0x02
          See wdlfcn.h
 #define S_IRWXG 0xFFFF
          See wfilesystem.h
 #define S_IRWXO 0xFFFF
          See wfilesystem.h
 #define S_IRWXU 0xFFFF
          See wfilesystem.h
 #define SEM_FAILED 0
          See wpthread.h
 #define SIZE_MAX 0xFFFFFFFFFFFFFFFF
          See wposix_types.h
 #define SOCK_DGRAM 2
          See wsock.h
 #define SOCK_STREAM 1
          See wsock.h
 #define SOL_SOCKET 0xFFFF
          See wsock.h
 #define TCP_NODELAY 0x0001
          See wsock.h
 #define TCSANOW 0
          See wterminal.h
 #define TIOCM_CD 0x80
          See wterminal.h
 #define TIOCM_CTS 0x10
          See wterminal.h
 #define TIOCM_RTS 1
          See wterminal.h
 #define TRY_AGAIN 11002
          See wsock.h
 #define UINT16_MAX 65536u
          See wposix_types.h
 #define UINT16_MIN 0u
          See wposix_types.h
 #define W_OK 2
          See wfilesystem.h
 #define WPOSIX_DEFINED_DIRECT_INCLUDE_GUARD
          See no_crt_posix.h
 #define WPOSIX_DEFINED_IO_INCLUDE_GUARD
          See no_crt_posix.h
 #define X_OK 0
          See wfilesystem.h
 
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

_1e3

 static const long _1e3;
See wtime.cpp.

_1e6

 static const long _1e6;
See wtime.cpp.

_1e7

 static const long _1e7;
See wtime.cpp.

_1e9

 static const i64 _1e9;
See wtime.cpp.

aio_hs

 static HANDLE* aio_hs;
See waio.cpp.

aio_hs_size

 static int aio_hs_size;
See waio.cpp.

dtors

 anonymous_struct_1 dtors[ MAX_DTORS ];
See wpthread.cpp.

global_wdir

 static WDIR global_wdir;
See wfilesystem.cpp.

global_wdir_is_in_use

 static uintptr_t global_wdir_is_in_use;
See wfilesystem.cpp.

hs

 static const DWORD hs;
See wfilesystem.cpp.

in6addr_any

 const struct in6_addr in6addr_any;
See wsock.cpp.

initState

 static ModuleInitState initState;
See wsock.cpp.

MAX_DTORS

 static const uint MAX_DTORS;
See wpthread.cpp.

MAX_REQS

 const int MAX_REQS;
See waio.cpp.

numProcessors

 static DWORD numProcessors;
See wposix.cpp.

pageSize

 static DWORD pageSize;
See wposix.cpp.

pfreeaddrinfo

 static void( WINAPI* pfreeaddrinfo )( struct addrinfo* );
See wsock.cpp.

pgetaddrinfo

 static int( WINAPI* pgetaddrinfo )( const char*, const char*, const struct addrinfo*, struct addrinfo** );
See wsock.cpp.

pgetnameinfo

 static int( WINAPI* pgetnameinfo )( const struct sockaddr*, socklen_t, char*, socklen_t, char*, socklen_t, unsigned int );
See wsock.cpp.

pGlobalMemoryStatusEx

 static BOOL( WINAPI* pGlobalMemoryStatusEx )( MEMORYSTATUSEX* );
See wposix.cpp.

posix_epoch_hns

 static const u64 posix_epoch_hns;
See wtime.cpp.

reqs

 static Req reqs[ MAX_REQS ];
See waio.cpp.

std_h

 static HANDLE std_h[ 2 ];
See wterminal.cpp.

stInitial_ns

 static i64 stInitial_ns;
See wtime.cpp.

TLS_LIMIT

 static const uint TLS_LIMIT;
See wpthread.cpp.


Method Detail

_get_console

 void _get_console();
See wterminal.cpp.

_hide_console

 void _hide_console();
See wterminal.cpp.

accept

 EXTERN_C __declspec( dllimport ) int __stdcall accept( int, struct sockaddr*, socklen_t* );
See wsock.h.

access

 int access( const char* path, int mode );
See wfilesystem.cpp.

aio_cancel

 int aio_cancel( int fd, struct aiocb* cb );
See waio.cpp.

aio_close

 int aio_close( int fd );
See waio.cpp.

aio_error

 int aio_error( const struct aiocb* cb );
See waio.cpp.

aio_fsync

 int aio_fsync( int, struct aiocb* );
init / cleanup
See waio.cpp.

aio_h_cleanup

 static void aio_h_cleanup();
See waio.cpp.

aio_h_get

 static HANDLE aio_h_get( const int fd );
See waio.cpp.

aio_h_is_set

 static bool aio_h_is_set( const int fd );
See waio.cpp.

aio_h_set

 static LibError aio_h_set( const int fd, const HANDLE h );
See waio.cpp.

aio_read

 int aio_read( struct aiocb* cb );
See waio.cpp.

aio_reopen

 int aio_reopen( int fd, const char* fn, int oflag,... );
See waio.cpp.

aio_return

 ssize_t aio_return( struct aiocb* cb );
See waio.cpp.

aio_rw

 static int aio_rw( struct aiocb* cb );
See waio.cpp.

aio_suspend

 int aio_suspend( const struct aiocb* const cbs[], int n, const struct timespec* ts );
See waio.cpp.

aio_write

 int aio_write( struct aiocb* cb );
See waio.cpp.

bind

 EXTERN_C __declspec( dllimport ) int __stdcall bind( int, const struct sockaddr*, socklen_t );
See wsock.h.

calc_timeout_length_ms

 static DWORD calc_timeout_length_ms( const struct timespec* abs_timeout, bool& timeout_is_valid );
See wpthread.cpp.

call_tls_dtors

 static void call_tls_dtors();
See wpthread.cpp.

clock_getres

 int clock_getres( clockid_t clock, struct timespec* ts );
See wtime.cpp.

clock_gettime

 int clock_gettime( clockid_t clock, struct timespec* ts );
See wtime.cpp.

close

 int close( int fd );
See waio.cpp.

closedir

 int closedir( DIR* d_ );
See wfilesystem.cpp.

closesocket

 EXTERN_C __declspec( dllimport ) int __stdcall closesocket( int );
See wsock.h.

connect

 EXTERN_C __declspec( dllimport ) int __stdcall connect( int, const struct sockaddr*, socklen_t );
See wsock.h.

CurrentSystemTime_ns

 static i64 CurrentSystemTime_ns();
See wtime.cpp.

detect_filesystem

 static void detect_filesystem();
See wfilesystem.cpp.

dlclose

 int dlclose( void* handle );
See wdlfcn.cpp.

dlerror

 char* dlerror( void );
See wdlfcn.cpp.

dlopen

 void* dlopen( const char* so_name, int flags );
See wdlfcn.cpp.

dlsym

 void* dlsym( void* handle, const char* sym_name );
See wdlfcn.cpp.

filetime_to_time_t

 static time_t filetime_to_time_t( FILETIME* ft );
See wfilesystem.cpp.

freeaddrinfo

 void freeaddrinfo( struct addrinfo* ai );
See wsock.cpp.

getaddrinfo

 int getaddrinfo( const char* nodename, const char* servname, const struct addrinfo* hints, struct addrinfo** res );
See wsock.cpp.

getcwd

 char* getcwd( char* buf, size_t buf_size );
See wposix.cpp.

gethostbyname

 EXTERN_C __declspec( dllimport ) struct hostent* __stdcall gethostbyname( const char* name );
See wsock.h.

gethostname

 EXTERN_C __declspec( dllimport ) int __stdcall gethostname( char*, int );
========================================================================= File : wsock.h Project : 0 A.D. Description : emulate Berkeley sockets on Windows. =========================================================================
See wsock.h.

getnameinfo

 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.

getsockopt

 EXTERN_C __declspec( dllimport ) int __stdcall getsockopt( int, int, int, void*, socklen_t* );
See wsock.h.

HANDLE_from_intptr

 inline HANDLE HANDLE_from_intptr( intptr_t i );
See wposix_internal.h.

HANDLE_from_pthread

 static HANDLE HANDLE_from_pthread( pthread_t p );
========================================================================= File : wpthread.cpp Project : 0 A.D. Description : emulate pthreads on Windows. =========================================================================
See wpthread.cpp.

HANDLE_from_sem_t

 static HANDLE HANDLE_from_sem_t( sem_t* sem );
See wpthread.cpp.

HMODULE_from_void

 static HMODULE HMODULE_from_void( void* handle );
See wdlfcn.cpp.

htonl

 EXTERN_C __declspec( dllimport ) unsigned long __stdcall htonl( unsigned long hostlong );
See wsock.h.

htons

 EXTERN_C __declspec( dllimport ) unsigned short __stdcall htons( unsigned short hostlong );
See wsock.h.

ImportOptionalFunctions

 static void ImportOptionalFunctions();
See wsock.cpp.

inet_addr

 EXTERN_C __declspec( dllimport ) in_addr_t __stdcall inet_addr( const char* );
See wsock.h.

inet_ntoa

 EXTERN_C __declspec( dllimport ) char* __stdcall inet_ntoa( in_addr );
See wsock.h.

InitSysconf

 static void InitSysconf();
See wposix.cpp.

ioctl

 int ioctl( int fd, int op, int* data );
See wterminal.cpp.

ioctlsocket

 EXTERN_C __declspec( dllimport ) int __stdcall ioctlsocket( int, int, const void* );
See wsock.h.

is_normal_dir

 static bool is_normal_dir( const char* path );
See wfilesystem.cpp.

is_valid_file_handle

 static bool is_valid_file_handle( const HANDLE h );
See waio.cpp.

isAioPossible

 static bool isAioPossible( int fd, bool is_com_port, int oflag );
See waio.cpp.

LatchInitialSystemTime

 static void LatchInitialSystemTime();
See wtime.cpp.

lio_listio

 int lio_listio( int mode, struct aiocb* const cbs[], int n, struct sigevent* se );
See waio.cpp.

listen

 EXTERN_C __declspec( dllimport ) int __stdcall listen( int, int );
See wsock.h.

lock

 static void lock();
See waio.cpp.

lseek

 off_t lseek( int fd, off_t ofs, int whence );
Req
See waio.cpp.

mkdir

 int mkdir( const char* path, mode_t UNUSED( mode ) );
See wfilesystem.cpp.

mmap

 void* mmap( void* start, size_t len, int prot, int flags, int fd, off_t ofs );
See wmman.cpp.

mmap_file

 static LibError mmap_file( void* start, size_t len, int prot, int flags, int fd, off_t ofs, void** pp );
See wmman.cpp.

mmap_file_access

 static LibError mmap_file_access( int prot, int flags, DWORD& flProtect, DWORD& dwAccess );
See wmman.cpp.

mmap_mem

 static LibError mmap_mem( void* start, size_t len, int prot, int flags, int fd, void** pp );
See wmman.cpp.

mprotect

 int mprotect( void* addr, size_t len, int prot );
See wmman.cpp.

MsFromTimespec

 static uint MsFromTimespec( const timespec& ts );
See wtime.cpp.

munmap

 int munmap( void* start, size_t UNUSED( len ) );
See wmman.cpp.

nanosleep

 int nanosleep( const struct timespec* rqtp, struct timespec* );
See wtime.cpp.

ntohl

 EXTERN_C __declspec( dllimport ) unsigned long __stdcall ntohl( unsigned long hostlong );
See wsock.h.

ntohs

 EXTERN_C __declspec( dllimport ) unsigned short __stdcall ntohs( unsigned short hostlong );
See wsock.h.

open

 int open( const char* fn, int oflag,... );
See waio.cpp.

opendir

 DIR* opendir( const char* path );
See wfilesystem.cpp.

poll

 int poll( struct pollfd[], int, int );
See wterminal.cpp.

pthread_cancel

 int pthread_cancel( pthread_t thread );
See wpthread.cpp.

pthread_create

 int pthread_create( pthread_t* thread_id, const void* UNUSED( attr ), void* ( * func )( void* ), void* arg );
See wpthread.cpp.

pthread_from_HANDLE

 static pthread_t pthread_from_HANDLE( HANDLE h );
See wpthread.cpp.

pthread_getschedparam

 int pthread_getschedparam( pthread_t thread, int* policy, struct sched_param* param );
See wpthread.cpp.

pthread_getspecific

 void* pthread_getspecific( pthread_key_t key );
See wpthread.cpp.

pthread_join

 int pthread_join( pthread_t thread, void** value_ptr );
See wpthread.cpp.

pthread_key_create

 int pthread_key_create( pthread_key_t* key, void ( * dtor )( void* ) );
See wpthread.cpp.

pthread_key_delete

 int pthread_key_delete( pthread_key_t key );
See wpthread.cpp.

pthread_mutex_destroy

 int pthread_mutex_destroy( pthread_mutex_t* m );
See wpthread.cpp.

pthread_mutex_init

 int pthread_mutex_init( pthread_mutex_t* m, const pthread_mutexattr_t* );
See wpthread.cpp.

pthread_mutex_initializer

 pthread_mutex_t pthread_mutex_initializer();
See wpthread.cpp.

pthread_mutex_lock

 int pthread_mutex_lock( pthread_mutex_t* m );
See wpthread.cpp.

pthread_mutex_timedlock

 int pthread_mutex_timedlock( pthread_mutex_t* UNUSED( m ), const struct timespec* UNUSED( abs_timeout ) );
See wpthread.cpp.

pthread_mutex_trylock

 int pthread_mutex_trylock( pthread_mutex_t* m );
See wpthread.cpp.

pthread_mutex_unlock

 int pthread_mutex_unlock( pthread_mutex_t* m );
See wpthread.cpp.

pthread_once

 int pthread_once( pthread_once_t* once, void ( * init_routine )( void ) );
See wpthread.cpp.

pthread_self

 pthread_t pthread_self( void );
See wpthread.cpp.

pthread_setschedparam

 int pthread_setschedparam( pthread_t thread, int policy, const struct sched_param* param );
See wpthread.cpp.

pthread_setspecific

 int pthread_setspecific( pthread_key_t key, const void* value );
See wpthread.cpp.

read

 int read( int fd, void* buf, size_t nbytes );
See waio.cpp.

readdir

 readdir( DIR* d_ );
See wfilesystem.cpp.

readdir_stat_np

 int readdir_stat_np( DIR* d_, struct stat* s );
See wfilesystem.cpp.

realpath

 char* realpath( const char* fn, char* path );
See wfilesystem.cpp.

recv

 EXTERN_C __declspec( dllimport ) ssize_t __stdcall recv( int, void*, size_t, int );
See wsock.h.

recvfrom

 EXTERN_C __declspec( dllimport ) ssize_t __stdcall recvfrom( int, void*, size_t, int, struct sockaddr*, socklen_t* );
See wsock.h.

req_alloc

 static Req* req_alloc( aiocb* cb );
See waio.cpp.

req_cleanup

 static void req_cleanup( void );
See waio.cpp.

req_find

 static Req* req_find( const aiocb* cb );
See waio.cpp.

req_free

 static LibError req_free( Req* r );
See waio.cpp.

req_init

 static void req_init();
See waio.cpp.

rmdir

 int rmdir( const char* path );
See wfilesystem.cpp.

sem_close

 int sem_close( sem_t* sem );
See wpthread.cpp.

sem_destroy

 int sem_destroy( sem_t* sem );
See wpthread.cpp.

sem_init

 int sem_init( sem_t* sem, int pshared, unsigned value );
See wpthread.cpp.

sem_msgwait_np

 int sem_msgwait_np( sem_t* sem );
See wpthread.cpp.

sem_open

 sem_t* sem_open( const char* name, int oflag,... );
See wpthread.cpp.

sem_post

 int sem_post( sem_t* sem );
See wpthread.cpp.

sem_timedwait

 int sem_timedwait( sem_t* sem, const struct timespec* abs_timeout );
See wpthread.cpp.

sem_unlink

 int sem_unlink( const char* UNUSED( name ) );
See wpthread.cpp.

sem_wait

 int sem_wait( sem_t* sem );
See wpthread.cpp.

send

 EXTERN_C __declspec( dllimport ) ssize_t __stdcall send( int, const void*, size_t, int );
See wsock.h.

sendto

 EXTERN_C __declspec( dllimport ) ssize_t __stdcall sendto( int, const void*, size_t, int, const struct sockaddr*, socklen_t );
See wsock.h.

setsockopt

 EXTERN_C __declspec( dllimport ) int __stdcall setsockopt( int, int, int, const void*, socklen_t );
See wsock.h.

shutdown

 EXTERN_C __declspec( dllimport ) int __stdcall shutdown( int, int );
See wsock.h.

sleep

 uint sleep( uint sec );
See wtime.cpp.

socket

 EXTERN_C __declspec( dllimport ) int __stdcall socket( int, int, int );
See wsock.h.

sys_max_sector_size

 size_t sys_max_sector_size();
associate async-capable handle with POSIX file descriptor (int)
See waio.cpp.

sysconf

 long sysconf( int name );
See wposix.cpp.

tcgetattr

 int tcgetattr( int fd, struct termios* termios_p );
See wterminal.cpp.

tcsetattr

 int tcsetattr( int fd, int, const struct termios* termios_p );
See wterminal.cpp.

thread_start

 static unsigned __stdcall thread_start( void* param );
See wpthread.cpp.

time_t_from_local_filetime

 time_t time_t_from_local_filetime( FILETIME* ft );
See wfilesystem.cpp.

TimespecFromNs

 static timespec TimespecFromNs( i64 ns );
See wtime.cpp.

u64_from_FILETIME

 static u64 u64_from_FILETIME( const FILETIME* ft );
See wtime.cpp.

uname

 int uname( struct utsname* un );
See wutsname.cpp.

unlock

 static void unlock();
See waio.cpp.

usleep

 int usleep( useconds_t us );
See wtime.cpp.

void_from_HMODULE

 static void* void_from_HMODULE( HMODULE hModule );
See wdlfcn.cpp.

waio_Init

 static LibError waio_Init();
See waio.cpp.

waio_Shutdown

 static LibError waio_Shutdown();
See waio.cpp.

wdir_alloc

 static inline WDIR* wdir_alloc();
See wfilesystem.cpp.

wdir_free

 static inline void wdir_free( WDIR* d );
See wfilesystem.cpp.

win32_prot

 static DWORD win32_prot( int prot );
See wmman.cpp.

WINIT_REGISTER_CRITICAL_INIT

 WINIT_REGISTER_CRITICAL_INIT( wposix_Init );
========================================================================= File : wposix.cpp Project : 0 A.D. Description : emulate a subset of POSIX on Win32. =========================================================================
See wposix.cpp.

WINIT_REGISTER_MAIN_INIT

 WINIT_REGISTER_MAIN_INIT( waio_Init );
========================================================================= File : waio.cpp Project : 0 A.D. Description : emulate POSIX asynchronous I/O on Windows. =========================================================================
See waio.cpp.

WINIT_REGISTER_MAIN_INIT

 WINIT_REGISTER_MAIN_INIT( wtime_Init );
========================================================================= File : wtime.cpp Project : 0 A.D. Description : emulate POSIX time functionality on Windows. =========================================================================
See wtime.cpp.

WINIT_REGISTER_MAIN_INIT

 WINIT_REGISTER_MAIN_INIT( wsock_Init );
========================================================================= File : wsock.cpp Project : 0 A.D. Description : emulate Berkeley sockets on Windows. =========================================================================
See wsock.cpp.

WINIT_REGISTER_MAIN_SHUTDOWN

 WINIT_REGISTER_MAIN_SHUTDOWN( wsock_Shutdown );
See wsock.cpp.

WINIT_REGISTER_MAIN_SHUTDOWN

 WINIT_REGISTER_MAIN_SHUTDOWN( waio_Shutdown );
See waio.cpp.

wposix_Init

 static LibError wposix_Init();
See wposix.cpp.

write

 int write( int fd, void* buf, size_t nbytes );
See waio.cpp.

wsock_ActualInit

 static LibError wsock_ActualInit();
See wsock.cpp.

wsock_Init

 static LibError wsock_Init();
See wsock.cpp.

wsock_Shutdown

 static LibError wsock_Shutdown();
See wsock.cpp.

wtime_Init

 static LibError wtime_Init();
See wtime.cpp.

wtime_utc_filetime_to_time_t

 time_t wtime_utc_filetime_to_time_t( FILETIME* ft );
See wtime.cpp.


Symbol Detail

__STDC__

 #define __STDC__ 0
See crt_posix.h.

_INC_DIRECT

 #define _INC_DIRECT 
See no_crt_posix.h.

_INC_IO

 #define _INC_IO 
See no_crt_posix.h.

_SC_AVPHYS_PAGES

 #define _SC_AVPHYS_PAGES 3
See wposix.h.

_SC_NPROCESSORS_CONF

 #define _SC_NPROCESSORS_CONF 4
See wposix.h.

_SC_PAGE_SIZE

 #define _SC_PAGE_SIZE 1
See wposix.h.

_SC_PAGESIZE

 #define _SC_PAGESIZE 1
See wposix.h.

_SC_PHYS_PAGES

 #define _SC_PHYS_PAGES 2
See wposix.h.

AF_INET

 #define AF_INET 2
See wsock.h.

AF_INET6

 #define AF_INET6 23
See wsock.h.

AI_PASSIVE

 #define AI_PASSIVE 0x1     
See wsock.h.

E2BIG

 #define E2BIG 7      
See werrno.h.

EACCES

 #define EACCES 13      
See werrno.h.

EADDRINUSE

 #define EADDRINUSE 48
See werrno.h.

EADDRNOTAVAIL

 #define EADDRNOTAVAIL 49
See werrno.h.

EAFNOSUPPORT

 #define EAFNOSUPPORT 47
See werrno.h.

EAGAIN

 #define EAGAIN 11      
See werrno.h.

EAI_NONAME

 #define EAI_NONAME HOST_NOT_FOUND
See wsock.h.

EALREADY

 #define EALREADY 37
See werrno.h.

EBADF

 #define EBADF 9      
See werrno.h.

EBADMSG

 #define EBADMSG 74      
See werrno.h.

EBUSY

 #define EBUSY 16      
See werrno.h.

ECANCELED

 #define ECANCELED 125     
See werrno.h.

ECHILD

 #define ECHILD 10      
See werrno.h.

ECHO

 #define ECHO 4
See wterminal.h.

ECONNABORTED

 #define ECONNABORTED 53
See werrno.h.

ECONNREFUSED

 #define ECONNREFUSED 61
See werrno.h.

ECONNRESET

 #define ECONNRESET 54
See werrno.h.

EDEADLK

 #define EDEADLK 35      
See werrno.h.

EDESTADDRREQ

 #define EDESTADDRREQ 39
See werrno.h.

EDOM

 #define EDOM 33      
See werrno.h.

EDQUOT

 #define EDQUOT 69
See werrno.h.

EEXIST

 #define EEXIST 17      
See werrno.h.

EFAULT

 #define EFAULT 14      
See werrno.h.

EFBIG

 #define EFBIG 27      
See werrno.h.

EHOSTDOWN

 #define EHOSTDOWN 64
See werrno.h.

EHOSTUNREACH

 #define EHOSTUNREACH 65
See werrno.h.

EIDRM

 #define EIDRM 43      
See werrno.h.

EILSEQ

 #define EILSEQ 84      
See werrno.h.

EINPROGRESS

 #define EINPROGRESS 36
See werrno.h.

EINTR

 #define EINTR 4      
See werrno.h.

EINVAL

 #define EINVAL 22      
See werrno.h.

EIO

 #define EIO 5      
See werrno.h.

EISCONN

 #define EISCONN 56
See werrno.h.

EISDIR

 #define EISDIR 21      
See werrno.h.

ELOOP

 #define ELOOP 62
See werrno.h.

EMFILE

 #define EMFILE 24      
See werrno.h.

EMLINK

 #define EMLINK 31      
See werrno.h.

EMSGSIZE

 #define EMSGSIZE 40
See werrno.h.

EMULTIHOP

 #define EMULTIHOP 72      
See werrno.h.

ENAMETOOLONG

 #define ENAMETOOLONG 36      
See werrno.h.

ENETDOWN

 #define ENETDOWN 50
See werrno.h.

ENETRESET

 #define ENETRESET 52
See werrno.h.

ENETUNREACH

 #define ENETUNREACH 51
See werrno.h.

ENFILE

 #define ENFILE 23      
See werrno.h.

ENOBUFS

 #define ENOBUFS 55
See werrno.h.

ENODEV

 #define ENODEV 19      
See werrno.h.

ENOENT

 #define ENOENT 2      
See werrno.h.

ENOEXEC

 #define ENOEXEC 8      
See werrno.h.

ENOLCK

 #define ENOLCK 37      
See werrno.h.

ENOLINK

 #define ENOLINK 67      
See werrno.h.

ENOMEM

 #define ENOMEM 12      
See werrno.h.

ENOMSG

 #define ENOMSG 42      
See werrno.h.

ENOPROTOOPT

 #define ENOPROTOOPT 42
See werrno.h.

ENOSPC

 #define ENOSPC 28      
See werrno.h.

ENOSYS

 #define ENOSYS 38      
See werrno.h.

ENOTCONN

 #define ENOTCONN 57
See werrno.h.

ENOTDIR

 #define ENOTDIR 20      
See werrno.h.

ENOTEMPTY

 #define ENOTEMPTY 39      
See werrno.h.

ENOTSOCK

 #define ENOTSOCK 38
See werrno.h.

ENOTTY

 #define ENOTTY 25      
See werrno.h.

ENXIO

 #define ENXIO 6      
See werrno.h.

EOPNOTSUPP

 #define EOPNOTSUPP 45
See werrno.h.

EOVERFLOW

 #define EOVERFLOW 75      
See werrno.h.

EPERM

 #define EPERM 1      
See werrno.h.

EPFNOSUPPORT

 #define EPFNOSUPPORT 46
See werrno.h.

EPIPE

 #define EPIPE 32      
See werrno.h.

EPROCLIM

 #define EPROCLIM 67
See werrno.h.

EPROTO

 #define EPROTO 71      
See werrno.h.

EPROTONOSUPPORT

 #define EPROTONOSUPPORT 43
See werrno.h.

EPROTOTYPE

 #define EPROTOTYPE 41
See werrno.h.

ERANGE

 #define ERANGE 34      
See werrno.h.

EREMOTE

 #define EREMOTE 71
See werrno.h.

ESHUTDOWN

 #define ESHUTDOWN 58
See werrno.h.

ESOCKTNOSUPPORT

 #define ESOCKTNOSUPPORT 44
See werrno.h.

ESPIPE

 #define ESPIPE 29      
See werrno.h.

ESRCH

 #define ESRCH 3      
See werrno.h.

ESTALE

 #define ESTALE 70
See werrno.h.

ETIMEDOUT

 #define ETIMEDOUT 60
See werrno.h.

ETOOMANYREFS

 #define ETOOMANYREFS 59
See werrno.h.

EUSERS

 #define EUSERS 68
See werrno.h.

EWOULDBLOCK

 #define EWOULDBLOCK 35
See werrno.h.

F_OK

 #define F_OK 0
See wfilesystem.h.

FD_ACCEPT

 #define FD_ACCEPT 0x08
See wsock.h.

FD_CLOSE

 #define FD_CLOSE 0x20
See wsock.h.

FD_CONNECT

 #define FD_CONNECT 0x10
See wsock.h.

FD_READ

 #define FD_READ 0x01
See wsock.h.

FD_WRITE

 #define FD_WRITE 0x02
See wsock.h.

FIONBIO

 #define FIONBIO 0x8004667E
See wsock.h.

FIONREAD

 #define FIONREAD 0
See wterminal.h.

h_error

 #define h_error WSAGetLastError()
See wsock.h.

HAVE_CLOCK_GETTIME

 #define HAVE_CLOCK_GETTIME 1
See wtime.h.

HAVE_GETTIMEOFDAY

 #define HAVE_GETTIMEOFDAY 1
See wtime.h.

HAVE_SSIZE_T

 #define HAVE_SSIZE_T 
See wposix_types.h.

HOST_NOT_FOUND

 #define HOST_NOT_FOUND 11001
See wsock.h.

ICANON

 #define ICANON 2	
See wterminal.h.

IN6ADDR_ANY_INIT

 #define IN6ADDR_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } }
See wsock.h.

in6addr_loopback

 #define in6addr_loopback PS_in6addr_loopback
See wsock.cpp.

IN6ADDR_LOOPBACK_INIT

 #define IN6ADDR_LOOPBACK_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } }
See wsock.h.

INADDR_ANY

 #define INADDR_ANY 0
See wsock.h.

INADDR_LOOPBACK

 #define INADDR_LOOPBACK 0x7f000001
See wsock.h.

INADDR_NONE

 #define INADDR_NONE ((in_addr_t)-1)
See wsock.h.

INCLUDED_WAIO

 #define INCLUDED_WAIO 
See waio.h.

INCLUDED_WDLFCN

 #define INCLUDED_WDLFCN 
See wdlfcn.h.

INCLUDED_WERRNO

 #define INCLUDED_WERRNO 
See werrno.h.

INCLUDED_WFILESYSTEM

 #define INCLUDED_WFILESYSTEM 
See wfilesystem.h.

INCLUDED_WMMAN

 #define INCLUDED_WMMAN 
See wmman.h.

INCLUDED_WPOSIX

 #define INCLUDED_WPOSIX 
See wposix.h.

INCLUDED_WPOSIX_INTERNAL

 #define INCLUDED_WPOSIX_INTERNAL 
See wposix_internal.h.

INCLUDED_WPOSIX_TYPES

 #define INCLUDED_WPOSIX_TYPES 
See wposix_types.h.

INCLUDED_WPTHREAD

 #define INCLUDED_WPTHREAD 
See wpthread.h.

INCLUDED_WSOCK

 #define INCLUDED_WSOCK 
See wsock.h.

INCLUDED_WTERMINAL

 #define INCLUDED_WTERMINAL 
See wterminal.h.

INCLUDED_WTIME

 #define INCLUDED_WTIME 
See wtime.h.

INCLUDED_WTIME_INTERNAL

 #define INCLUDED_WTIME_INTERNAL 
See wtime_internal.h.

INCLUDED_WUTSNAME

 #define INCLUDED_WUTSNAME 
See wutsname.h.

INET_ADDRSTRLEN

 #define INET_ADDRSTRLEN 16
See wsock.h.

INT16_MAX

 #define INT16_MAX 32767
See wposix_types.h.

INT16_MIN

 #define INT16_MIN -32768
See wposix_types.h.

IP_ADD_MEMBERSHIP

 #define IP_ADD_MEMBERSHIP 5
See wsock.h.

IP_DROP_MEMBERSHIP

 #define IP_DROP_MEMBERSHIP 6
See wsock.h.

IPPROTO_IP

 #define IPPROTO_IP 0
See wsock.h.

MAP_ANONYMOUS

 #define MAP_ANONYMOUS 0x10 
See wmman.h.

MAP_FAILED

 #define MAP_FAILED ((void*)-1L)
See wmman.h.

MAP_FIXED

 #define MAP_FIXED 0x04
See wmman.h.

MAP_NORESERVE

 #define MAP_NORESERVE 0x20
See wmman.h.

MAP_PRIVATE

 #define MAP_PRIVATE 0x02	
See wmman.h.

MAP_SHARED

 #define MAP_SHARED 0x01	
See wmman.h.

NI_MAXHOST

 #define NI_MAXHOST 1025
See wsock.h.

NI_MAXSERV

 #define NI_MAXSERV 32
See wsock.h.

NI_NUMERICHOST

 #define NI_NUMERICHOST 0x02   
See wsock.h.

O_BINARY_NP

 #define O_BINARY_NP 0x8000  
See waio.h.

O_NO_AIO_NP

 #define O_NO_AIO_NP 0x20000
See waio.h.

O_NONBLOCK

 #define O_NONBLOCK 0x1000000
See waio.h.

O_TEXT_NP

 #define O_TEXT_NP 0x4000  
See waio.h.

PATH_MAX

 #define PATH_MAX 256
See wposix_types.h.

PF_INET

 #define PF_INET AF_INET
See wsock.h.

PF_INET6

 #define PF_INET6 AF_INET6
See wsock.h.

POLLIN

 #define POLLIN 1
See wterminal.h.

PROT_EXEC

 #define PROT_EXEC 0x04
See wmman.h.

PROT_NONE

 #define PROT_NONE 0x00
See wmman.h.

PROT_READ

 #define PROT_READ 0x01
See wmman.h.

PROT_WRITE

 #define PROT_WRITE 0x02
See wmman.h.

PTHREAD_MUTEX_INITIALIZER

 #define PTHREAD_MUTEX_INITIALIZER pthread_mutex_initializer()
See wpthread.h.

PTHREAD_ONCE_INIT

 #define PTHREAD_ONCE_INIT 0	
See wpthread.h.

R_OK

 #define R_OK 4
See wfilesystem.h.

RTLD_GLOBAL

 #define RTLD_GLOBAL 0x04	
See wdlfcn.h.

RTLD_LAZY

 #define RTLD_LAZY 0x01
See wdlfcn.h.

RTLD_LOCAL

 #define RTLD_LOCAL 0x08
See wdlfcn.h.

RTLD_NOW

 #define RTLD_NOW 0x02
See wdlfcn.h.

S_IRWXG

 #define S_IRWXG 0xFFFF
See wfilesystem.h.

S_IRWXO

 #define S_IRWXO 0xFFFF
See wfilesystem.h.

S_IRWXU

 #define S_IRWXU 0xFFFF
See wfilesystem.h.

SEM_FAILED

 #define SEM_FAILED 0
See wpthread.h.

SIZE_MAX

 #define SIZE_MAX 0xFFFFFFFFFFFFFFFF
See wposix_types.h.

SOCK_DGRAM

 #define SOCK_DGRAM 2
See wsock.h.

SOCK_STREAM

 #define SOCK_STREAM 1
See wsock.h.

SOL_SOCKET

 #define SOL_SOCKET 0xFFFF          
See wsock.h.

TCP_NODELAY

 #define TCP_NODELAY 0x0001
See wsock.h.

TCSANOW

 #define TCSANOW 0
See wterminal.h.

TIOCM_CD

 #define TIOCM_CD 0x80	
See wterminal.h.

TIOCM_CTS

 #define TIOCM_CTS 0x10	
See wterminal.h.

TIOCM_RTS

 #define TIOCM_RTS 1
See wterminal.h.

TRY_AGAIN

 #define TRY_AGAIN 11002
See wsock.h.

UINT16_MAX

 #define UINT16_MAX 65536u
See wposix_types.h.

UINT16_MIN

 #define UINT16_MIN 0u
See wposix_types.h.

W_OK

 #define W_OK 2
See wfilesystem.h.

WPOSIX_DEFINED_DIRECT_INCLUDE_GUARD

 #define WPOSIX_DEFINED_DIRECT_INCLUDE_GUARD 
See no_crt_posix.h.

WPOSIX_DEFINED_IO_INCLUDE_GUARD

 #define WPOSIX_DEFINED_IO_INCLUDE_GUARD 
See no_crt_posix.h.

X_OK

 #define X_OK 0
See wfilesystem.h.


Macro Detail

IMP

 #define IMP(ret, name, param) EXTERN_C __declspec(dllimport) ret __stdcall name param;
See wsock.h.

S_ISDIR

 #define S_ISDIR(m) (m & S_IFDIR)
See wfilesystem.h.

S_ISREG

 #define S_ISREG(m) (m & S_IFREG)
See wfilesystem.h.

sched_get_priority_max

 #define sched_get_priority_max(policy) +2
See wpthread.h.

sched_get_priority_min

 #define sched_get_priority_min(policy) -2
See wpthread.h.

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD