Skip to content

std/sys

Type Aliases

type Handle: uintptr

WARNING

Available on: windows


type Errno: int

Type of error numbers.

Globals

const InvalidHandle: Handle

WARNING

Available on: windows


const STD_INPUT_HANDLE

WARNING

Available on: windows


const STD_OUTPUT_HANDLE

WARNING

Available on: windows


const STD_ERROR_HANDLE

WARNING

Available on: windows


static STDIN: uintptr


static STDOUT: uintptr


static STDERR: uintptr


const E2BIG: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EACCES: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EADDRINUSE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EADDRNOTAVAIL: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EAFNOSUPPORT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EAGAIN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EALREADY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EAUTH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EBADARCH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EBADEXEC: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EBADF: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EBADMACHO: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EBADMSG: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EBADRPC: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EBUSY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ECANCELED: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ECHILD: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ECONNABORTED: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ECONNREFUSED: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ECONNRESET: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EDEADLK: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EDESTADDRREQ: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EDEVERR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EDQUOT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const EEXIST: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EFAULT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EFBIG: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EFTYPE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EHOSTDOWN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const EHOSTUNREACH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EIDRM: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EILSEQ: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EINPROGRESS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EINTR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EINVAL: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EIO: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EISCONN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EISDIR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ELAST: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ELOOP: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EMFILE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EMSGSIZE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EMULTIHOP: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ENAMETOOLONG: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENEEDAUTH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ENETDOWN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENETRESET: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENETUNREACH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENFILE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOATTR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ENOBUFS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENODATA: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENODEV: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOENT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOEXEC: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOLCK: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOMEM: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOMSG: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOPOLICY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ENOPROTOOPT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOSPC: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOSR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOSTR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOSYS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTBLK: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ENOTCONN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTDIR: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTEMPTY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTRECOVERABLE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTSOCK: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTSUP: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENOTTY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ENXIO: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EOPNOTSUPP: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EOVERFLOW: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EOWNERDEAD: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPERM: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPFNOSUPPORT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const EPIPE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPROCLIM: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EPROCUNAVAIL: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EPROGMISMATCH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EPROGUNAVAIL: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const EPROTO: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPROTONOSUPPORT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPROTOTYPE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EPWROFF: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ERANGE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EREMOTE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const EROFS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ERPCMISMATCH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ESHLIBVERS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64


const ESHUTDOWN: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ESOCKTNOSUPPORT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ESPIPE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ESRCH: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ESTALE: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ETIME: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ETIMEDOUT: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const ETOOMANYREFS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ETXTBSY: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EUSERS: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const EWOULDBLOCK: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EXDEV: Errno

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EDEADLOCK: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386 windows


const EQFULL: Errno

WARNING

Available on: darwin_arm64


const EADV: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBADE: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBADFD: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBADR: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBADRQC: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBADSLT: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EBFONT: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ECHRNG: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ECOMM: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EISNAM: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EKEYEXPIRED: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EKEYREJECTED: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EKEYREVOKED: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EL2HLT: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EL2NSYNC: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EL3HLT: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EL3RST: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELIBACC: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELIBBAD: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELIBEXEC: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELIBMAX: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELIBSCN: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ELNRNG: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EMEDIUMTYPE: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENAVAIL: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOANO: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOCSI: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOKEY: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOMEDIUM: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENONET: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOPKG: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOTNAM: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ENOTUNIQ: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EREMCHG: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EREMOTEIO: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ERESTART: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ERFKILL: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ESRMNT: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const ESTRPIPE: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EUCLEAN: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EUNATCH: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EXFULL: Errno

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const EHWPOISON: Errno

WARNING

Available on: linux_arm linux_arm64


const O_ACCMODE

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_ALERT

WARNING

Available on: darwin_amd64 darwin_arm64


const O_APPEND

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_ASYNC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_CLOEXEC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_CREAT

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_DIRECTORY

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_DSYNC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_EVTONLY

WARNING

Available on: darwin_amd64 darwin_arm64


const O_EXCL

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_EXLOCK

WARNING

Available on: darwin_amd64 darwin_arm64


const O_FSYNC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_NDELAY

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_NOCTTY

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_NOFOLLOW

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_NONBLOCK

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const O_POPUP

WARNING

Available on: darwin_amd64 darwin_arm64


