#include <QtGlobal>
#include <sys/param.h>
#include "mythconfig.h"
#include <time.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 | LZO_COMPILE_TIME_ASSERT_HEADER(a) |
|
#define | LZO_COMPILE_TIME_ASSERT(a) |
|
#define | O_NONBLOCK 04000 /* NOLINT(cppcoreguidelines-macro-usage) */ |
|
|
using | uint = unsigned int |
|
◆ close
#define close wsock_close |
◆ NOMINMAX
◆ fsync
◆ minor
◆ setenv
#define setenv |
( |
|
x, |
|
|
|
y, |
|
|
|
z |
|
) |
| ::SetEnvironmentVariableA(x, y) |
◆ unsetenv
◆ lstat
◆ 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 122 of file compat.h.
◆ PRIO_PROCESS
◆ setpriority
◆ SIGHUP
◆ SIGQUIT
◆ SIGKILL
◆ SIGUSR1
◆ SIGUSR2
◆ SIGPIPE
◆ SIGALRM
◆ SIGCONT
◆ SIGSTOP
◆ O_SYNC
◆ 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 148 of file compat.h.
◆ RTLD_LAZY
◆ dlopen
#define dlopen |
( |
|
x, |
|
|
|
y |
|
) |
| LoadLibraryA((x)) |
◆ dlclose
#define dlclose |
( |
|
x | ) |
!FreeLibrary((HMODULE)(x)) |
◆ dlsym
#define dlsym |
( |
|
x, |
|
|
|
y |
|
) |
| GetProcAddress((HMODULE)(x), (y)) |
◆ DLERR_MAX
◆ getuid
◆ geteuid
◆ setuid
◆ seteuid
◆ daemon
#define daemon |
( |
|
x, |
|
|
|
y |
|
) |
| -1 |
◆ getloadavg
#define getloadavg |
( |
|
x, |
|
|
|
y |
|
) |
| -1 |
◆ WIFEXITED
#define WIFEXITED |
( |
|
w | ) |
(((w) & 0xff) == 0) |
◆ WIFSIGNALED
#define WIFSIGNALED |
( |
|
w | ) |
(((w) & 0x7f) > 0 && (((w) & 0x7f) < 0x7f)) |
◆ WIFSTOPPED
#define WIFSTOPPED |
( |
|
w | ) |
(((w) & 0xff) == 0x7f) |
◆ WEXITSTATUS
#define WEXITSTATUS |
( |
|
w | ) |
(((w) >> 8) & 0xff) |
◆ WTERMSIG
#define WTERMSIG |
( |
|
w | ) |
((w) & 0x7f) |
◆ LZO_COMPILE_TIME_ASSERT_HEADER
#define LZO_COMPILE_TIME_ASSERT_HEADER |
( |
|
a | ) |
|
◆ LZO_COMPILE_TIME_ASSERT
#define LZO_COMPILE_TIME_ASSERT |
( |
|
a | ) |
|
◆ O_NONBLOCK
#define O_NONBLOCK 04000 /* NOLINT(cppcoreguidelines-macro-usage) */ |
◆ uint
using uint = unsigned int |
◆ statfs()
◆ dlerror()
const char* dlerror |
( |
void |
| ) |
|
|
inline |