runtime/core

sourceruntime/core.sx

sx_alloc

when freestandingprivate
extern (C) fn sx_alloc(size: usize) ref void = trust { ... } = "sx_alloc"

sx_calloc

when freestandingprivate
extern (C) fn sx_calloc(count: usize, size: usize) ref void = trust { ... } = "sx_calloc"

sx_realloc

when freestandingprivate
extern (C) fn sx_realloc(ptr: ref void, size: usize) ref void = trust { ... } = "sx_realloc"

sx_free

when freestandingprivate
extern (C) fn sx_free(ptr: ref void) void = trust { ... } = "sx_free"

sx_memcpy

when freestandingprivate
extern (C) fn sx_memcpy(dst: ref void, src: ref void, n: usize) ref void = trust { ... } = "sx_memcpy"

sx_memmove

when freestandingprivate
extern (C) fn sx_memmove(dst: ref void, src: ref void, n: usize) ref void = trust { ... } = "sx_memmove"

sx_memset

when freestandingprivate
extern (C) fn sx_memset(dst: ref void, value: i32, n: usize) ref void = trust { ... } = "sx_memset"

sx_memcmp

when freestandingprivate
extern (C) fn sx_memcmp(a: ref void, b: ref void, n: usize) i32 = trust { ... } = "sx_memcmp"

sx_strlen

when freestandingprivate
extern (C) fn sx_strlen(s: ref u8) i64 = trust { ... } = "sx_strlen"

sx_strcmp

when freestandingprivate
extern (C) fn sx_strcmp(a: ref u8, b: ref u8) i32 = trust { ... } = "sx_strcmp"

sx_strncmp

when freestandingprivate
extern (C) fn sx_strncmp(a: ref u8, b: ref u8, n: usize) i32 = trust { ... } = "sx_strncmp"

sx_strcpy

when freestandingprivate
extern (C) fn sx_strcpy(dst: ref u8, src: ref u8) ref u8 = trust { ... } = "sx_strcpy"

sx_strcat

when freestandingprivate
extern (C) fn sx_strcat(dst: ref u8, src: ref u8) ref u8 = trust { ... } = "sx_strcat"

sx_strchr

when freestandingprivate
extern (C) fn sx_strchr(s: ref u8, c: i32) ref u8 = trust { ... } = "sx_strchr"

sx_strrchr

when freestandingprivate
extern (C) fn sx_strrchr(s: ref u8, c: i32) ref u8 = trust { ... } = "sx_strrchr"

sx_strstr

when freestandingprivate
extern (C) fn sx_strstr(haystack: ref u8, needle: ref u8) ref u8 = trust { ... } = "sx_strstr"

sx_strdup

when freestandingprivate
extern (C) fn sx_strdup(s: ref u8) ref u8 = trust { ... } = "sx_strdup"

sx_strtok_r

when freestandingprivate
extern (C) fn sx_strtok_r(s: ref u8, delim: ref u8, save: ref ref u8) ref u8 = trust { ... } = "sx_strtok_r"

sx_atoi

when freestandingprivate
extern (C) fn sx_atoi(s: ref u8) i32 = trust { ... } = "sx_atoi"

sx_isdigit

when freestandingprivate
extern (C) fn sx_isdigit(c: i32) i32 = trust { ... } = "sx_isdigit"

sx_strtol

when freestandingprivate
extern (C) fn sx_strtol(s: ref u8, end: ref ref u8, base: i32) i64 = trust { ... } = "sx_strtol"

sx_fopen

when freestandingprivate
extern (C) fn sx_fopen(path: ref u8, mode: ref u8) ref void = trust { ... } = "sx_fopen"

sx_fclose

when freestandingprivate
extern (C) fn sx_fclose(f: ref void) i32 = trust { ... } = "sx_fclose"

sx_fread

when freestandingprivate
extern (C) fn sx_fread(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... } = "sx_fread"

sx_fwrite

when freestandingprivate
extern (C) fn sx_fwrite(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... } = "sx_fwrite"

sx_fseek

when freestandingprivate
extern (C) fn sx_fseek(f: ref void, offset: i64, whence: i32) i32 = trust { ... } = "sx_fseek"

sx_ftell

when freestandingprivate
extern (C) fn sx_ftell(f: ref void) i64 = trust { ... } = "sx_ftell"

sx_rewind

when freestandingprivate
extern (C) fn sx_rewind(f: ref void) void = trust { ... } = "sx_rewind"

sx_fflush

when freestandingprivate
extern (C) fn sx_fflush(f: ref void) i32 = trust { ... } = "sx_fflush"

sx_fgetc

when freestandingprivate
extern (C) fn sx_fgetc(f: ref void) i32 = trust { ... } = "sx_fgetc"

sx_getchar

when freestandingprivate
extern (C) fn sx_getchar() i32 = trust { ... } = "sx_getchar"

