theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_PY_API

MkObjectC - L)anguage A)bstraction L)ayer definition … More...

+ Collaboration diagram for MkObjectC_Sys_PY_API:

Functions

static OT_ProcRet pymkkernel_MkObjectC_SysKill (MkObjectC_ARGS)
 internal function: MkSysKill
 
static OT_ProcRet pymkkernel_MkObjectC_SysGetPid (MkObjectC_ARGS)
 internal function: MkSysGetPid
 
static OT_ProcRet pymkkernel_MkObjectC_SysHashI32 (OtClass_ARGS)
 internal function: MkSysHashI32
 
static OT_ProcRet pymkkernel_MkObjectC_SysHashSTR (OtClass_ARGS)
 internal function: MkSysHashSTR
 

Detailed Description

MkObjectC - L)anguage A)bstraction L)ayer definition …

The LAL is required to give the target of embedding a change to modify the access to system functions. RUBY for example has it's own Thread-Creation function.

All wrappers to access the underlying OS,Languages and system functions are located in this section. Every external Function has additional code to map the OS/System specific error codes/messages into a pymkkernel specific error codes/messages

Function Documentation

◆ pymkkernel_MkObjectC_SysGetPid()

static OT_ProcRet pymkkernel_MkObjectC_SysGetPid ( MkObjectC_ARGS )
static

internal function: MkSysGetPid

Definition at line 850 of file MkObjectC_py.c.

850 {
854 MK_I32 pid_out;
855 MkErrorC_Check(hdl,MkSysGetPid (hdl, &pid_out));
856 OT_retObj_SET_I32(pid_out);
857 goto end;
858 error:
860 end:
862}
#define OT_SETUP_NOARG(d)
#define OT_retObj_SET_Error
#define OT_retObj_SET_I32(nat)
#define OT_retObj_RETURN
#define OT_CHECK_NOARGS
#define MkErrorC_Check(mng, PROC)
#define SysGetPid_doc
#define OT_SETUP_hdl__null_allow
signed int MK_I32
4 byte integer data-type
enum MkErrorE MkSysGetPid(MK_OBJN fmtobj, MK_I32 *pid_out)
getpid syscall with pymkkernel error plugin

◆ pymkkernel_MkObjectC_SysHashI32()

static OT_ProcRet pymkkernel_MkObjectC_SysHashI32 ( OtClass_ARGS )
static

internal function: MkSysHashI32

Definition at line 867 of file MkObjectC_py.c.

867 {
870 MK_STRN key = 0;
872 MK_NUM length = -1;
875 OT_retObj_SET_I32(MkSysHashI32 (key, length));
876 goto end;
877 error:
879 end:
881}
#define OT_SETUP_VARARGS(min, max, d)
#define OT_CHECK_NI4(val)
#define OT_CHECK_REQUIRED(val)
#define OT_CHECK_OPTIONAL(val)
#define OT_CHECK_STRN(val)
#define SysHashI32_doc
#define OT_SETUP_hdl_static
int32_t MK_NUM
array size data-type ('num' items in array …
const MK_STRB * MK_STRN
constant string pointer data-type
MK_I32 MkSysHashI32(MK_STRN key, MK_NUM length)
same as MkSysHashSTR but return MK_I32 …

◆ pymkkernel_MkObjectC_SysHashSTR()

static OT_ProcRet pymkkernel_MkObjectC_SysHashSTR ( OtClass_ARGS )
static

internal function: MkSysHashSTR

Definition at line 884 of file MkObjectC_py.c.

884 {
887 MK_STRN key = 0;
889 MK_NUM length = -1;
892 OT_retObj_SET_STR(MkSysHashSTR (key, length));
893 goto end;
894 error:
896 end:
898}
#define OT_retObj_SET_STR(nat)
#define SysHashSTR_doc
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …

◆ pymkkernel_MkObjectC_SysKill()

static OT_ProcRet pymkkernel_MkObjectC_SysKill ( MkObjectC_ARGS )
static

internal function: MkSysKill

Definition at line 830 of file MkObjectC_py.c.

830 {
833 MK_I32 pid = 0;
835 MK_I32 signal = 0;
838 MkErrorC_Check(hdl,MkSysKill (hdl, pid, signal));
840 goto end;
841 error:
843 end:
845}
#define OT_retObj_SET_None
#define SysKill_doc
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with pymkkernel error plugin