theKernel 10.0
Loading...
Searching...
No Matches
MK_System_CC_API

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

+ Collaboration diagram for MK_System_CC_API:

Functions

MK_STR ccmkkernel::MkObjectC::SysStrDup (MK_STRN str)
 strdup syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysStrDup
 
void ccmkkernel::MkObjectC::SysFree (MK_PTR tgt)
 implements the ccmkkernel API object: MkSysFree
 
void ccmkkernel::MkObjectC::Sleep (unsigned int const sec)
 sleep syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysSleep
 
void ccmkkernel::MkObjectC::USleep (unsigned int const usec)
 usleep syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysUSleep
 

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 ccmkkernel specific error codes/messages

Function Documentation

◆ Sleep()

void ccmkkernel::MkObjectC::Sleep ( unsigned int const sec)
inline

sleep syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysSleep

Definition at line 256 of file MkObjectC_cc.hh.

256{ ErrorCheck (MkSysSleep(hdl, sec)); }
void ErrorCheck(enum MkErrorE err, MK_STRN const caller=__builtin_FUNCTION(), MK_I32 const line=__builtin_LINE()) const
static enum MkErrorE MkSysSleep(MK_OBJN fmtobj, MK_I32 const sec)
sleep syscall with ccmkkernel error plugin

◆ SysFree()

void ccmkkernel::MkObjectC::SysFree ( MK_PTR tgt)
inline

implements the ccmkkernel API object: MkSysFree

Definition at line 254 of file MkObjectC_cc.hh.

254{ (*MkLal.SysFree)((MK_PTR)tgt); }
MK_PTRB * MK_PTR
generic pointer data-type
struct MkLalS MkLal
Language Abstraction Layer in duty.
MkSysFreeF SysFree
free syscall …

◆ SysStrDup()

MK_STR ccmkkernel::MkObjectC::SysStrDup ( MK_STRN str)
inline

strdup syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysStrDup

Definition at line 252 of file MkObjectC_cc.hh.

252{ return MkSysStrDup(hdl, str); }
MK_STR MkSysStrDup(MK_OBJN fmtobj, MK_STRN const str)
strdup syscall with ccmkkernel error plugin

◆ USleep()

void ccmkkernel::MkObjectC::USleep ( unsigned int const usec)
inline

usleep syscall with ccmkkernel error plugin → C-API: libmkkernel::MkSysUSleep

Definition at line 258 of file MkObjectC_cc.hh.

258{ ErrorCheck (MkSysUSleep(hdl, usec)); }
static enum MkErrorE MkSysUSleep(MK_OBJN fmtobj, useconds_t const usec)
usleep syscall with ccmkkernel error plugin