sx_fputc

when freestandingprivate
extern (C) fn sx_fputc(c: i32, f: ref void) i32 = trust { ... } = "sx_fputc"

sx_putchar

when freestandingprivate
extern (C) fn sx_putchar(c: i32) i32 = trust { ... } = "sx_putchar"

sx_fgets

when freestandingprivate
extern (C) fn sx_fgets(buf: ref u8, n: i32, f: ref void) ref u8 = trust { ... } = "sx_fgets"

sx_fputs

when freestandingprivate
extern (C) fn sx_fputs(s: ref u8, f: ref void) i32 = trust { ... } = "sx_fputs"

sx_fdopen

when freestandingprivate
extern (C) fn sx_fdopen(fd: i32, mode: ref u8) ref void = trust { ... } = "sx_fdopen"

sx_fileno

when freestandingprivate
extern (C) fn sx_fileno(f: ref void) i32 = trust { ... } = "sx_fileno"

sx_feof

when freestandingprivate
extern (C) fn sx_feof(f: ref void) i32 = trust { ... } = "sx_feof"

sx_ferror

when freestandingprivate
extern (C) fn sx_ferror(f: ref void) i32 = trust { ... } = "sx_ferror"

sx_stdin_file

when freestandingprivate
extern (C) fn sx_stdin_file() ref void = trust { ... } = "sx_stdin_file"

sx_stdout_file

when freestandingprivate
extern (C) fn sx_stdout_file() ref void = trust { ... } = "sx_stdout_file"

sx_stderr_file

when freestandingprivate
extern (C) fn sx_stderr_file() ref void = trust { ... } = "sx_stderr_file"

sx_getenv

when freestandingprivate
extern (C) fn sx_getenv(name: ref u8) ref u8 = trust { ... } = "sx_getenv"

sx_getcwd

when freestandingprivate
extern (C) fn sx_getcwd(buf: ref u8, size: usize) ref u8 = trust { ... } = "sx_getcwd"

sx_chdir

when freestandingprivate
extern (C) fn sx_chdir(path: ref u8) i32 = trust { ... } = "sx_chdir"

sx_access

when freestandingprivate
extern (C) fn sx_access(path: ref u8, mode: i32) i32 = trust { ... } = "sx_access"

sx_mkdir

when freestandingprivate
extern (C) fn sx_mkdir(path: ref u8, mode: u32) i32 = trust { ... } = "sx_mkdir"

sx_rmdir

when freestandingprivate
extern (C) fn sx_rmdir(path: ref u8) i32 = trust { ... } = "sx_rmdir"

sx_remove

when freestandingprivate
extern (C) fn sx_remove(path: ref u8) i32 = trust { ... } = "sx_remove"

sx_rename

when freestandingprivate
extern (C) fn sx_rename(old: ref u8, new: ref u8) i32 = trust { ... } = "sx_rename"

sx_unlink

when freestandingprivate
extern (C) fn sx_unlink(path: ref u8) i32 = trust { ... } = "sx_unlink"

sx_realpath

when freestandingprivate
extern (C) fn sx_realpath(path: ref u8, out: ref u8) ref u8 = trust { ... } = "sx_realpath"

sx_readlink

when freestandingprivate
extern (C) fn sx_readlink(path: ref u8, buf: ref u8, n: usize) i64 = trust { ... } = "sx_readlink"

sx_isatty

when freestandingprivate
extern (C) fn sx_isatty(fd: i32) i32 = trust { ... } = "sx_isatty"

sx_stat

when freestandingprivate
extern (C) fn sx_stat(path: ref u8, buf: ref void) i32 = trust { ... } = "sx_stat"

sx_uname

when freestandingprivate
extern (C) fn sx_uname(buf: ref void) i32 = trust { ... } = "sx_uname"

sx_opendir

when freestandingprivate
extern (C) fn sx_opendir(path: ref u8) ref void = trust { ... } = "sx_opendir"

sx_closedir

when freestandingprivate
extern (C) fn sx_closedir(dir: ref void) i32 = trust { ... } = "sx_closedir"

sx_readdir

when freestandingprivate
extern (C) fn sx_readdir(dir: ref void) ref void = trust { ... } = "sx_readdir"

sx_exit

when freestandingprivate
extern (C) fn sx_exit(code: i32) void = trust { ... } = "sx_exit"

sx_system

when freestandingprivate
extern (C) fn sx_system(cmd: ref u8) i32 = trust { ... } = "sx_system"

sx_popen

when freestandingprivate
extern (C) fn sx_popen(cmd: ref u8, mode: ref u8) ref void = trust { ... } = "sx_popen"

sx_pclose

when freestandingprivate
extern (C) fn sx_pclose(pipe: ref void) i32 = trust { ... } = "sx_pclose"

sx_gettimeofday

