Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones | Variables
Referencia del Archivo src/libpq/include/port/win32.h
#include <windows.h>
#include <winsock.h>
#include <process.h>
#include <signal.h>
#include <errno.h>

Ir al código fuente de este archivo.

Clases

struct  shmid_ds
union  semun
struct  sembuf
struct  timezone
struct  itimerval

'defines'

#define mkdir(a, b)   mkdir(a)
#define HAVE_FSYNC_WRITETHROUGH
#define HAVE_FSYNC_WRITETHROUGH_ONLY
#define ftruncate(a, b)   chsize(a,b)
#define fsync(fd)   _commit(fd)
#define USES_WINSOCK
#define DLLIMPORT
#define HAVE_UNION_SEMUN   1
#define IPC_RMID   256
#define IPC_CREAT   512
#define IPC_EXCL   1024
#define IPC_PRIVATE   234564
#define IPC_NOWAIT   2048
#define IPC_STAT   4096
#define EACCESS   2048
#define EIDRM   4096
#define SETALL   8192
#define GETNCNT   16384
#define GETVAL   65536
#define SETVAL   131072
#define GETPID   262144
#define WEXITSTATUS(w)   (((w) >> 8) & 0xff)
#define WIFEXITED(w)   (((w) & 0xff) == 0)
#define WIFSIGNALED(w)   (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WTERMSIG(w)   ((w) & 0x7f)
#define sigmask(sig)   ( 1 << ((sig)-1) )
#define SIG_DFL   ((pqsigfunc)0)
#define SIG_ERR   ((pqsigfunc)-1)
#define SIG_IGN   ((pqsigfunc)1)
#define SIGHUP   1
#define SIGQUIT   3
#define SIGTRAP   5
#define SIGABRT   22
#define SIGKILL   9
#define SIGPIPE   13
#define SIGALRM   14
#define SIGSTOP   17
#define SIGTSTP   18
#define SIGCONT   19
#define SIGCHLD   20
#define SIGTTIN   21
#define SIGTTOU   22
#define SIGWINCH   28
#define SIGUSR1   30
#define SIGUSR2   31
#define ITIMER_REAL   0
#define lstat(path, sb)   stat((path), (sb))
#define O_DSYNC   0x0080
#define EINTR   WSAEINTR
#define EAGAIN   WSAEWOULDBLOCK
#define EMSGSIZE   WSAEMSGSIZE
#define EAFNOSUPPORT   WSAEAFNOSUPPORT
#define EWOULDBLOCK   WSAEWOULDBLOCK
#define ECONNRESET   WSAECONNRESET
#define EINPROGRESS   WSAEINPROGRESS
#define ENOBUFS   WSAENOBUFS
#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
#define ECONNREFUSED   WSAECONNREFUSED
#define EBADFD   WSAENOTSOCK
#define EOPNOTSUPP   WSAEOPNOTSUPP
#define UNBLOCKED_SIGNAL_QUEUE()   (pg_signal_queue & ~pg_signal_mask)
#define pg_usleep(t)   pgwin32_backend_usleep(t)
#define socket(af, type, protocol)   pgwin32_socket(af, type, protocol)
#define accept(s, addr, addrlen)   pgwin32_accept(s, addr, addrlen)
#define connect(s, name, namelen)   pgwin32_connect(s, name, namelen)
#define select(n, r, w, e, timeout)   pgwin32_select(n, r, w, e, timeout)
#define recv(s, buf, len, flags)   pgwin32_recv(s, buf, len, flags)
#define send(s, buf, len, flags)   pgwin32_send(s, buf, len, flags)

'typedefs'

typedef int uid_t
typedef int gid_t
typedef long key_t

Funciones

int shmdt (const void *shmaddr)
void * shmat (int memId, void *shmaddr, int flag)
int shmctl (int shmid, int flag, struct shmid_ds *dummy)
int shmget (int memKey, int size, int flag)
int semctl (int semId, int semNum, int flag, union semun)
int semget (int semKey, int semNum, int flags)
int semop (int semId, struct sembuf *sops, int flag)
int setitimer (int which, const struct itimerval *value, struct itimerval *ovalue)
void pgwin32_signal_initialize (void)
HANDLE pgwin32_create_signal_listener (pid_t pid)
void pgwin32_dispatch_queued_signals (void)
void pg_queue_signal (int signum)
void pgwin32_backend_usleep (long microsec)
SOCKET pgwin32_socket (int af, int type, int protocol)
SOCKET pgwin32_accept (SOCKET s, struct sockaddr *addr, int *addrlen)
int pgwin32_connect (SOCKET s, const struct sockaddr *name, int namelen)
int pgwin32_select (int nfds, fd_set *readfs, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout)
int pgwin32_recv (SOCKET s, char *buf, int len, int flags)
int pgwin32_send (SOCKET s, char *buf, int len, int flags)
const char * pgwin32_socket_strerror (int err)
int pgwin32_waitforsinglesocket (SOCKET s, int what)
int pgwin32_is_admin (void)
int pgwin32_is_service (void)
void _dosmaperr (unsigned long)