const O_RDONLY

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_RDWR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_SHLOCK

WARNING

Available on: darwin_amd64 darwin_arm64


WARNING

Available on: darwin_amd64 darwin_arm64


const O_SYNC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_TRUNC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_WRONLY

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const O_DP_GETRAWENCRYPTED

WARNING

Available on: darwin_arm64


const O_DIRECT

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const O_LARGEFILE

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const O_RSYNC

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const O_PATH

WARNING

Available on: linux_arm64


const O_TMPFILE

WARNING

Available on: linux_arm64


const O_NOATIME

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const S_BLKSIZE

WARNING

Available on: linux_amd64 linux_arm linux_arm64 linux_i386


const S_IEXEC

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IFBLK

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFCHR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFDIR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFIFO

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFLNK

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFMT

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFREG

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IFSOCK

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IREAD

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IRGRP

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IROTH

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IRUSR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IRWXG

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IRWXO

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IRWXU

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_ISGID

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_ISUID

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_ISVTX

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IWGRP

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IWOTH

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IWRITE

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IWUSR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_IXGRP

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IXOTH

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const S_IXUSR

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386 windows


const S_ISTXT

WARNING

Available on: darwin_amd64 darwin_arm64


const S_IFWHT

WARNING

Available on: darwin_amd64 darwin_arm64


const PATH_MAX

WARNING

Available on: darwin_amd64 darwin_arm64 linux_amd64 linux_arm linux_arm64 linux_i386


const ERROR_ACCESS_DENIED

WARNING

Available on: windows


const ERROR_ALREADY_EXISTS

WARNING

Available on: windows


const ERROR_BROKEN_PIPE

WARNING

Available on: windows


const ERROR_BUFFER_OVERFLOW

WARNING

Available on: windows


const ERROR_DIR_NOT_EMPTY

WARNING

Available on: windows


const ERROR_ENVVAR_NOT_FOUND

WARNING

Available on: windows


const ERROR_FILE_EXISTS

WARNING

Available on: windows


const ERROR_FILE_NOT_FOUND

WARNING

Available on: windows


const ERROR_HANDLE_EOF

WARNING

Available on: windows


const ERROR_INSUFFICIENT_BUFFER

WARNING

Available on: windows


const ERROR_INVALID_NAME

WARNING

Available on: windows


const ERROR_IO_PENDING

WARNING

Available on: windows


const ERROR_MOD_NOT_FOUND

WARNING

Available on: windows


const ERROR_MORE_DATA

WARNING

Available on: windows


const ERROR_NETNAME_DELETED

WARNING

Available on: windows


const ERROR_NOT_FOUND

WARNING

Available on: windows


const ERROR_NOT_READY

WARNING

Available on: windows


const ERROR_NO_MORE_FILES

WARNING

Available on: windows


const ERROR_OPERATION_ABORTED

WARNING

Available on: windows


const ERROR_PATH_NOT_FOUND

WARNING

Available on: windows


const ERROR_PRIVILEGE_NOT_HELD

WARNING

Available on: windows


const ERROR_PROC_NOT_FOUND

WARNING

Available on: windows


const ERROR_CURRENT_DIRECTORY

WARNING

Available on: windows


const ERROR_LOCK_VIOLATION

WARNING

Available on: windows


const ERROR_WRITE_PROTECT

WARNING

Available on: windows


const ERROR_DISK_FULL

WARNING

Available on: windows


const ERROR_NOT_SUPPORTED

WARNING

Available on: windows


const ERROR_FILENAME_EXCED_RANGE

WARNING

Available on: windows


const ERROR_INVALID_PARAMETER

WARNING

Available on: windows


const ERROR_ALREADY_EXIST

WARNING

Available on: windows


const WSAEACCES

WARNING

Available on: windows


const WSAECONNABORTED

WARNING

Available on: windows


const WSAECONNRESET

WARNING

Available on: windows


const WSAEWOULDBLOCK

WARNING

Available on: windows


const MAX_PATH

WARNING

Available on: windows


const MAX_LONG_PATH

WARNING

Available on: windows


const SOCK_STREAM

WARNING

Available on: windows, linux, darwin


const SOCK_DGRAM

WARNING

Available on: windows, linux, darwin


const SOCK_RAW

WARNING

Available on: windows, linux, darwin


const SOCK_RDM

WARNING