when freestandingprivate
extern (C) fn sx_gettimeofday(tv: ref void, tz: ref void) i32 = trust { ... } = "sx_gettimeofday"

sx_localtime

when freestandingprivate
extern (C) fn sx_localtime(t: ref i64) ref void = trust { ... } = "sx_localtime"

sx_usleep

when freestandingprivate
extern (C) fn sx_usleep(usec: u32) i32 = trust { ... } = "sx_usleep"

sx_sleep

when freestandingprivate
extern (C) fn sx_sleep(seconds: u32) i32 = trust { ... } = "sx_sleep"

sx_time

when freestandingprivate
extern (C) fn sx_time(out: ref i64) i64 = trust { ... } = "sx_time"

sx_getrandom

when freestandingprivate
extern (C) fn sx_getrandom(buf: ref void, n: usize, flags: u32) i64 = trust { ... } = "sx_getrandom"

sx_arc4random_buf

when freestandingprivate
extern (C) fn sx_arc4random_buf(buf: ref void, n: usize) void = trust { ... } = "sx_arc4random_buf"

sx_pthread_create

when freestandingprivate
extern (C) fn sx_pthread_create(thread: ref void, attr: ref void, entry: usize, arg: ref void) i32 = trust { ... } = "sx_pthread_create"

sx_pthread_join

when freestandingprivate
extern (C) fn sx_pthread_join(thread: ref void, retval: ref void) i32 = trust { ... } = "sx_pthread_join"

sx_pthread_detach

when freestandingprivate
extern (C) fn sx_pthread_detach(thread: ref void) i32 = trust { ... } = "sx_pthread_detach"

sx_pthread_self

when freestandingprivate
extern (C) fn sx_pthread_self() ref void = trust { ... } = "sx_pthread_self"

sx_sched_yield

when freestandingprivate
extern (C) fn sx_sched_yield() i32 = trust { ... } = "sx_sched_yield"

sx_mutex_init

when freestandingprivate
extern (C) fn sx_mutex_init(m: ref void) i32 = trust { ... } = "sx_mutex_init"

sx_mutex_destroy

when freestandingprivate
extern (C) fn sx_mutex_destroy(m: ref void) i32 = trust { ... } = "sx_mutex_destroy"

sx_mutex_lock

when freestandingprivate
extern (C) fn sx_mutex_lock(m: ref void) i32 = trust { ... } = "sx_mutex_lock"

sx_mutex_unlock

when freestandingprivate
extern (C) fn sx_mutex_unlock(m: ref void) i32 = trust { ... } = "sx_mutex_unlock"

sx_socket

when freestandingprivate
extern (C) fn sx_socket(domain: i32, kind: i32, protocol: i32) i32 = trust { ... } = "sx_socket"

sx_bind

when freestandingprivate
extern (C) fn sx_bind(fd: i32, addr: ref void, len: u32) i32 = trust { ... } = "sx_bind"

sx_listen

when freestandingprivate
extern (C) fn sx_listen(fd: i32, backlog: i32) i32 = trust { ... } = "sx_listen"

sx_accept

when freestandingprivate
extern (C) fn sx_accept(fd: i32, addr: ref void, len: ref u32) i32 = trust { ... } = "sx_accept"

sx_connect

when freestandingprivate
extern (C) fn sx_connect(fd: i32, addr: ref void, len: u32) i32 = trust { ... } = "sx_connect"

sx_send

when freestandingprivate
extern (C) fn sx_send(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... } = "sx_send"

sx_recv

when freestandingprivate
extern (C) fn sx_recv(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... } = "sx_recv"

sx_sendto

when freestandingprivate
extern (C) fn sx_sendto(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: u32) i32 = trust { ... } = "sx_sendto"

sx_recvfrom

when freestandingprivate
extern (C) fn sx_recvfrom(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: ref u32) i32 = trust { ... } = "sx_recvfrom"

sx_setsockopt

when freestandingprivate
extern (C) fn sx_setsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: u32) i32 = trust { ... } = "sx_setsockopt"

sx_getsockopt

when freestandingprivate
extern (C) fn sx_getsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: ref u32) i32 = trust { ... } = "sx_getsockopt"

sx_poll

when freestandingprivate
extern (C) fn sx_poll(fds: ref void, n: u64, timeout: i32) i32 = trust { ... } = "sx_poll"

sx_htons

when freestandingprivate
extern (C) fn sx_htons(v: u16) u16 = trust { ... } = "sx_htons"

sx_ntohs

when freestandingprivate
extern (C) fn sx_ntohs(v: u16) u16 = trust { ... } = "sx_ntohs"

sx_closesocket

when freestandingprivate
extern (C) fn sx_closesocket(fd: i32) i32 = trust { ... } = "sx_closesocket"

sx_signal

when freestandingprivate
extern (C) fn sx_signal(sig: i32, handler: fn(i32) void) fn(i32) void = trust { ... } = "sx_signal"

