MySQL  8.0.17
Source Code Documentation
win32.h File Reference
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <io.h>
#include <time.h>
#include <fcntl.h>
#include <errno.h>
#include <stdint.h>
#include <process.h>

Go to the source code of this file.

Classes

struct  msghdr
 
struct  rusage
 
struct  sigaction
 

Macros

#define _WIN32_WINNT   0x0501 /* Needed to resolve getaddrinfo et al. */
 
#define EWOULDBLOCK   EAGAIN
 
#define EAFNOSUPPORT   47
 
#define EADDRINUSE   WSAEADDRINUSE
 
#define ENOTCONN   WSAENOTCONN
 
#define ECONNRESET   WSAECONNRESET
 
#define EAI_SYSTEM   -11
 
#define SIGHUP   -1
 
#define O_BLOCK   0
 
#define O_NONBLOCK   1
 
#define F_GETFL   3
 
#define F_SETFL   4
 
#define RUSAGE_SELF   0
 
#define IOV_MAX   1024
 
#define DELTA_EPOCH_IN_MICROSECS   11644473600000000ULL
 
#define close(s)   closesocket(s)
 
#define strtok_r(_s, _sep, _lasts)   ( *(_lasts) = strtok( (_s), (_sep) ) )
 
#define write   mem_write
 
#define read(a, b, c)   mem_recv(a,b,c,0)
 
#define recv(a, b, c, d)   mem_recv(a,b,c,d)
 
#define sigemptyset(a)   0
 
#define daemonize(a, b)   spawn_memcached(argc, argv)
 

Typedefs

typedef char * caddr_t
 

Functions

int inet_aton (register const char *cp, struct in_addr *addr)
 
static void mapErr (int error)
 
static size_t mem_write (int s, void *buf, size_t len)
 
static size_t mem_recv (int s, void *buf, size_t len, int unused)
 
static int sendmsg (int s, const struct msghdr *msg, int flags)
 
int getrusage (int who, struct rusage *usage)
 
int kill (int pid, int sig)
 
int sleep (int seconds)
 
int sigaction (int sig, struct sigaction *act, struct sigaction *oact)
 
int spawn_memcached (int argc, char **argv)
 

Macro Definition Documentation

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0501 /* Needed to resolve getaddrinfo et al. */

◆ close

#define close (   s)    closesocket(s)

◆ daemonize

#define daemonize (   a,
 
)    spawn_memcached(argc, argv)

◆ DELTA_EPOCH_IN_MICROSECS

#define DELTA_EPOCH_IN_MICROSECS   11644473600000000ULL

◆ EADDRINUSE

#define EADDRINUSE   WSAEADDRINUSE

◆ EAFNOSUPPORT

#define EAFNOSUPPORT   47

◆ EAI_SYSTEM

#define EAI_SYSTEM   -11

◆ ECONNRESET

#define ECONNRESET   WSAECONNRESET

◆ ENOTCONN

#define ENOTCONN   WSAENOTCONN

◆ EWOULDBLOCK

#define EWOULDBLOCK   EAGAIN

◆ F_GETFL

#define F_GETFL   3

◆ F_SETFL

#define F_SETFL   4

◆ IOV_MAX

#define IOV_MAX   1024

◆ O_BLOCK

#define O_BLOCK   0

◆ O_NONBLOCK

#define O_NONBLOCK   1

◆ read

#define read (   a,
  b,
 
)    mem_recv(a,b,c,0)

◆ recv

#define recv (   a,
  b,
  c,
 
)    mem_recv(a,b,c,d)

◆ RUSAGE_SELF

#define RUSAGE_SELF   0

◆ sigemptyset

#define sigemptyset (   a)    0

◆ SIGHUP

#define SIGHUP   -1

◆ strtok_r

#define strtok_r (   _s,
  _sep,
  _lasts 
)    ( *(_lasts) = strtok( (_s), (_sep) ) )

◆ write

#define write   mem_write

Typedef Documentation

◆ caddr_t

typedef char* caddr_t

Function Documentation

◆ getrusage()

int getrusage ( int  who,
struct rusage usage 
)

◆ inet_aton()

int inet_aton ( register const char *  cp,
struct in_addr *  addr 
)

◆ kill()

int kill ( int  pid,
int  sig 
)

◆ mapErr()

static void mapErr ( int  error)
inlinestatic

◆ mem_recv()

static size_t mem_recv ( int  s,
void *  buf,
size_t  len,
int  unused 
)
inlinestatic

◆ mem_write()

static size_t mem_write ( int  s,
void *  buf,
size_t  len 
)
inlinestatic

◆ sendmsg()

static int sendmsg ( int  s,
const struct msghdr msg,
int  flags 
)
inlinestatic

◆ sigaction()

int sigaction ( int  sig,
struct sigaction act,
struct sigaction oact 
)

◆ sleep()

int sleep ( int  seconds)

◆ spawn_memcached()

int spawn_memcached ( int  argc,
char **  argv 
)