Available on: windows, linux, darwin


const SOCK_SEQPACKET

WARNING

Available on: windows, linux, darwin


const AF_UNSPEC

WARNING

Available on: windows, linux, darwin


const AF_UNIX

WARNING

Available on: windows, linux, darwin


const AF_INET

WARNING

Available on: windows, linux, darwin


const AF_INET6

WARNING

Available on: windows, linux, darwin


const IPPROTO_IP

WARNING

Available on: windows, linux, darwin


const IPPROTO_TCP

WARNING

Available on: windows, linux, darwin


const IPPROTO_UDP

WARNING

Available on: windows, linux, darwin


const INADDR_ANY

WARNING

Available on: windows, linux, darwin


const SOL_SOCKET

WARNING

Available on: windows, linux, darwin


const SO_ERROR

WARNING

Available on: windows, linux, darwin


const SO_RCVTIMEO

WARNING

Available on: windows, linux, darwin


const SO_SNDTIMEO

WARNING

Available on: windows, linux, darwin


const INVALID_SOCKET

WARNING

Available on: windows, unix


const SOCKET_ERROR

WARNING

Available on: windows


const F_GETFL

WARNING

Available on: unix


const F_SETFL

WARNING

Available on: unix

Functions

jule
fn NewTimeval(sec: i64, usec: i64, mut &out: Timeval): bool

Creates new Timeval by sec and usec. Sets fields of the out. Reports whether sec and usec have valid range. If sec or usec have invalid range, out will not be mutated.


jule
fn GetStdHandle(stdh: uintptr): Handle

WARNING

Available on: windows


jule
unsafe fn CloseHandle(stdh: Handle): bool

WARNING

Available on: windows


jule
fn GetLastErrno(): Errno

Returns number of last error.


jule
fn WSAGetLastError(): Errno

Calls Windows's WSAGetLastError function.

WARNING

Available on: windows


jule
fn fcntl(handle: int, cmd: int, arg: int): int

Calls C's fcntl function.

WARNING

Available on: windows


jule
unsafe fn Stat(path: *byte, mut stat: *Stat): int

Calls C's stat function.

WARNING

Available on: unix


jule
unsafe fn Wstat(path: *u16, mut stat: *Stat): int

Calls C's _wstat function.

WARNING

Available on: windows


jule
unsafe fn Open(path: *byte, flag: int, mode: int): int

Wrapper for C's open function.

WARNING

Available on: unix


jule
unsafe fn Wopen(path: *u16, flag: int, mode: int): int

Wrapper for C's _wopen function.

WARNING

Available on: windows


jule
fn Seek(handle: int, offset: int, origin: int): int

Wrapper for C's lseek function.


jule
unsafe fn Read(handle: int, mut buf: *unsafe, n: uint): int

Wrapper for C's read function.


jule
fn Close(handle: int): int

Wrapper for C's close function.


jule
unsafe fn Write(handle: int, buf: *unsafe, n: uint): int

Wrapper for C's write function.


jule
fn GetLastError(): u32

WARNING

Available on: windows


jule
fn GetConsoleMode(handle: Handle, mut &mode: int): bool

Calls Windows's GetConsoleMode function.

WARNING

Available on: windows


jule
fn SetConsoleMode(handle: Handle, mode: int): bool

Calls Windows's SetConsoleMode function.

WARNING

Available on: windows


jule
unsafe fn WriteConsole(handle: Handle, buffer: *u16, to_write: u32, mut &written: u32, reserved: *unsafe): bool

Calls Windows's WriteConsoleW function.

WARNING

Available on: windows


jule
unsafe fn ReadConsole(handle: Handle, mut buffer: *u16, toRead: u32, mut &readed: u32): bool

Calls Windows's ReadConsoleW function.
Passes nil pointer for input control.

WARNING

Available on: windows


jule
unsafe fn GetCurrentDirectory(bufflen: u32, mut buf: *u16): u32

Reads working directory into buf and returns readed rune count of current process. Returns 0 if fail.

WARNING

Available on: windows


jule
unsafe fn SetCurrentDirectory(path: *u16): bool

Sets working directory to path. Reports operation is success.

WARNING

Available on: windows


jule
unsafe fn Getcwd(buf: *byte, bufflen: uint): *byte

Reads current working directory into buf. Returns pointer to buf if success, nil pointer if error occurs.