sx_raise

when freestandingprivate
extern (C) fn sx_raise(sig: i32) i32 = trust { ... } = "sx_raise"

c_alloc

otherwiseprivate
extern (C, header) fn c_alloc(size: usize) ref void = trust { ... } = "malloc"

c_calloc

otherwiseprivate
extern (C, header) fn c_calloc(count: usize, size: usize) ref void = trust { ... } = "calloc"

c_realloc

otherwiseprivate
extern (C, header) fn c_realloc(ptr: ref void, size: usize) ref void = trust { ... } = "realloc"

c_free

otherwiseprivate
extern (C, header) fn c_free(ptr: ref void) void = trust { ... } = "free"

c_memcpy

otherwiseprivate
extern (C, header) fn c_memcpy(dst: ref void, src: ref void, n: usize) ref void = trust { ... } = "memcpy"

c_memmove

otherwiseprivate
extern (C, header) fn c_memmove(dst: ref void, src: ref void, n: usize) ref void = trust { ... } = "memmove"

c_memset

otherwiseprivate
extern (C, header) fn c_memset(dst: ref void, value: i32, n: usize) ref void = trust { ... } = "memset"

c_memcmp

otherwiseprivate
extern (C, header) fn c_memcmp(a: ref void, b: ref void, n: usize) i32 = trust { ... } = "memcmp"

c_strlen

otherwiseprivate
extern (C, header) fn c_strlen(s: ref u8) i64 = trust { ... } = "strlen"

c_strcmp

otherwiseprivate
extern (C, header) fn c_strcmp(a: ref u8, b: ref u8) i32 = trust { ... } = "strcmp"

c_strncmp

otherwiseprivate
extern (C, header) fn c_strncmp(a: ref u8, b: ref u8, n: usize) i32 = trust { ... } = "strncmp"

c_strcpy

otherwiseprivate
extern (C, header) fn c_strcpy(dst: ref u8, src: ref u8) ref u8 = trust { ... } = "strcpy"

c_strcat

otherwiseprivate
extern (C, header) fn c_strcat(dst: ref u8, src: ref u8) ref u8 = trust { ... } = "strcat"

c_strchr

otherwiseprivate
extern (C, header) fn c_strchr(s: ref u8, c: i32) ref u8 = trust { ... } = "strchr"

c_strrchr

otherwiseprivate
extern (C, header) fn c_strrchr(s: ref u8, c: i32) ref u8 = trust { ... } = "strrchr"

c_strstr

otherwiseprivate
extern (C, header) fn c_strstr(haystack: ref u8, needle: ref u8) ref u8 = trust { ... } = "strstr"

c_strdup

otherwiseprivate
extern (C, header) fn c_strdup(s: ref u8) ref u8 = trust { ... } = "strdup"

c_strtok_r

otherwiseprivate
extern (C, header) fn c_strtok_r(s: ref u8, delim: ref u8, save: ref ref u8) ref u8 = trust { ... } = "strtok_r"

c_atoi

otherwiseprivate
extern (C, header) fn c_atoi(s: ref u8) i32 = trust { ... } = "atoi"

c_isdigit

otherwiseprivate
extern (C, header) fn c_isdigit(c: i32) i32 = trust { ... } = "isdigit"

c_strtol

otherwiseprivate
extern (C, header) fn c_strtol(s: ref u8, end: ref ref u8, base: i32) i64 = trust { ... } = "strtol"

c_fopen

otherwiseprivate
extern (C, header) fn c_fopen(path: ref u8, mode: ref u8) ref void = trust { ... } = "fopen"

c_fclose

otherwiseprivate
extern (C, header) fn c_fclose(f: ref void) i32 = trust { ... } = "fclose"

c_fread

otherwiseprivate
extern (C, header) fn c_fread(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... } = "fread"

c_fwrite

otherwiseprivate
extern (C, header) fn c_fwrite(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... } = "fwrite"

c_fseek

otherwiseprivate
extern (C, header) fn c_fseek(f: ref void, offset: i64, whence: i32) i32 = trust { ... } = "fseek"

c_ftell

otherwiseprivate
extern (C, header) fn c_ftell(f: ref void) i64 = trust { ... } = "ftell"

c_rewind

otherwiseprivate
extern (C, header) fn c_rewind(f: ref void) void = trust { ... } = "rewind"

c_fflush

otherwiseprivate
extern (C, header) fn c_fflush(f: ref void) i32 = trust { ... } = "fflush"

c_fgetc

otherwiseprivate
extern (C, header) fn c_fgetc(f: ref void) i32 = trust { ... } = "fgetc"

c_getchar

otherwiseprivate
extern (C, header) fn c_getchar() i32 = trust { ... } = "getchar"

c_fputc

otherwiseprivate
extern (C, header) fn c_fputc(c: i32, f: ref void) i32 = trust { ... } = "fputc"

