2019-10-24 11:51:22 +00:00
|
|
|
module builtin
|
|
|
|
|
2019-10-25 09:07:50 +00:00
|
|
|
|
2019-10-26 08:14:16 +00:00
|
|
|
// <string.h>
|
2019-10-26 08:43:25 +00:00
|
|
|
fn C.memcpy(byteptr, byteptr, int) voidptr
|
2019-10-26 08:51:22 +00:00
|
|
|
fn C.memmove(byteptr, byteptr, int) voidptr
|
2019-10-26 08:14:16 +00:00
|
|
|
|
2019-10-24 11:51:22 +00:00
|
|
|
//fn C.malloc(int) byteptr
|
2019-10-24 12:41:29 +00:00
|
|
|
fn C.realloc(a byteptr, b int) byteptr
|
|
|
|
|
|
|
|
fn C.qsort(voidptr, int, int, voidptr)
|
|
|
|
|
|
|
|
fn C.sprintf(a ...voidptr) byteptr
|
2019-10-25 09:07:50 +00:00
|
|
|
fn C.strlen(s byteptr) int
|
2019-10-25 20:41:18 +00:00
|
|
|
fn C.isdigit(s byteptr) bool
|
2019-10-25 09:07:50 +00:00
|
|
|
|
2019-10-31 21:52:08 +00:00
|
|
|
// stdio.h
|
|
|
|
fn C.popen(c byteptr, t byteptr) voidptr
|
2019-10-26 08:14:16 +00:00
|
|
|
|
2019-10-25 22:55:16 +00:00
|
|
|
// <execinfo.h>
|
2019-10-25 14:59:41 +00:00
|
|
|
fn backtrace(a voidptr, b int) int
|
2019-10-31 21:52:08 +00:00
|
|
|
fn backtrace_symbols(voidptr, int) &byteptr
|
2019-10-25 14:59:41 +00:00
|
|
|
fn backtrace_symbols_fd(voidptr, int, int)
|
2019-10-25 09:07:50 +00:00
|
|
|
|
2019-10-25 22:55:16 +00:00
|
|
|
// <libproc.h>
|
2019-10-25 23:19:14 +00:00
|
|
|
fn proc_pidpath(int, voidptr, int) int
|
2019-10-25 22:55:16 +00:00
|
|
|
|
2019-11-14 22:07:38 +00:00
|
|
|
fn C.realpath(byteptr, byteptr) &char
|
|
|
|
|
2019-10-24 12:41:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
// Windows
|
|
|
|
fn C._setmode(int, int)
|
|
|
|
fn C._fileno(int) int
|
2019-11-15 23:30:50 +00:00
|
|
|
fn C._get_osfhandle(fd int) C.intptr_t
|
|
|
|
fn C.GetModuleFileNameW(hModule voidptr, lpFilename &u16, nSize u32) u32
|
|
|
|
fn C.CreatePipe(hReadPipe &voidptr, hWritePipe &voidptr, lpPipeAttributes voidptr, nSize u32) bool
|
|
|
|
fn C.SetHandleInformation(hObject voidptr, dwMask u32, dwFlags u32) bool
|
|
|
|
fn C.ExpandEnvironmentStringsW(lpSrc &u16, lpDst &u16, nSize u32) u32
|
|
|
|
fn C.CreateProcessW(lpApplicationName &u16, lpCommandLine &u16, lpProcessAttributes voidptr, lpThreadAttributes voidptr, bInheritHandles bool, dwCreationFlags u32, lpEnvironment voidptr, lpCurrentDirectory &u16, lpStartupInfo voidptr, lpProcessInformation voidptr) bool
|
|
|
|
fn C.ReadFile(hFile voidptr, lpBuffer voidptr, nNumberOfBytesToRead u32, lpNumberOfBytesRead voidptr, lpOverlapped voidptr) bool
|
|
|
|
fn C.GetFileAttributesW(lpFileName byteptr) u32
|
|
|
|
fn C.RegQueryValueExW(hKey voidptr, lpValueName &u16, lpReserved &u32, lpType &u32, lpData byteptr, lpcbData &u32) int
|
|
|
|
fn C.RegOpenKeyExW(hKey voidptr, lpSubKey &u16, ulOptions u32, samDesired u32, phkResult voidptr) int
|