mecca.platform.os.linux

Linux platform specific functions

Modules

time
module mecca.platform.os.linux.time
Undocumented in source.
ucontext
module mecca.platform.os.linux.ucontext
Undocumented in source.

Public Imports

mecca.platform.os.linux.ucontext
public import mecca.platform.os.linux.ucontext;
mecca.platform.os.linux.time
public import mecca.platform.os.linux.time;
core.sys.posix.signal
public import core.sys.posix.signal : SIGRTMIN, SIGRTMAX;
core.sys.linux.sys.mman
public import core.sys.linux.sys.mman : MAP_POPULATE, MREMAP_MAYMOVE;
core.stdc.errno
public import core.stdc.errno : EREMOTEIO;
core.sys.posix.sys.time
public import core.sys.posix.sys.time : ITIMER_REAL;

Members

Aliases

CloneFunction
alias CloneFunction = int function(void*) nothrow
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ThreadId
alias ThreadId = ReturnType!gettid

Represents the ID of a thread.

Enums

CSIGNAL
anonymousenum CSIGNAL
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MNT_FORCE
anonymousenum MNT_FORCE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
MountOptions
enum MountOptions
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
OSSignal
enum OSSignal
Undocumented in source.
Syscall
enum Syscall
Undocumented in source.
SyscallTracePoint
enum SyscallTracePoint
Undocumented in source.

Functions

chroot
int chroot(char* dirname)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
clone
int clone(CloneFunction fn, void* child_stack, int flags, void* args)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
currentThreadId
ThreadId currentThreadId()

Represents the ID of a thread.

gettid
int gettid()
Undocumented in source. Be warned that the author may not have intended to support it.
mount
int mount(char* __special_file, char* __dir, char* __fstype, ulong __rwflag, void* __data)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
mremap
void* mremap(MmapArguments , void* oldAddress, size_t oldSize, size_t newSize, int flags, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
syscall
long syscall(int number, ...)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
syscall_int
int syscall_int(int number, ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
tgkill
int tgkill(int tgid, int tid, int sig)
Undocumented in source. Be warned that the author may not have intended to support it.
umount
int umount(char* target)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
umount2
int umount2(char* target, int flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
unshare
int unshare(int flags)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Manifest constants

F_DUPFD_CLOEXEC
enum F_DUPFD_CLOEXEC;
Undocumented in source.
F_DUPFD_CLOEXEC
enum F_DUPFD_CLOEXEC;
Undocumented in source.
NUM_SIGS
enum NUM_SIGS;
Undocumented in source.
O_CLOEXEC
enum O_CLOEXEC;
Undocumented in source.
O_CLOEXEC
enum O_CLOEXEC;
Undocumented in source.

Mixin templates

InterceptCall
mixintemplate InterceptCall(alias F)

Intercept a library of a system call

hookSyscall
mixintemplate hookSyscall(alias F, Syscall nr, alias traceFunc, SyscallTracePoint tracePoint = SyscallTracePoint.PRE_SYSCALL, string file = __FILE_FULL_PATH__, size_t line = __LINE__, string _module_ = __MODULE__)
Undocumented in source.

Static variables

BLOCKED_SIGNALS
auto BLOCKED_SIGNALS;
Undocumented in source.

Meta