c_putchar

otherwiseprivate
extern (C, header) fn c_putchar(c: i32) i32 = trust { ... } = "putchar"

c_fgets

otherwiseprivate
extern (C, header) fn c_fgets(buf: ref u8, n: i32, f: ref void) ref u8 = trust { ... } = "fgets"

c_fputs

otherwiseprivate
extern (C, header) fn c_fputs(s: ref u8, f: ref void) i32 = trust { ... } = "fputs"

c_fdopen

otherwiseprivate
extern (C, header) fn c_fdopen(fd: i32, mode: ref u8) ref void = trust { ... } = "fdopen"

c_fileno

otherwiseprivate
extern (C, header) fn c_fileno(f: ref void) i32 = trust { ... } = "fileno"

c_feof

otherwiseprivate
extern (C, header) fn c_feof(f: ref void) i32 = trust { ... } = "feof"

c_ferror

otherwiseprivate
extern (C, header) fn c_ferror(f: ref void) i32 = trust { ... } = "ferror"

c_getenv

otherwiseprivate
extern (C, header) fn c_getenv(name: ref u8) ref u8 = trust { ... } = "getenv"

c_getcwd

otherwiseprivate
extern (C, header) fn c_getcwd(buf: ref u8, size: usize) ref u8 = trust { ... } = "getcwd"

c_chdir

otherwiseprivate
extern (C, header) fn c_chdir(path: ref u8) i32 = trust { ... } = "chdir"

c_access

otherwiseprivate
extern (C, header) fn c_access(path: ref u8, mode: i32) i32 = trust { ... } = "access"

c_mkdir

otherwiseprivate
extern (C, header) fn c_mkdir(path: ref u8, mode: u32) i32 = trust { ... } = "mkdir"

c_rmdir

otherwiseprivate
extern (C, header) fn c_rmdir(path: ref u8) i32 = trust { ... } = "rmdir"

c_remove

otherwiseprivate
extern (C, header) fn c_remove(path: ref u8) i32 = trust { ... } = "remove"

c_rename

otherwiseprivate
extern (C, header) fn c_rename(old: ref u8, new: ref u8) i32 = trust { ... } = "rename"

c_unlink

otherwiseprivate
extern (C, header) fn c_unlink(path: ref u8) i32 = trust { ... } = "unlink"

c_realpath

otherwiseprivate
extern (C, header) fn c_realpath(path: ref u8, out: ref u8) ref u8 = trust { ... } = "realpath"

c_readlink

otherwiseprivate
extern (C, header) fn c_readlink(path: ref u8, buf: ref u8, n: usize) i64 = trust { ... } = "readlink"

c_isatty

otherwiseprivate
extern (C, header) fn c_isatty(fd: i32) i32 = trust { ... } = "isatty"

c_stat

otherwiseprivate
extern (C, header) fn c_stat(path: ref u8, buf: ref void) i32 = trust { ... } = "stat"

c_uname

otherwiseprivate
extern (C, header) fn c_uname(buf: ref void) i32 = trust { ... } = "uname"

c_opendir

otherwiseprivate
extern (C, header) fn c_opendir(path: ref u8) ref void = trust { ... } = "opendir"

c_closedir

otherwiseprivate
extern (C, header) fn c_closedir(dir: ref void) i32 = trust { ... } = "closedir"

c_readdir

otherwiseprivate
extern (C, header) fn c_readdir(dir: ref void) ref void = trust { ... } = "readdir"

c_mkdir_win

otherwise, when windowsprivate
extern (C, header) fn c_mkdir_win(path: ref u8) i32 = trust { ... } = "_mkdir"

c_rmdir_win

otherwise, when windowsprivate
extern (C, header) fn c_rmdir_win(path: ref u8) i32 = trust { ... } = "_rmdir"

c_access_win

otherwise, when windowsprivate
extern (C, header) fn c_access_win(path: ref u8, mode: i32) i32 = trust { ... } = "_access"

c_getcwd_win

otherwise, when windowsprivate
extern (C, header) fn c_getcwd_win(buf: ref u8, size: usize) ref u8 = trust { ... } = "_getcwd"

c_chdir_win

otherwise, when windowsprivate
extern (C, header) fn c_chdir_win(path: ref u8) i32 = trust { ... } = "_chdir"

c_unlink_win

otherwise, when windowsprivate
extern (C, header) fn c_unlink_win(path: ref u8) i32 = trust { ... } = "_unlink"

c_isatty_win

otherwise, when windowsprivate
extern (C, header) fn c_isatty_win(fd: i32) i32 = trust { ... } = "_isatty"

c_fileno_win

otherwise, when windowsprivate
extern (C, header) fn c_fileno_win(f: ref void) i32 = trust { ... } = "_fileno"

c_fdopen_win

