MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions | Variables
win32_port.h File Reference
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#include <process.h>
#include <signal.h>
#include <direct.h>
#include <sys/stat.h>

Go to the source code of this file.

Data Structures

struct  itimerval
 
struct  stat
 
struct  timezone
 

Macros

#define _WINSOCKAPI_
 
#define accept(s, addr, addrlen)   pgwin32_accept(s, addr, addrlen)
 
#define bind(s, addr, addrlen)   pgwin32_bind(s, addr, addrlen)
 
#define connect(s, name, namelen)   pgwin32_connect(s, name, namelen)
 
#define EACCESS   2048
 
#define EADDRINUSE   WSAEADDRINUSE
 
#define EADDRNOTAVAIL   WSAEADDRNOTAVAIL
 
#define EAFNOSUPPORT   WSAEAFNOSUPPORT
 
#define EAGAIN   WSAEWOULDBLOCK
 
#define ECONNABORTED   WSAECONNABORTED
 
#define ECONNREFUSED   WSAECONNREFUSED
 
#define ECONNRESET   WSAECONNRESET
 
#define EHOSTDOWN   WSAEHOSTDOWN
 
#define EHOSTUNREACH   WSAEHOSTUNREACH
 
#define EIDRM   4096
 
#define EINPROGRESS   WSAEINPROGRESS
 
#define EINTR   WSAEINTR
 
#define EISCONN   WSAEISCONN
 
#define EMSGSIZE   WSAEMSGSIZE
 
#define ENABLE_SSPI   1
 
#define ENETDOWN   WSAENETDOWN
 
#define ENETRESET   WSAENETRESET
 
#define ENETUNREACH   WSAENETUNREACH
 
#define ENOBUFS   WSAENOBUFS
 
#define ENOTCONN   WSAENOTCONN
 
#define ENOTSOCK   WSAENOTSOCK
 
#define EOPNOTSUPP   WSAEOPNOTSUPP
 
#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
 
#define EWOULDBLOCK   WSAEWOULDBLOCK
 
#define fseeko(stream, offset, origin)   fseeko64(stream, offset, origin)
 
#define fstat   microsoft_native_fstat
 
#define fstat(fileno, sb)   _pgfstat64(fileno, sb)
 
#define fsync(fd)   _commit(fd)
 
#define FSYNC_WRITETHROUGH_IS_FSYNC
 
#define ftello(stream)   ftello64(stream)
 
#define ftruncate(a, b)   chsize(a,b)
 
#define GETNCNT   16384
 
#define GETPID   262144
 
#define GETVAL   65536
 
#define HAVE_FSYNC_WRITETHROUGH
 
#define HAVE_UNION_SEMUN   1
 
#define IPC_CREAT   512
 
#define IPC_EXCL   1024
 
#define IPC_NOWAIT   2048
 
#define IPC_PRIVATE   234564
 
#define IPC_RMID   256
 
#define IPC_STAT   4096
 
#define isalnum_l   _isalnum_l
 
#define isalpha_l   _isalpha_l
 
#define isdigit_l   _isdigit_l
 
#define isgraph_l   _isgraph_l
 
#define islower_l   _islower_l
 
#define isprint_l   _isprint_l
 
#define ispunct_l   _ispunct_l
 
#define isspace_l   _isspace_l
 
#define isupper_l   _isupper_l
 
#define iswalnum_l   _iswalnum_l
 
#define iswalpha_l   _iswalpha_l
 
#define iswdigit_l   _iswdigit_l
 
#define iswgraph_l   _iswgraph_l
 
#define iswlower_l   _iswlower_l
 
#define iswprint_l   _iswprint_l
 
#define iswpunct_l   _iswpunct_l
 
#define iswspace_l   _iswspace_l
 
#define iswupper_l   _iswupper_l
 
#define ITIMER_REAL   0
 
#define kill(pid, sig)   pgkill(pid,sig)
 
#define listen(s, backlog)   pgwin32_listen(s, backlog)
 
#define locale_t   _locale_t
 
#define lstat(path, sb)   _pgstat64(path, sb)
 
#define mbstowcs_l   _mbstowcs_l
 
#define mkdir(a, b)   mkdir(a)
 
#define O_DSYNC   0x0080
 
#define PG_SIGNAL_COUNT   32
 
#define pgoff_t   __int64
 
#define putenv(x)   pgwin32_putenv(x)
 
#define readlink(path, buf, size)   pgreadlink(path, buf, size)
 
#define recv(s, buf, len, flags)   pgwin32_recv(s, buf, len, flags)
 
#define S_IRGRP   0
 
#define S_IROTH   0
 
#define S_IRUSR   _S_IREAD
 
#define S_IRWXG   0
 
#define S_IRWXO   0
 
#define S_IRWXU   (S_IRUSR | S_IWUSR | S_IXUSR)
 
#define S_ISDIR(m)   (((m) & S_IFMT) == S_IFDIR)
 