WARNING

Available on: unix


jule
unsafe fn Opendir(path: *byte): *Dir

Calls C's opendir function.

WARNING

Available on: unix


jule
unsafe fn Readdir(mut dir: *Dir): *Dirent

Calls C's readdir function.

WARNING

Available on: unix


jule
unsafe fn Remove(path: *byte): int

Wrapper for C's remove function.

WARNING

Available on: unix


jule
unsafe fn Closedir(mut dir: *Dir): int

Calls C's closedir function.

WARNING

Available on: unix


jule
fn Exit(code: int)

Wrapper for C's exit.


jule
unsafe fn Chdir(path: *byte): int

Calls C's chdir function.

WARNING

Available on: unix


jule
unsafe fn Mkdir(path: *byte, mode: int): int

Wrapper for C's mkdir function.

WARNING

Available on: unix


jule
unsafe fn Rmdir(path: *byte): int

Wrapper for C's rmdir function.

WARNING

Available on: unix


jule
unsafe fn Unlink(path: *byte): int

Wrapper for C's unlink function.

WARNING

Available on: unix


jule
unsafe fn DeleteFile(path: *u16): bool

Delete file.

WARNING

Available on: windows


jule
unsafe fn CreateDirectory(path: *u16): bool

Creates directory.

WARNING

Available on: windows


jule
unsafe fn RemoveDirectory(path: *u16): bool

Remove empty directory.

WARNING

Available on: windows


jule
unsafe fn GetFullPathName(path: *u16, bufflen: u32, buf: *u16, fname: **u16): u32

Calls Windows's GetFullPathNameW function.

WARNING

Available on: windows


jule
fn Socket(domain: int, t: int, protocol: int): uint

Calls Windows's socket function.

WARNING

Available on: windows


jule
fn Socket(domain: int, t: int, protocol: int): int

Calls C's socket function.

WARNING

Available on: unix


jule
unsafe fn Bind(handle: uint, addr: *Sockaddr, len: uint): int

Calls Windows's bind function.

WARNING

Available on: windows


jule
unsafe fn Bind(handle: int, addr: *Sockaddr, len: uint): int

Calls C's bind function.

WARNING

Available on: unix


jule
unsafe fn Connect(handle: uint, addr: *Sockaddr, len: uint): int

Calls Windows's connect function.

WARNING

Available on: windows


jule
unsafe fn Connect(handle: int, addr: *Sockaddr, len: uint): int

Calls C's connect function.

WARNING

Available on: unix


jule
fn Listen(handle: uint, backlog: int): int

Calls Windows's listen function.

WARNING

Available on: windows


jule
fn Listen(handle: int, backlog: int): int

Calls C's listen function.

WARNING

Available on: unix


jule
unsafe fn Accept(handle: uint, addr: *Sockaddr, len: *integ::Int): uint

Calls Windows's accept function.

WARNING

Available on: windows


jule
unsafe fn Accept(handle: int, addr: *Sockaddr, len: *u32): int

Calls C's accept function.

WARNING

Available on: unix


jule
unsafe fn Recv(handle: uint, mut buf: *byte, len: uint, flags: int): int

Calls Windows's recv function.

WARNING

Available on: windows


jule
unsafe fn Recv(handle: int, mut buf: *unsafe, len: uint, flags: int): int

Calls C's recv function.

WARNING

Available on: unix


jule
unsafe fn Recvfrom(handle: uint, mut buf: *byte, len: int, flags: int, from: *Sockaddr, fromLen: *integ::Int): int

Calls Windows's recvfrom function.

WARNING

Available on: windows


jule
unsafe fn Recvfrom(handle: int, mut buf: *unsafe, len: uint, flags: int, srcAddr: *Sockaddr, addrLen: *u32): int

Calls C's recvfrom function.

WARNING

Available on: unix


jule
unsafe fn Send(handle: uint, mut buf: *byte, len: uint, flags: int): int

Calls Windows's send function.

WARNING

Available on: windows


jule
unsafe fn Send(handle: int, mut buf: *unsafe, len: uint, flags: int): int

Calls C's send function.

WARNING

Available on: unix


jule
unsafe fn Sendto(handle: uint, mut buf: *byte, len: int, flags: int, to: *Sockaddr, toLen: Int): int

Calls Windows's sendto function.

WARNING

Available on: windows