otherwise, when windowsprivate
extern (C, header) fn c_fdopen_win(fd: i32, mode: ref u8) ref void = trust { ... } = "_fdopen"

c_strdup_win

otherwise, when windowsprivate
extern (C, header) fn c_strdup_win(s: ref u8) ref u8 = trust { ... } = "_strdup"

c_popen_win

otherwise, when windowsprivate
extern (C, header) fn c_popen_win(cmd: ref u8, mode: ref u8) ref void = trust { ... } = "_popen"

c_pclose_win

otherwise, when windowsprivate
extern (C, header) fn c_pclose_win(pipe: ref void) i32 = trust { ... } = "_pclose"

c_exit

otherwiseprivate
extern (C, header) fn c_exit(code: i32) void = trust { ... } = "exit"

c_system

otherwiseprivate
extern (C, header) fn c_system(cmd: ref u8) i32 = trust { ... } = "system"

c_popen

otherwiseprivate
extern (C, header) fn c_popen(cmd: ref u8, mode: ref u8) ref void = trust { ... } = "popen"

c_pclose

otherwiseprivate
extern (C, header) fn c_pclose(pipe: ref void) i32 = trust { ... } = "pclose"

c_gettimeofday

otherwiseprivate
extern (C, header) fn c_gettimeofday(tv: ref void, tz: ref void) i32 = trust { ... } = "gettimeofday"

c_localtime

otherwiseprivate
extern (C, header) fn c_localtime(t: ref i64) ref void = trust { ... } = "localtime"

c_usleep

otherwiseprivate
extern (C, header) fn c_usleep(usec: u32) i32 = trust { ... } = "usleep"

c_sleep

otherwiseprivate
extern (C, header) fn c_sleep(seconds: u32) i32 = trust { ... } = "sleep"

c_time

otherwiseprivate
extern (C, header) fn c_time(out: ref i64) i64 = trust { ... } = "time"

c_getrandom

otherwiseprivate
extern (C, header) fn c_getrandom(buf: ref void, n: usize, flags: u32) i64 = trust { ... } = "getrandom"

c_arc4random_buf

otherwiseprivate
extern (C, header) fn c_arc4random_buf(buf: ref void, n: usize) void = trust { ... } = "arc4random_buf"

c_pthread_create

otherwiseprivate
extern (C, header) fn c_pthread_create(thread: ref void, attr: ref void, entry: usize, arg: ref void) i32 = trust { ... } = "pthread_create"

c_pthread_join

otherwiseprivate
extern (C, header) fn c_pthread_join(thread: ref void, retval: ref void) i32 = trust { ... } = "pthread_join"

c_pthread_detach

otherwiseprivate
extern (C, header) fn c_pthread_detach(thread: ref void) i32 = trust { ... } = "pthread_detach"

c_pthread_self

otherwiseprivate
extern (C, header) fn c_pthread_self() ref void = trust { ... } = "pthread_self"

c_sched_yield

otherwiseprivate
extern (C, header) fn c_sched_yield() i32 = trust { ... } = "sched_yield"

c_mutex_init

otherwiseprivate
extern (C, header) fn c_mutex_init(m: ref void, attr: ref void) i32 = trust { ... } = "pthread_mutex_init"

c_mutex_destroy

otherwiseprivate
extern (C, header) fn c_mutex_destroy(m: ref void) i32 = trust { ... } = "pthread_mutex_destroy"

c_mutex_lock

otherwiseprivate
extern (C, header) fn c_mutex_lock(m: ref void) i32 = trust { ... } = "pthread_mutex_lock"

c_mutex_unlock

otherwiseprivate
extern (C, header) fn c_mutex_unlock(m: ref void) i32 = trust { ... } = "pthread_mutex_unlock"

c_socket

otherwiseprivate
extern (C, header) fn c_socket(domain: i32, kind: i32, protocol: i32) i32 = trust { ... } = "socket"

c_bind

otherwiseprivate
extern (C, header) fn c_bind(fd: i32, addr: ref void, len: u32) i32 = trust { ... } = "bind"

c_listen

otherwiseprivate
extern (C, header) fn c_listen(fd: i32, backlog: i32) i32 = trust { ... } = "listen"

c_accept

otherwiseprivate
extern (C, header) fn c_accept(fd: i32, addr: ref void, len: ref u32) i32 = trust { ... } = "accept"

c_connect

otherwiseprivate
extern (C, header) fn c_connect(fd: i32, addr: ref void, len: u32) i32 = trust { ... } = "connect"

c_send

otherwiseprivate
extern (C, header) fn c_send(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... } = "send"

c_recv

otherwiseprivate
extern (C, header) fn c_recv(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... } = "recv"

c_sendto

otherwiseprivate
extern (C, header) fn c_sendto(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: u32) i32 = trust { ... } = "sendto"

c_recvfrom