#define S_ISREG(m)   (((m) & S_IFMT) == S_IFREG)
 
#define S_IWGRP   0
 
#define S_IWOTH   0
 
#define S_IWUSR   _S_IWRITE
 
#define S_IXGRP   0
 
#define S_IXOTH   0
 
#define S_IXUSR   _S_IEXEC
 
#define select(n, r, w, e, timeout)   pgwin32_select(n, r, w, e, timeout)
 
#define send(s, buf, len, flags)   pgwin32_send(s, buf, len, flags)
 
#define SETALL   8192
 
#define setenv(x, y, z)   pgwin32_setenv(x,y,z)
 
#define setlocale(a, b)   pgwin32_setlocale(a,b)
 
#define SETVAL   131072
 
#define SIG_DFL   ((pqsigfunc)0)
 
#define SIG_ERR   ((pqsigfunc)-1)
 
#define SIG_IGN   ((pqsigfunc)1)
 
#define SIGABRT   22 /* Set to match W32 value -- not UNIX value */
 
#define SIGALRM   14
 
#define SIGCHLD   20
 
#define SIGCONT   19
 
#define SIGHUP   1
 
#define SIGKILL   9
 
#define sigmask(sig)   ( 1 << ((sig)-1) )
 
#define SIGPIPE   13
 
#define SIGQUIT   3
 
#define SIGSTOP   17
 
#define SIGTRAP   5
 
#define SIGTSTP   18
 
#define SIGUSR1   30
 
#define SIGUSR2   31
 
#define SIGWINCH   28
 
#define socket(af, type, protocol)   pgwin32_socket(af, type, protocol)
 
#define stat   microsoft_native_stat
 
#define stat(path, sb)   _pgstat64(path, sb)
 
#define strcoll_l   _strcoll_l
 
#define strxfrm_l   _strxfrm_l
 
#define symlink(oldpath, newpath)   pgsymlink(oldpath, newpath)
 
#define tolower_l   _tolower_l
 
#define toupper_l   _toupper_l
 
#define towlower_l   _towlower_l
 
#define towupper_l   _towupper_l
 
#define UNBLOCKED_SIGNAL_QUEUE()   (pg_signal_queue & ~pg_signal_mask)
 
#define unsetenv(x)   pgwin32_unsetenv(x)
 
#define USES_WINSOCK
 
#define wcscoll_l   _wcscoll_l
 
#define wcstombs_l   _wcstombs_l
 
#define WEXITSTATUS(w)   (w)
 
#define WIFEXITED(w)   (((w) & 0XFFFFFF00) == 0)
 
#define WIFSIGNALED(w)   (!WIFEXITED(w))
 
#define WTERMSIG(w)   (w)
 

Typedefs

typedef int gid_t
 
typedef long key_t
 
typedef int uid_t
 

Functions

void _dosmaperr (unsigned long)
 
int _pgfstat64 (int fileno, struct stat *buf)
 
int _pgstat64 (const char *name, struct stat *buf)
 
BOOL AddUserToTokenDacl (HANDLE hToken)
 
void pg_queue_signal (int signum)
 
int pgkill (int pid, int sig)
 
int pgreadlink (const char *path, char *buf, size_t size)
 
int pgsymlink (const char *oldpath, const char *newpath)
 
SOCKET pgwin32_accept (SOCKET s, struct sockaddr *addr, int *addrlen)
 
int pgwin32_bind (SOCKET s, struct sockaddr *addr, int addrlen)
 
int pgwin32_connect (SOCKET s, const struct sockaddr *name, int namelen)
 
HANDLE pgwin32_create_signal_listener (pid_t pid)
 
void pgwin32_dispatch_queued_signals (void)
 
void pgwin32_install_crashdump_handler (void)
 
int pgwin32_is_admin (void)
 
bool pgwin32_is_junction (const char *path)
 
int pgwin32_is_service (void)
 
int pgwin32_listen (SOCKET s, int backlog)
 
int pgwin32_putenv (const char *)
 
int pgwin32_recv (SOCKET s, char *buf, int len, int flags)
 
int pgwin32_ReserveSharedMemoryRegion (HANDLE)
 
int pgwin32_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout)
 
int pgwin32_send (SOCKET s, const void *buf, int len, int flags)
 
int pgwin32_setenv (const char *name, const char *value, int overwrite)
 
char * pgwin32_setlocale (int category, const char *locale)
 
void pgwin32_signal_initialize (void)
 
SOCKET pgwin32_socket (int af, int type, int protocol)
 
int pgwin32_unsetenv (const char *name)
 
int pgwin32_waitforsinglesocket (SOCKET s, int what, int timeout)
 
int setitimer (int which, const struct itimerval *value, struct itimerval *ovalue)
 

Variables

PGDLLIMPORT int pg_signal_mask
 
PGDLLIMPORT volatile int pg_signal_queue
 
HANDLE pgwin32_initial_signal_pipe
 
int pgwin32_noblock
 
HANDLE pgwin32_signal_event