theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_ATL_API

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

+ Collaboration diagram for MkObjectC_Sys_ATL_API:

Functions

static OT_ProcRet atlmkkernel_MkObjectC_SysKill (MkObjectC_ARGS)
 internal function: MkSysKill
 
static OT_ProcRet atlmkkernel_MkObjectC_SysGetPid (MkObjectC_ARGS)
 internal function: MkSysGetPid
 
static OT_ProcRet atlmkkernel_MkObjectC_SysHashI32 (OtClass_ARGS)
 internal function: MkSysHashI32
 
static OT_ProcRet atlmkkernel_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 atlmkkernel specific error codes/messages

Function Documentation

◆ atlmkkernel_MkObjectC_SysGetPid()

static OT_ProcRet atlmkkernel_MkObjectC_SysGetPid ( MkObjectC_ARGS )
static

internal function: MkSysGetPid

Definition at line 858 of file MkObjectC_atl.c.

858 {
862 MK_I32 pid_out;
863 MkErrorC_Check(hdl,MkSysGetPid (hdl, &pid_out));
864 OT_retObj_SET_I32(pid_out);
865 goto end;
866 error:
868 end:
870}
#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 atlmkkernel error plugin

◆ atlmkkernel_MkObjectC_SysHashI32()

static OT_ProcRet atlmkkernel_MkObjectC_SysHashI32 ( OtClass_ARGS )
static

internal function: MkSysHashI32

Definition at line 875 of file MkObjectC_atl.c.

875 {
878 MK_STRN key = 0;
880 MK_NUM length = -1;
883 OT_retObj_SET_I32(MkSysHashI32 (key, length));
884 goto end;
885 error:
887 end:
889}
#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 …

◆ atlmkkernel_MkObjectC_SysHashSTR()

static OT_ProcRet atlmkkernel_MkObjectC_SysHashSTR ( OtClass_ARGS )
static

internal function: MkSysHashSTR

Definition at line 892 of file MkObjectC_atl.c.

892 {
895 MK_STRN key = 0;
897 MK_NUM length = -1;
900 OT_retObj_SET_STR(MkSysHashSTR (key, length));
901 goto end;
902 error:
904 end:
906}
#define OT_retObj_SET_STR(nat)
#define SysHashSTR_doc
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …

◆ atlmkkernel_MkObjectC_SysKill()

static OT_ProcRet atlmkkernel_MkObjectC_SysKill ( MkObjectC_ARGS )
static

internal function: MkSysKill

Definition at line 838 of file MkObjectC_atl.c.

838 {
841 MK_I32 pid = 0;
843 MK_I32 signal = 0;
846 MkErrorC_Check(hdl,MkSysKill (hdl, pid, signal));
848 goto end;
849 error:
851 end:
853}
#define OT_retObj_SET_None
#define SysKill_doc
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with atlmkkernel error plugin