otherwiseprivate
extern (C, header) fn c_recvfrom(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: ref u32) i32 = trust { ... } = "recvfrom"

c_setsockopt

otherwiseprivate
extern (C, header) fn c_setsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: u32) i32 = trust { ... } = "setsockopt"

c_getsockopt

otherwiseprivate
extern (C, header) fn c_getsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: ref u32) i32 = trust { ... } = "getsockopt"

c_poll

otherwiseprivate
extern (C, header) fn c_poll(fds: ref void, n: u64, timeout: i32) i32 = trust { ... } = "poll"

c_htons

otherwiseprivate
extern (C, header) fn c_htons(v: u16) u16 = trust { ... } = "htons"

c_ntohs

otherwiseprivate
extern (C, header) fn c_ntohs(v: u16) u16 = trust { ... } = "ntohs"

c_close

otherwiseprivate
extern (C, header) fn c_close(fd: i32) i32 = trust { ... } = "close"

c_closesocket

otherwiseprivate
extern (C, header) fn c_closesocket(fd: i32) i32 = trust { ... } = "closesocket"

c_signal

otherwiseprivate
extern (C, header) fn c_signal(sig: i32, handler: fn(i32) void) fn(i32) void = trust { ... } = "signal"

c_raise

otherwiseprivate
extern (C, header) fn c_raise(sig: i32) i32 = trust { ... } = "raise"

alloc

pub fn alloc(size: usize) ref void = trust { ... }

calloc

pub fn calloc(count: usize, size: usize) ref void = trust { ... }

realloc

pub fn realloc(ptr: ref void, size: usize) ref void = trust { ... }

free

pub fn free(ptr: ref void) void = trust { ... }

memcpy

pub fn memcpy(dst: ref void, src: ref void, n: usize) ref void = trust { ... }

memmove

pub fn memmove(dst: ref void, src: ref void, n: usize) ref void = trust { ... }

memset

pub fn memset(dst: ref void, value: i32, n: usize) ref void = trust { ... }

memcmp

pub fn memcmp(a: ref void, b: ref void, n: usize) i32 = trust { ... }

strlen

pub fn strlen(s: ref u8) i64 = trust { ... }

strcmp

pub fn strcmp(a: ref u8, b: ref u8) i32 = trust { ... }

strncmp

pub fn strncmp(a: ref u8, b: ref u8, n: usize) i32 = trust { ... }

strcpy

pub fn strcpy(dst: ref u8, src: ref u8) ref u8 = trust { ... }

strcat

pub fn strcat(dst: ref u8, src: ref u8) ref u8 = trust { ... }

strchr

pub fn strchr(s: ref u8, c: i32) ref u8 = trust { ... }

strrchr

pub fn strrchr(s: ref u8, c: i32) ref u8 = trust { ... }

strstr

pub fn strstr(haystack: ref u8, needle: ref u8) ref u8 = trust { ... }

strdup

pub fn strdup(s: ref u8) ref u8 = trust { ... }

strtok_r

pub fn strtok_r(s: ref u8, delim: ref u8, save: ref ref u8) ref u8 = trust { ... }

atoi

pub fn atoi(s: ref u8) i32 = trust { ... }

isdigit

pub fn isdigit(c: i32) i32 = trust { ... }

strtol

pub fn strtol(s: ref u8, end: ref ref u8, base: i32) i64 = trust { ... }

fopen

pub fn fopen(path: ref u8, mode: ref u8) ref void = trust { ... }

fclose

pub fn fclose(f: ref void) i32 = trust { ... }

fread

pub fn fread(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... }

fwrite

pub fn fwrite(ptr: ref void, size: usize, count: usize, f: ref void) usize = trust { ... }

fseek

pub fn fseek(f: ref void, offset: i64, whence: i32) i32 = trust { ... }

ftell

pub fn ftell(f: ref void) i64 = trust { ... }

rewind

pub fn rewind(f: ref void) void = trust { ... }

fflush

pub fn fflush(f: ref void) i32 = trust { ... }

fgetc

pub fn fgetc(f: ref void) i32 = trust { ... }

getchar

pub fn getchar() i32 = trust { ... }

fputc

pub fn fputc(c: i32, f: ref void) i32 = trust { ... }

putchar

pub fn putchar(c: i32) i32 = trust { ... }

fgets

pub fn fgets(buf: ref u8, n: i32, f: ref void) ref u8 = trust { ... }

fputs

pub fn fputs(s: ref u8, f: ref void) i32 = trust { ... }

fdopen

pub fn fdopen(fd: i32, mode: ref u8) ref void = trust { ... }

fileno

pub fn fileno(f: ref void) i32 = trust { ... }

feof

pub fn feof(f: ref void) i32 = trust { ... }

ferror

pub fn ferror(f: ref void) i32 = trust { ... }

stdin

pub fn stdin() ref void = trust { ... }

