#include <QtGlobal>
#include <sys/param.h>
#include "mythconfig.h"
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <cstdio>
Go to the source code of this file.
|
| #define | close wsock_close |
| |
| #define | NOMINMAX |
| |
| #define | fsync(FD) 0 |
| |
| #define | minor(X) 0 |
| |
| #define | setenv(x, y, z) ::SetEnvironmentVariableA(x, y) |
| |
| #define | unsetenv(x) 0 |
| |
| #define | lstat stat |
| |
| #define | nice(x) |
| |
| #define | PRIO_PROCESS 0 |
| |
| #define | setpriority(x, y, z) ((x) == PRIO_PROCESS && y == 0 ? nice(z) : -1) |
| |
| #define | SIGHUP 1 |
| |
| #define | SIGQUIT 3 |
| |
| #define | SIGKILL 9 |
| |
| #define | SIGUSR1 10 |
| |
| #define | SIGUSR2 12 |
| |
| #define | SIGPIPE 13 |
| |
| #define | SIGALRM 14 |
| |
| #define | SIGCONT 18 |
| |
| #define | SIGSTOP 19 |
| |
| #define | O_SYNC 0 |
| |
| #define | mkfifo(path, mode) |
| |
| #define | RTLD_LAZY 0 |
| |
| #define | dlopen(x, y) LoadLibraryA((x)) |
| |
| #define | dlclose(x) !FreeLibrary((HMODULE)(x)) |
| |
| #define | dlsym(x, y) GetProcAddress((HMODULE)(x), (y)) |
| |
| #define | DLERR_MAX 512 |
| |
| #define | getuid() 0 |
| |
| #define | geteuid() 0 |
| |
| #define | setuid(x) 0 |
| |
| #define | seteuid(x) 0 |
| |
| #define | daemon(x, y) -1 |
| |
| #define | getloadavg(x, y) -1 |
| |
| #define | WIFEXITED(w) (((w) & 0xff) == 0) |
| |
| #define | WIFSIGNALED(w) (((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f)) |
| |
| #define | WIFSTOPPED(w) (((w) & 0xff) == 0x7f) |
| |
| #define | WEXITSTATUS(w) (((w) >> 8) & 0xff) |
| |
| #define | WTERMSIG(w) ((w) & 0x7f) |
| |
| #define | O_NONBLOCK 04000 /* NOLINT(cppcoreguidelines-macro-usage) */ |
| |
|
| using | uint = unsigned int |
| |
◆ close
| #define close wsock_close |
◆ daemon
| #define daemon |
( |
|
x, |
|
|
|
y |
|
) |
| -1 |
◆ dlclose
| #define dlclose |
( |
|
x | ) |
!FreeLibrary((HMODULE)(x)) |
◆ DLERR_MAX
◆ dlopen
| #define dlopen |
( |
|
x, |
|
|
|
y |
|
) |
| LoadLibraryA((x)) |
◆ dlsym
| #define dlsym |
( |
|
x, |
|
|
|
y |
|
) |
| GetProcAddress((HMODULE)(x), (y)) |
◆ fsync
◆ geteuid
◆ getloadavg
| #define getloadavg |
( |
|
x, |
|
|
|
y |
|
) |
| -1 |
◆ getuid
◆ lstat
◆ minor
◆ mkfifo
| #define mkfifo |
( |
|
path, |
|
|
|
mode |
|
) |
| |
Value: (CreateNamedPipeA(path, PIPE_ACCESS_DUPLEX | WRITE_DAC, \
PIPE_WAIT, PIPE_UNLIMITED_INSTANCES, \
1024, 1024, 10000, nullptr) == INVALID_HANDLE_VALUE ? -1 : 0)
Definition at line 147 of file compat.h.
◆ nice
Value: ((int)!::SetPriorityClass(\
::GetCurrentProcess(), ((x) < -10) ? \
HIGH_PRIORITY_CLASS : (((x) < 0) ? \
ABOVE_NORMAL_PRIORITY_CLASS : (((x) > 10) ? \
IDLE_PRIORITY_CLASS : (((x) > 0) ? \
BELOW_NORMAL_PRIORITY_CLASS : \
NORMAL_PRIORITY_CLASS)))))
Definition at line 121 of file compat.h.
◆ NOMINMAX
◆ O_NONBLOCK
| #define O_NONBLOCK 04000 /* NOLINT(cppcoreguidelines-macro-usage) */ |
◆ O_SYNC
◆ PRIO_PROCESS
◆ RTLD_LAZY
◆ setenv
| #define setenv |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ::SetEnvironmentVariableA(x, y) |
◆ seteuid
◆ setpriority
◆ setuid
◆ SIGALRM
◆ SIGCONT
◆ SIGHUP
◆ SIGKILL
◆ SIGPIPE
◆ SIGQUIT
◆ SIGSTOP
◆ SIGUSR1
◆ SIGUSR2
◆ unsetenv
◆ WEXITSTATUS
| #define WEXITSTATUS |
( |
|
w | ) |
(((w) >> 8) & 0xff) |
◆ WIFEXITED
| #define WIFEXITED |
( |
|
w | ) |
(((w) & 0xff) == 0) |
◆ WIFSIGNALED
| #define WIFSIGNALED |
( |
|
w | ) |
(((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f)) |
◆ WIFSTOPPED
| #define WIFSTOPPED |
( |
|
w | ) |
(((w) & 0xff) == 0x7f) |
◆ WTERMSIG
| #define WTERMSIG |
( |
|
w | ) |
((w) & 0x7f) |
◆ uint
| using uint = unsigned int |
◆ dlerror()
| const char * dlerror |
( |
void |
| ) |
|
|
inline |
◆ statfs()