2019-10-24 13:51:22 +02:00
|
|
|
module builtin
|
|
|
|
|
2019-10-25 11:07:50 +02:00
|
|
|
|
2019-10-26 10:14:16 +02:00
|
|
|
// <string.h>
|
2019-10-26 10:43:25 +02:00
|
|
|
fn C.memcpy(byteptr, byteptr, int) voidptr
|
2019-10-26 10:51:22 +02:00
|
|
|
fn C.memmove(byteptr, byteptr, int) voidptr
|
2019-10-26 10:14:16 +02:00
|
|
|
|
2019-10-24 13:51:22 +02:00
|
|
|
//fn C.malloc(int) byteptr
|
2019-10-24 14:41:29 +02: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 11:07:50 +02:00
|
|
|
fn C.strlen(s byteptr) int
|
2019-10-25 22:41:18 +02:00
|
|
|
fn C.isdigit(s byteptr) bool
|
2019-10-25 11:07:50 +02:00
|
|
|
|
2019-10-31 22:52:08 +01:00
|
|
|
// stdio.h
|
|
|
|
fn C.popen(c byteptr, t byteptr) voidptr
|
2019-10-26 10:14:16 +02:00
|
|
|
|
2019-10-26 00:55:16 +02:00
|
|
|
// <execinfo.h>
|
2019-10-25 16:59:41 +02:00
|
|
|
fn backtrace(a voidptr, b int) int
|
2019-10-31 22:52:08 +01:00
|
|
|
fn backtrace_symbols(voidptr, int) &byteptr
|
2019-10-25 16:59:41 +02:00
|
|
|
fn backtrace_symbols_fd(voidptr, int, int)
|
2019-10-25 11:07:50 +02:00
|
|
|
|
2019-10-26 00:55:16 +02:00
|
|
|
// <libproc.h>
|
2019-10-26 01:19:14 +02:00
|
|
|
fn proc_pidpath(int, voidptr, int) int
|
2019-10-26 00:55:16 +02:00
|
|
|
|
2019-10-24 14:41:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
// Windows
|
|
|
|
fn C._setmode(int, int)
|
|
|
|
fn C._fileno(int) int
|
2019-10-24 13:51:22 +02:00
|
|
|
|
|
|
|
|