Interface between libmkkernel and the Operating-System … More...
#include <LibMkKernel_mk.h>
Data Fields | |
MkSysCallocF | SysCalloc |
calloc syscall … | |
MkSysMallocF | SysMalloc |
malloc syscall … | |
MkSysReallocF | SysRealloc |
realloc syscall … | |
MkSysStrNDupF | SysStrNDup |
strndup syscall … | |
MkSysStrDupF | SysStrDup |
strdup syscall … | |
MkSysStrNCpyF | SysStrNCpy |
strdup strncpy … | |
MkSysFreeF | SysFree |
free syscall … | |
MkSysForkF | SysFork |
fork syscall … | |
MK_PTR | SysForkData |
MkSysWaitF | MkSysWaitForProcessCB |
wait for process to finish syscall with libmkkernel error plugin | |
MkSysWaitF | MkSysWaitForThreadCB |
wait for process to finish syscall with libmkkernel error plugin | |
enum MkErrorE(* | SysUSleep )(MK_OBJN const obj, unsigned int const usec) |
usleep syscall with libmkkernel error plugin | |
enum MkErrorE(* | SysSleep )(MK_OBJN const obj, unsigned int const sec) |
sleep syscall with libmkkernel error plugin | |
enum MkErrorE(* | SysDaemonize )(MK_RT mkrt, MK_OBJN const obj, MK_STRN pidfile) |
demonize the current process and save the resulting PID into the pidfile … | |
MkSysExitF | MkSysExitCB |
exit syscall with libmkkernel error plugin | |
void(* | SysAbort )(void) |
abort syscall … | |
enum MkErrorE(* | SysIgnorSIGCHLD )(MK_RT mkrt, MK_OBJ const obj) |
enum MkErrorE(* | SysAllowSIGCHLD )(MK_RT mkrt, MK_OBJ const obj) |
Interface between libmkkernel and the Operating-System …
Definition at line 2469 of file LibMkKernel_mk.h.
MkSysExitF MkLalS::MkSysExitCB |
exit syscall with libmkkernel error plugin
[in] | mkrt | the MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only) |
[in] | isThread | exit a thread? |
[in] | num | exit code |
MK_NO_RETURN
besause the MkSysExit can be an overload with MkLalS::MkSysExitCB Example:
MK_NO_RETURN
besause the MkSysExitF can be an overload with MkLalS::MkSysExitCB Definition at line 2534 of file LibMkKernel_mk.h.
MkSysWaitF MkLalS::MkSysWaitForProcessCB |
wait for process to finish syscall with libmkkernel error plugin
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | id | process handle |
Definition at line 2488 of file LibMkKernel_mk.h.
MkSysWaitF MkLalS::MkSysWaitForThreadCB |
wait for process to finish syscall with libmkkernel error plugin
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | id | process handle |
Definition at line 2490 of file LibMkKernel_mk.h.
void(* MkLalS::SysAbort) (void) |
abort syscall …
additional info: man abort
Example:
Definition at line 2544 of file LibMkKernel_mk.h.
Definition at line 2544 of file LibMkKernel_mk.h.
MkSysCallocF MkLalS::SysCalloc |
demonize the current process and save the resulting PID into the pidfile …
[in] | obj | ... |
[in] | pidfile | file to save the process identifier, can be used to kill the process later |
Example:
Definition at line 2490 of file LibMkKernel_mk.h.
MkSysForkF MkLalS::SysFork |
fork syscall …
additional info: man fork
Definition at line 2485 of file LibMkKernel_mk.h.
MK_PTR MkLalS::SysForkData |
Definition at line 2486 of file LibMkKernel_mk.h.
MkSysFreeF MkLalS::SysFree |
Definition at line 2544 of file LibMkKernel_mk.h.
MkSysMallocF MkLalS::SysMalloc |
MkSysReallocF MkLalS::SysRealloc |
sleep syscall with libmkkernel error plugin
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | sec | the seconds to sleep |
Example:
Definition at line 2490 of file LibMkKernel_mk.h.
MkSysStrDupF MkLalS::SysStrDup |
MkSysStrNCpyF MkLalS::SysStrNCpy |
MkSysStrNDupF MkLalS::SysStrNDup |
usleep syscall with libmkkernel error plugin
[in] | fmtobj | managed object used to format the log-message (default=MK_NULL → use default-format) |
[in] | usec | the micro (10^-6) seconds to sleep |
Example:
Definition at line 2490 of file LibMkKernel_mk.h.