theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_RB_API

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

+ Collaboration diagram for MkObjectC_Sys_RB_API:

Functions

static OT_ProcRet rbmkkernel_MkObjectC_SysKill (MkObjectC_ARGS)
 internal function: MkSysKill
 
static OT_ProcRet rbmkkernel_MkObjectC_SysGetPid (MkObjectC_ARGS)
 internal function: MkSysGetPid
 
static OT_ProcRet rbmkkernel_MkObjectC_SysHashI32 (OtClass_ARGS)
 internal function: MkSysHashI32
 
static OT_ProcRet rbmkkernel_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 rbmkkernel specific error codes/messages

Function Documentation

◆ rbmkkernel_MkObjectC_SysGetPid()

static OT_ProcRet rbmkkernel_MkObjectC_SysGetPid ( MkObjectC_ARGS )
static

internal function: MkSysGetPid

Definition at line 769 of file MkObjectC_rb.c.

769 {
773 MK_I32 pid_out;
774 MkErrorC_Check(hdl,MkSysGetPid (hdl, &pid_out));
775 OT_retObj_SET_I32(pid_out);
776 end: MK_UNUSED /* LONG JUMP on error */
778}
#define OT_SETUP_NOARG(d)
#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
#define MK_UNUSED
mark unnused variables and functions
signed int MK_I32
4 byte integer data-type
enum MkErrorE MkSysGetPid(MK_OBJN fmtobj, MK_I32 *pid_out)
getpid syscall with rbmkkernel error plugin

◆ rbmkkernel_MkObjectC_SysHashI32()

static OT_ProcRet rbmkkernel_MkObjectC_SysHashI32 ( OtClass_ARGS )
static

internal function: MkSysHashI32

Definition at line 783 of file MkObjectC_rb.c.

783 {
786 MK_STRN key = 0;
788 MK_NUM length = -1;
791 OT_retObj_SET_I32(MkSysHashI32 (key, length));
792 end: MK_UNUSED /* LONG JUMP on error */
794}
#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 …

◆ rbmkkernel_MkObjectC_SysHashSTR()

static OT_ProcRet rbmkkernel_MkObjectC_SysHashSTR ( OtClass_ARGS )
static

internal function: MkSysHashSTR

Definition at line 797 of file MkObjectC_rb.c.

797 {
800 MK_STRN key = 0;
802 MK_NUM length = -1;
805 OT_retObj_SET_STR(MkSysHashSTR (key, length));
806 end: MK_UNUSED /* LONG JUMP on error */
808}
#define OT_retObj_SET_STR(nat)
#define SysHashSTR_doc
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …

◆ rbmkkernel_MkObjectC_SysKill()

static OT_ProcRet rbmkkernel_MkObjectC_SysKill ( MkObjectC_ARGS )
static

internal function: MkSysKill

Definition at line 752 of file MkObjectC_rb.c.

752 {
755 MK_I32 pid = 0;
757 MK_I32 signal = 0;
760 MkErrorC_Check(hdl,MkSysKill (hdl, pid, signal));
762 end: MK_UNUSED /* LONG JUMP on error */
764}
#define OT_retObj_SET_None
#define SysKill_doc
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with rbmkkernel error plugin