Apache Mesos
Classes | Macros | Typedefs | Functions | Variables
windows.hpp File Reference
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <iphlpapi.h>
#include <MSWSock.h>
#include <winioctl.h>
#include <Windows.h>
#include <direct.h>
#include <errno.h>
#include <fcntl.h>
#include <io.h>
#include <process.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <basetsd.h>
#include <memory>
#include <glog/logging.h>

Go to the source code of this file.


class  SharedHandle


#define STDIN_FILENO   0
#define STDOUT_FILENO   1
#define STDERR_FILENO   2
#define R_OK   0x4
#define W_OK   0x2
#define X_OK   0x0
#define F_OK   0x0
#define PATH_MAX   _MAX_PATH
#define SIGPIPE   100
#define WIFEXITED(x)   ((x) != -1)
#define WEXITSTATUS(x)   static_cast<DWORD>(x)
#define WIFSIGNALED(x)   ((x) != -1)
#define WTERMSIG(x)   0
#define WCOREDUMP(x)   false
#define WIFSTOPPED(x)   false
#define WSTOPSIG(x)   0
#define WNOHANG   1
#define WUNTRACED   2


typedef int mode_t
typedef DWORD pid_t
typedef int uid_t
typedef int gid_t
typedef SSIZE_T ssize_t


bool S_ISDIR (const int mode)
bool S_ISREG (const int mode)
bool S_ISCHR (const int mode)
bool S_ISFIFO (const int mode)
bool S_ISBLK (const int mode)
bool S_ISSOCK (const int mode)
bool S_ISLNK (const int mode)
auto strerror_r (int errnum, char *buffer, size_t length) ->
const char * strsignal (int signum)


const int NAME_MAX = PATH_MAX
constexpr int SHUT_RD = SD_RECEIVE
constexpr int SHUT_WR = SD_SEND
constexpr int SHUT_RDWR = SD_BOTH
constexpr int MSG_NOSIGNAL = 0
const mode_t S_IRUSR = mode_t(_S_IREAD)
const mode_t S_IWUSR = mode_t(_S_IWRITE)
const mode_t S_IXUSR = S_IRUSR
const mode_t S_IRWXU = S_IRUSR | S_IWUSR | S_IXUSR
const mode_t S_IRGRP = 0x00200000
const mode_t S_IWGRP = 0x00100000
const mode_t S_IXGRP = 0x00080000
const mode_t S_IRWXG = S_IRGRP | S_IWGRP | S_IXGRP
const mode_t S_IROTH = 0x00040000
const mode_t S_IWOTH = 0x00020000
const mode_t S_IXOTH = 0x00010000
const mode_t S_IRWXO = S_IROTH | S_IWOTH | S_IXOTH
const mode_t S_ISUID = 0x08000000
const mode_t S_ISGID = 0x04000000
const mode_t S_ISVTX = 0x02000000
const mode_t O_SYNC = 0x00000000
const mode_t O_NONBLOCK = 0x00000000
const mode_t SIGKILL = 0x00000009

Macro Definition Documentation

#define F_OK   0x0
#define PATH_MAX   _MAX_PATH
#define R_OK   0x4
#define SIGPIPE   100
#define STDERR_FILENO   2
#define STDIN_FILENO   0
#define STDOUT_FILENO   1
#define W_OK   0x2
#define WCOREDUMP (   x)    false
#define WEXITSTATUS (   x)    static_cast<DWORD>(x)
#define WIFEXITED (   x)    ((x) != -1)
#define WIFSIGNALED (   x)    ((x) != -1)
#define WIFSTOPPED (   x)    false
#define WNOHANG   1
#define WSTOPSIG (   x)    0
#define WTERMSIG (   x)    0
#define WUNTRACED   2
#define X_OK   0x0

Typedef Documentation

typedef int gid_t
typedef int mode_t
typedef DWORD pid_t
typedef SSIZE_T ssize_t
typedef int uid_t

Function Documentation

bool S_ISBLK ( const int  mode)
bool S_ISCHR ( const int  mode)
bool S_ISDIR ( const int  mode)
bool S_ISFIFO ( const int  mode)
bool S_ISLNK ( const int  mode)
bool S_ISREG ( const int  mode)
bool S_ISSOCK ( const int  mode)
auto strerror_r ( int  errnum,
char *  buffer,
size_t  length 
) ->
const char* strsignal ( int  signum)

Variable Documentation

constexpr int MSG_NOSIGNAL = 0
const int NAME_MAX = PATH_MAX
const mode_t O_NONBLOCK = 0x00000000
const mode_t O_SYNC = 0x00000000
const mode_t S_IRGRP = 0x00200000
const mode_t S_IROTH = 0x00040000
const mode_t S_IRUSR = mode_t(_S_IREAD)
const mode_t S_IRWXG = S_IRGRP | S_IWGRP | S_IXGRP
const mode_t S_IRWXO = S_IROTH | S_IWOTH | S_IXOTH
const mode_t S_IRWXU = S_IRUSR | S_IWUSR | S_IXUSR
const mode_t S_ISGID = 0x04000000
const mode_t S_ISUID = 0x08000000
const mode_t S_ISVTX = 0x02000000
const mode_t S_IWGRP = 0x00100000
const mode_t S_IWOTH = 0x00020000
const mode_t S_IWUSR = mode_t(_S_IWRITE)
const mode_t S_IXGRP = 0x00080000
const mode_t S_IXOTH = 0x00010000
const mode_t S_IXUSR = S_IRUSR
constexpr int SHUT_RD = SD_RECEIVE
constexpr int SHUT_RDWR = SD_BOTH
constexpr int SHUT_WR = SD_SEND
const mode_t SIGKILL = 0x00000009