theKernel 10.0
Loading...
Searching...
No Matches
MkObjectC_Sys_TCL_API

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

+ Collaboration diagram for MkObjectC_Sys_TCL_API:

Functions

static OT_ProcRet tclmkkernel_MkObjectC_SysKill (MkObjectC_ARGS)
 internal function: MkSysKill
 
static OT_ProcRet tclmkkernel_MkObjectC_SysGetPid (MkObjectC_ARGS)
 internal function: MkSysGetPid
 
static OT_ProcRet tclmkkernel_MkObjectC_SysHashI32 (OtClass_ARGS)
 internal function: MkSysHashI32
 
static OT_ProcRet tclmkkernel_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 tclmkkernel specific error codes/messages

Function Documentation

◆ tclmkkernel_MkObjectC_SysGetPid()

static OT_ProcRet tclmkkernel_MkObjectC_SysGetPid ( MkObjectC_ARGS )
static

internal function: MkSysGetPid

Definition at line 881 of file MkObjectC_tcl.c.

881 {
885 MK_I32 pid_out;
886 MkErrorC_Check(hdl,MkSysGetPid (hdl, &pid_out));
887 OT_retObj_SET_I32(pid_out);
888 goto end;
889 error:
891 end:
893}
#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 tclmkkernel error plugin

◆ tclmkkernel_MkObjectC_SysHashI32()

static OT_ProcRet tclmkkernel_MkObjectC_SysHashI32 ( OtClass_ARGS )
static

internal function: MkSysHashI32

Definition at line 898 of file MkObjectC_tcl.c.

898 {
901 MK_STRN key = 0;
903 MK_NUM length = -1;
906 OT_retObj_SET_I32(MkSysHashI32 (key, length));
907 goto end;
908 error:
910 end:
912}
#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 …

◆ tclmkkernel_MkObjectC_SysHashSTR()

static OT_ProcRet tclmkkernel_MkObjectC_SysHashSTR ( OtClass_ARGS )
static

internal function: MkSysHashSTR

Definition at line 915 of file MkObjectC_tcl.c.

915 {
918 MK_STRN key = 0;
920 MK_NUM length = -1;
923 OT_retObj_SET_STR(MkSysHashSTR (key, length));
924 goto end;
925 error:
927 end:
929}
#define OT_retObj_SET_STR(nat)
#define SysHashSTR_doc
MK_STRN MkSysHashSTR(MK_STRN key, MK_NUM length)
compute the HASH from a string …

◆ tclmkkernel_MkObjectC_SysKill()

static OT_ProcRet tclmkkernel_MkObjectC_SysKill ( MkObjectC_ARGS )
static

internal function: MkSysKill

Definition at line 861 of file MkObjectC_tcl.c.

861 {
864 MK_I32 pid = 0;
866 MK_I32 signal = 0;
869 MkErrorC_Check(hdl,MkSysKill (hdl, pid, signal));
871 goto end;
872 error:
874 end:
876}
#define OT_retObj_SET_None
#define SysKill_doc
enum MkErrorE MkSysKill(MK_OBJN fmtobj, MK_I32 pid, MK_I32 signal)
kill syscall with tclmkkernel error plugin