将 .py 和 .pyi 后缀名改为了 .vp 和 .vpi 后缀名
This commit is contained in:
8
vpsdk/dynlib.vp
Normal file
8
vpsdk/dynlib.vp
Normal file
@@ -0,0 +1,8 @@
|
||||
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)))
|
||||
Reference in New Issue
Block a user