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 <sys/stat.h>
#include <basetsd.h>
#include <memory>
#include <type_traits>
#include <glog/logging.h>

Go to the source code of this file.

Classes

class  SharedHandle
 

Macros

#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 MAXHOSTNAMELEN   NI_MAXHOST
 
#define PATH_MAX   _MAX_PATH
 
#define SIGPIPE   100
 
#define WIFEXITED(x)   true
 
#define WEXITSTATUS(x)   static_cast<DWORD>(x)
 
#define WIFSIGNALED(x)   false
 
#define WNOHANG   1
 

Typedefs

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

Functions

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) -> decltype(strerror_s(buffer, length, errnum))
 
const char * strsignal (int signum)
 

Variables

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 SIGKILL = 0x00000009
 

Macro Definition Documentation

#define F_OK   0x0
#define MAXHOSTNAMELEN   NI_MAXHOST
#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 WEXITSTATUS (   x)    static_cast<DWORD>(x)
#define WIFEXITED (   x)    true
#define WIFSIGNALED (   x)    false
#define WNOHANG   1
#define X_OK   0x0

Typedef Documentation

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

Function Documentation

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

Variable Documentation

constexpr int MSG_NOSIGNAL = 0
const int NAME_MAX = PATH_MAX
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