jule
unsafe fn Sendto(handle: int, mut buf: *unsafe, len: uint, flags: int, srcAddr: *Sockaddr, addrLen: u32): int

Calls C's sendto function.

WARNING

Available on: unix


jule
fn CloseSocket(handle: uint): int

Calls Windows's closesocket function.

WARNING

Available on: windows


jule
unsafe fn WSAStartup(verReq: u16, mut data: *WsaData): int

Calls Windows's WSAStartup function.

WARNING

Available on: windows


jule
fn MakeWord(a: int, b: int): u16

Calls Windows's MAKEWORD macro.

WARNING

Available on: windows


jule
fn Htons(x: int): u16

Calls C's htons macro.


jule
fn Ntohs(x: int): u16

Calls C's ntohs macro.


jule
unsafe fn Select(nfds: int, mut read: *Fd, mut write: *Fd, mut err: *Fd, mut timeout: *Timeval): int

C's select function.


jule
unsafe fn FdZero(mut fd: *Fd)

C's FD_ZERO macro.

WARNING

Available on: windows, unix


jule
unsafe fn FdSet(handle: uint, mut fd: *Fd)

C's FD_SET macro.

WARNING

Available on: windows


jule
unsafe fn FdSet(handle: int, mut fd: *Fd)

C's FD_SET macro.

WARNING

Available on: unix


jule
unsafe fn FdIsset(handle: uint, mut fd: *Fd): int

C's FD_ISSET macro.

WARNING

Available on: windows


jule
unsafe fn Ioctlsocket(handle: uint, cmd: Long, arg: *integ::UnsignedLong): int

C's ioctlsocket function.

WARNING

Available on: windows


jule
unsafe fn Getsockopt(handle: uint, level: int, option: int, buf: *integ::Char, len: *integ::Int): int

C's getsockopt function.

WARNING

Available on: windows


jule
unsafe fn Getsockopt(handle: int, level: int, option: int, buf: *unsafe, len: *integ::UnsignedInt): int

C's getsockopt function.

WARNING

Available on: unix


jule
unsafe fn Setsockopt(handle: uint, level: int, option: int, buf: *integ::Char, len: int): int

C's setsockopt function.

WARNING

Available on: windows


jule
unsafe fn Setsockopt(handle: int, level: int, option: int, buf: *integ::Char, len: int): int

C's setsockopt function.

WARNING

Available on: unix


jule
unsafe fn Getsockname(handle: uint, addr: *Sockaddr, len: *integ::Int): int

C's getsockname function.

WARNING

Available on: windows


jule
unsafe fn Getsockname(handle: int, addr: *Sockaddr, len: *u32): int

C's getsockname function.

WARNING

Available on: unix


jule
unsafe fn FindFirstFile(path: *u16, mut data: *Win32FindData): Handle

Call's Windows FindFirstFileW function.

WARNING

Available on: windows


jule
unsafe fn FindNextFile(h: Handle, mut data: *Win32FindData): int

Call's Windows FindNextFileW function.

WARNING

Available on: windows


jule
fn FindClose(h: Handle): int

Call's Windows FindClose function.

WARNING

Available on: windows

Structs

jule
struct SysStat {
    st_mode: uint // _mode_t
    st_size: uint // _off_t
}

C's stat.


jule
struct WsaData

C's WSADATA.

WARNING

Available on: windows


jule
struct Sockaddr

C's sockaddr.


jule
struct SockaddrIn {
    sin_len:    byte
    sin_family: byte
    sin_port:   u16
    sin_addr:   cpp.in_addr
    sin_zero:   [8]Char
}

C's sockaddr_in.


jule
struct SockaddrIn6 {
    sin6_len:    byte
    sin6_family: byte
    sin6_port:   u16
    sin6_addr:   cpp.in6_addr
}

C's sockaddr_in6.


jule
struct Fd

C's fd_set structure.


jule
struct Timeval {
    tv_sec:  <system specific>
    tv_usec: <system specific>
}

C's timeval structure.


jule
struct Dirent {
    d_name: *byte // char*
}

C's dirent.

WARNING

Available on: unix


jule
struct Win32FindData {
    cFileName: *integ::Wchar
}
jule
C's WIN32_FIND_DATAW structure.
::: warning
Available on: unix
:::

---

```jule
struct Dir

C's DIR.

WARNING

Available on: unix