builtin #
Solaris/Illumos bare libc: memory functions, allocator wiring and process exit. Pure V; no libc.
fn bare_print #
fn bare_print(buf &u8, len u64)
bare_print writes len bytes from buf to standard output.
fn memcpy #
@[export: 'memcpy']
@[unsafe]
fn memcpy(dest voidptr, const_src voidptr, n uint) voidptr
memcpy copies n bytes from const_src into dest and returns dest.
fn memset #
@[export: 'memset']
@[unsafe]
fn memset(s voidptr, c int, n uint) voidptr
memset fills n bytes at s with c and returns s.
fn write #
fn write(fd i64, buf &u8, count u64) i64
write writes up to count bytes to fd and returns the number written.
fn VlibcErrno.from #
fn VlibcErrno.from[W](input W) !VlibcErrno
from returns the VlibcErrno value of an integer or of a field name, or an error if there is none.
enum VlibcErrno #
enum VlibcErrno {
enoerror = 0
eperm = 1
enoent = 2
esrch = 3
eintr = 4
eio = 5
enxio = 6
e2big = 7
enoexec = 8
ebadf = 9
echild = 10
edeadlk = 45
enomem = 12
eacces = 13
efault = 14
enotblk = 15
ebusy = 16
eexist = 17
exdev = 18
enodev = 19
enotdir = 20
eisdir = 21
einval = 22
enfile = 23
emfile = 24
enotty = 25
etxtbsy = 26
efbig = 27
enospc = 28
espipe = 29
erofs = 30
emlink = 31
epipe = 32
edom = 33
erange = 34
eagain = 11
einprogress = 150
ealready = 149
enotsock = 95
edestaddrreq = 96
emsgsize = 97
eprototype = 98
enoprotoopt = 99
eprotonosupport = 120
esocktnosupport = 121
eopnotsupp = 122
epfnosupport = 123
eafnosupport = 124
eaddrinuse = 125
eaddrnotavail = 126
enetdown = 127
enetunreach = 128
enetreset = 129
econnaborted = 130
econnreset = 131
enobufs = 132
eisconn = 133
enotconn = 134
eshutdown = 143
etoomanyrefs = 144
etimedout = 145
econnrefused = 146
eloop = 90
enametoolong = 78
ehostdown = 147
ehostunreach = 148
enotempty = 93
eusers = 94
edquot = 49
estale = 151
eremote = 66
enolck = 46
enosys = 89
eidrm = 36
enomsg = 35
eoverflow = 79
ecanceled = 47
eilseq = 88
ebadmsg = 77
emultihop = 74
enolink = 67
eproto = 71
enotrecoverable = 59
eownerdead = 58
}