9 lines
379 B
Python
9 lines
379 B
Python
import t, c
|
|
from . import syscall as syscall
|
|
|
|
def load_so(path: t.CConst | t.CChar | t.CPtr) -> t.CUInt64T:
|
|
return syscall._syscall1(t.CUInt64T(syscall.LOAD_SO), t.CUInt64T(path))
|
|
|
|
def so_call1(sym_name: t.CConst | t.CChar | t.CPtr, arg1: t.CVoid | t.CPtr) -> t.CInt:
|
|
return t.CInt(syscall._syscall2(t.CUInt64T(syscall.SO_CALL1), t.CUInt64T(sym_name), t.CUInt64T(arg1)))
|