Variables

DLLIMPORT volatile int pg_signal_queue
DLLIMPORT int pg_signal_mask
HANDLE pgwin32_signal_event
HANDLE pgwin32_initial_signal_pipe

Documentación de los 'defines'

#define accept (   s,
  addr,
  addrlen 
)    pgwin32_accept(s, addr, addrlen)
#define connect (   s,
  name,
  namelen 
)    pgwin32_connect(s, name, namelen)
#define DLLIMPORT
#define EACCESS   2048
#define EAFNOSUPPORT   WSAEAFNOSUPPORT
#define EAGAIN   WSAEWOULDBLOCK
#define EBADFD   WSAENOTSOCK
#define ECONNREFUSED   WSAECONNREFUSED
#define ECONNRESET   WSAECONNRESET
#define EIDRM   4096
#define EINPROGRESS   WSAEINPROGRESS
#define EINTR   WSAEINTR
#define EMSGSIZE   WSAEMSGSIZE
#define ENOBUFS   WSAENOBUFS
#define EOPNOTSUPP   WSAEOPNOTSUPP
#define EPROTONOSUPPORT   WSAEPROTONOSUPPORT
#define EWOULDBLOCK   WSAEWOULDBLOCK
#define fsync (   fd)    _commit(fd)
#define ftruncate (   a,
  b 
)    chsize(a,b)
#define GETNCNT   16384
#define GETPID   262144
#define GETVAL   65536
#define HAVE_FSYNC_WRITETHROUGH
#define HAVE_FSYNC_WRITETHROUGH_ONLY
#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 ITIMER_REAL   0
#define lstat (   path,
  sb 
)    stat((path), (sb))
#define mkdir (   a,
  b 
)    mkdir(a)
#define O_DSYNC   0x0080
#define pg_usleep (   t)    pgwin32_backend_usleep(t)
#define recv (   s,
  buf,
  len,
  flags 
)    pgwin32_recv(s, buf, len, flags)
#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 SETVAL   131072
#define SIG_DFL   ((pqsigfunc)0)
#define SIG_ERR   ((pqsigfunc)-1)
#define SIG_IGN   ((pqsigfunc)1)
#define SIGABRT   22
#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 SIGTTIN   21
#define SIGTTOU   22
#define SIGUSR1   30
#define SIGUSR2   31
#define SIGWINCH   28
#define socket (   af,
  type,
  protocol 
)    pgwin32_socket(af, type, protocol)
#define UNBLOCKED_SIGNAL_QUEUE ( )    (pg_signal_queue & ~pg_signal_mask)
#define USES_WINSOCK
#define WEXITSTATUS (   w)    (((w) >> 8) & 0xff)
#define WIFEXITED (   w)    (((w) & 0xff) == 0)
#define WIFSIGNALED (   w)    (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f))
#define WTERMSIG (   w)    ((w) & 0x7f)

Documentación de los 'typedefs'

typedef int gid_t
typedef long key_t
typedef int uid_t

Documentación de las funciones

void _dosmaperr ( unsigned  long)
void pg_queue_signal ( int  signum)
SOCKET pgwin32_accept ( SOCKET  s,
struct sockaddr *  addr,
int addrlen 
)
void pgwin32_backend_usleep ( long  microsec)
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  )
int pgwin32_is_admin ( void  )
int pgwin32_is_service ( void  )
int pgwin32_recv ( SOCKET  s,
char *  buf,
int  len,
int  flags 
)
int pgwin32_select ( int  nfds,
fd_set *  readfs,
fd_set *  writefds,
fd_set *  exceptfds,
const struct timeval *  timeout 
)
int pgwin32_send ( SOCKET  s,
char *  buf,
int  len,
int  flags 
)
void pgwin32_signal_initialize ( void  )
SOCKET pgwin32_socket ( int  af,
int  type,
int  protocol 
)
const char* pgwin32_socket_strerror ( int  err)
int pgwin32_waitforsinglesocket ( SOCKET  s,
int  what 
)
int semctl ( int  semId,
int  semNum,
int  flag,
union semun   
)
int semget ( int  semKey,
int  semNum,
int  flags 
)
int semop ( int  semId,
struct sembuf sops,
int  flag 
)
int setitimer ( int  which,
const struct itimerval value,
struct itimerval ovalue 
)
void* shmat ( int  memId,
void *  shmaddr,
int  flag 
)
int shmctl ( int  shmid,
int  flag,
struct shmid_ds dummy 
)
int shmdt ( const void *  shmaddr)
int shmget ( int  memKey,
int  size,
int  flag 
)

Documentación de las variables

DLLIMPORT int pg_signal_mask
DLLIMPORT volatile int pg_signal_queue
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'