stdout

pub fn stdout() ref void = trust { ... }

stderr

pub fn stderr() ref void = trust { ... }

getenv

pub fn getenv(name: ref u8) ref u8 = trust { ... }

getcwd

pub fn getcwd(buf: ref u8, size: usize) ref u8 = trust { ... }

chdir

pub fn chdir(path: ref u8) i32 = trust { ... }

access

pub fn access(path: ref u8, mode: i32) i32 = trust { ... }

mkdir

pub fn mkdir(path: ref u8, mode: u32) i32 = trust { ... }

rmdir

pub fn rmdir(path: ref u8) i32 = trust { ... }

remove

pub fn remove(path: ref u8) i32 = trust { ... }

rename

pub fn rename(old: ref u8, new: ref u8) i32 = trust { ... }

unlink

pub fn unlink(path: ref u8) i32 = trust { ... }

realpath

pub fn realpath(path: ref u8, out: ref u8) ref u8 = trust { ... }

readlink

pub fn readlink(path: ref u8, buf: ref u8, n: usize) i64 = trust { ... }

isatty

pub fn isatty(fd: i32) i32 = trust { ... }

stat

pub fn stat(path: ref u8, buf: ref void) i32 = trust { ... }

uname

pub fn uname(buf: ref void) i32 = trust { ... }

opendir

pub fn opendir(path: ref u8) ref void = trust { ... }

closedir

pub fn closedir(dir: ref void) i32 = trust { ... }

readdir

pub fn readdir(dir: ref void) ref void = trust { ... }

exit

pub fn exit(code: i32) void = trust { ... }

system

pub fn system(cmd: ref u8) i32 = trust { ... }

popen

pub fn popen(cmd: ref u8, mode: ref u8) ref void = trust { ... }

pclose

pub fn pclose(pipe: ref void) i32 = trust { ... }

gettimeofday

pub fn gettimeofday(tv: ref void, tz: ref void) i32 = trust { ... }

localtime

pub fn localtime(t: ref i64) ref void = trust { ... }

usleep

pub fn usleep(usec: u32) i32 = trust { ... }

sleep

pub fn sleep(seconds: u32) i32 = trust { ... }

time

pub fn time(out: ref i64) i64 = trust { ... }

getrandom

pub fn getrandom(buf: ref void, n: usize, flags: u32) i64 = trust { ... }

arc4random_buf

pub fn arc4random_buf(buf: ref void, n: usize) void = trust { ... }

pthread_create

pub fn pthread_create(thread: ref void, attr: ref void, entry: usize, arg: ref void) i32 = trust { ... }

pthread_join

pub fn pthread_join(thread: ref void, retval: ref void) i32 = trust { ... }

pthread_detach

pub fn pthread_detach(thread: ref void) i32 = trust { ... }

pthread_self

pub fn pthread_self() ref void = trust { ... }

sched_yield

pub fn sched_yield() i32 = trust { ... }

mutex_init

pub fn mutex_init(m: ref void) i32 = trust { ... }

mutex_destroy

pub fn mutex_destroy(m: ref void) i32 = trust { ... }

mutex_lock

pub fn mutex_lock(m: ref void) i32 = trust { ... }

mutex_unlock

pub fn mutex_unlock(m: ref void) i32 = trust { ... }

socket

pub fn socket(domain: i32, kind: i32, protocol: i32) i32 = trust { ... }

bind

pub fn bind(fd: i32, addr: ref void, len: u32) i32 = trust { ... }

listen

pub fn listen(fd: i32, backlog: i32) i32 = trust { ... }

accept

pub fn accept(fd: i32, addr: ref void, len: ref u32) i32 = trust { ... }

connect

pub fn connect(fd: i32, addr: ref void, len: u32) i32 = trust { ... }

send

pub fn send(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... }

recv

pub fn recv(fd: i32, buf: ref void, n: usize, flags: i32) i64 = trust { ... }

sendto

pub fn sendto(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: u32) i32 = trust { ... }

recvfrom

pub fn recvfrom(fd: i32, buf: ref void, n: usize, flags: i32, addr: ref void, len: ref u32) i32 = trust { ... }

setsockopt

pub fn setsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: u32) i32 = trust { ... }

getsockopt

pub fn getsockopt(fd: i32, level: i32, opt: i32, value: ref void, len: ref u32) i32 = trust { ... }

poll

pub fn poll(fds: ref void, n: u64, timeout: i32) i32 = trust { ... }

htons

pub fn htons(v: u16) u16 = trust { ... }

ntohs

pub fn ntohs(v: u16) u16 = trust { ... }

closesocket

pub fn closesocket(fd: i32) i32 = trust { ... }

signal

pub fn signal(sig: i32, handler: fn(i32) void) fn(i32) void = trust { ... }

raise

pub fn raise(sig: i32) i32 = trust { ... }