X7ROOT File Manager
Current Path:
/opt/golang/1.17.2/src/syscall
opt
/
golang
/
1.17.2
/
src
/
syscall
/
📁
..
📄
asm9_unix1_amd64.s
(1.01 KB)
📄
asm9_unix2_amd64.s
(1.23 KB)
📄
asm_aix_ppc64.s
(540 B)
📄
asm_darwin_amd64.s
(2.82 KB)
📄
asm_darwin_arm64.s
(2.71 KB)
📄
asm_freebsd_arm.s
(2.96 KB)
📄
asm_freebsd_arm64.s
(2.68 KB)
📄
asm_linux_386.s
(5.05 KB)
📄
asm_linux_amd64.s
(3.34 KB)
📄
asm_linux_arm.s
(4 KB)
📄
asm_linux_arm64.s
(2.73 KB)
📄
asm_linux_mips64x.s
(2.71 KB)
📄
asm_linux_mipsx.s
(3.66 KB)
📄
asm_linux_ppc64x.s
(2.69 KB)
📄
asm_linux_riscv64.s
(2.88 KB)
📄
asm_linux_s390x.s
(4.19 KB)
📄
asm_netbsd_arm.s
(2.85 KB)
📄
asm_netbsd_arm64.s
(2.77 KB)
📄
asm_openbsd_386.s
(1.04 KB)
📄
asm_openbsd_amd64.s
(1.04 KB)
📄
asm_openbsd_arm.s
(1.04 KB)
📄
asm_openbsd_arm64.s
(1.04 KB)
📄
asm_openbsd_mips64.s
(2.85 KB)
📄
asm_plan9_386.s
(3.14 KB)
📄
asm_plan9_amd64.s
(3.06 KB)
📄
asm_plan9_arm.s
(3.25 KB)
📄
asm_solaris_amd64.s
(1.79 KB)
📄
asm_unix_386.s
(2.76 KB)
📄
asm_unix_amd64.s
(2.11 KB)
📄
bpf_bsd.go
(4.67 KB)
📄
bpf_darwin.go
(3.97 KB)
📄
const_plan9.go
(1.2 KB)
📄
creds_test.go
(3.34 KB)
📄
dir_plan9.go
(5.62 KB)
📄
dirent.go
(3.1 KB)
📄
dirent_test.go
(3.15 KB)
📄
dll_windows.go
(10.19 KB)
📄
endian_big.go
(283 B)
📄
endian_little.go
(365 B)
📄
env_unix.go
(3 KB)
📄
env_windows.go
(1.75 KB)
📄
errors_plan9.go
(1.61 KB)
📄
exec_aix_test.go
(831 B)
📄
exec_bsd.go
(6.98 KB)
📄
exec_libc.go
(7.44 KB)
📄
exec_libc2.go
(7.48 KB)
📄
exec_linux.go
(18.98 KB)
📄
exec_linux_test.go
(19.07 KB)
📄
exec_plan9.go
(13.23 KB)
📄
exec_solaris_test.go
(827 B)
📄
exec_unix.go
(8.93 KB)
📄
exec_unix_test.go
(7.2 KB)
📄
exec_windows.go
(11.09 KB)
📄
exec_windows_test.go
(3.1 KB)
📄
export_darwin_test.go
(314 B)
📄
export_freebsd_test.go
(304 B)
📄
export_linux_test.go
(252 B)
📄
export_unix_test.go
(396 B)
📄
export_windows_test.go
(439 B)
📄
flock.go
(753 B)
📄
flock_aix.go
(564 B)
📄
flock_darwin.go
(405 B)
📄
flock_linux_32bit.go
(565 B)
📄
forkpipe.go
(527 B)
📄
forkpipe2.go
(339 B)
📄
fs_js.go
(10.56 KB)
📄
getdirentries_test.go
(2.11 KB)
📁
js
📄
lsf_linux.go
(2.12 KB)
📄
mkall.sh
(12.79 KB)
📄
mkasm.go
(1.76 KB)
📄
mkerrors.sh
(10.65 KB)
📄
mkpost.go
(1.99 KB)
📄
mksyscall.pl
(9.95 KB)
📄
mksyscall_libc.pl
(7.98 KB)
📄
mksyscall_windows.go
(2 KB)
📄
mksysctl_openbsd.pl
(5.04 KB)
📄
mksysnum_dragonfly.pl
(866 B)
📄
mksysnum_freebsd.pl
(1.35 KB)
📄
mksysnum_linux.pl
(1.26 KB)
📄
mksysnum_netbsd.pl
(1.01 KB)
📄
mksysnum_openbsd.pl
(872 B)
📄
mksysnum_plan9.sh
(459 B)
📄
mmap_unix_test.go
(623 B)
📄
msan.go
(425 B)
📄
msan0.go
(358 B)
📄
net.go
(1.19 KB)
📄
net_js.go
(2.14 KB)
📄
netlink_linux.go
(4.67 KB)
📄
ptrace_darwin.go
(396 B)
📄
ptrace_ios.go
(382 B)
📄
pwd_plan9.go
(1.55 KB)
📄
route_bsd.go
(9.15 KB)
📄
route_darwin.go
(2.01 KB)
📄
route_dragonfly.go
(2.61 KB)
📄
route_freebsd.go
(2.67 KB)
📄
route_freebsd_32bit.go
(1.33 KB)
📄
route_freebsd_64bit.go
(776 B)
📄
route_netbsd.go
(1.43 KB)
📄
route_openbsd.go
(1.46 KB)
📄
security_windows.go
(10.12 KB)
📄
setuidgid_32_linux.go
(469 B)
📄
setuidgid_linux.go
(447 B)
📄
sock_cloexec_linux.go
(632 B)
📄
sockcmsg_dragonfly.go
(547 B)
📄
sockcmsg_linux.go
(1.12 KB)
📄
sockcmsg_unix.go
(2.65 KB)
📄
sockcmsg_unix_other.go
(1.14 KB)
📄
syscall.go
(3.61 KB)
📄
syscall_aix.go
(18.05 KB)
📄
syscall_aix_ppc64.go
(405 B)
📄
syscall_bsd.go
(14.39 KB)
📄
syscall_bsd_test.go
(1.21 KB)
📄
syscall_darwin.go
(11.93 KB)
📄
syscall_darwin_amd64.go
(1.92 KB)
📄
syscall_darwin_arm64.go
(1.84 KB)
📄
syscall_dragonfly.go
(8.29 KB)
📄
syscall_dragonfly_amd64.go
(1.12 KB)
📄
syscall_dup2_linux.go
(409 B)
📄
syscall_dup3_linux.go
(275 B)
📄
syscall_freebsd.go
(15.82 KB)
📄
syscall_freebsd_386.go
(1.17 KB)
📄
syscall_freebsd_amd64.go
(1.12 KB)
📄
syscall_freebsd_arm.go
(1.16 KB)
📄
syscall_freebsd_arm64.go
(1.12 KB)
📄
syscall_freebsd_test.go
(1.37 KB)
📄
syscall_illumos.go
(1.2 KB)
📄
syscall_js.go
(6.64 KB)
📄
syscall_linux.go
(33.3 KB)
📄
syscall_linux_386.go
(10.63 KB)
📄
syscall_linux_amd64.go
(5.34 KB)
📄
syscall_linux_arm.go
(7.32 KB)
📄
syscall_linux_arm64.go
(6.68 KB)
📄
syscall_linux_mips64x.go
(6.54 KB)
📄
syscall_linux_mipsx.go
(6.98 KB)
📄
syscall_linux_ppc64x.go
(5.19 KB)
📄
syscall_linux_riscv64.go
(6.32 KB)
📄
syscall_linux_s390x.go
(8.59 KB)
📄
syscall_linux_test.go
(20.69 KB)
📄
syscall_netbsd.go
(7.59 KB)
📄
syscall_netbsd_386.go
(716 B)
📄
syscall_netbsd_amd64.go
(709 B)
📄
syscall_netbsd_arm.go
(716 B)
📄
syscall_netbsd_arm64.go
(709 B)
📄
syscall_openbsd.go
(6.67 KB)
📄
syscall_openbsd1.go
(634 B)
📄
syscall_openbsd_386.go
(715 B)
📄
syscall_openbsd_amd64.go
(701 B)
📄
syscall_openbsd_arm.go
(715 B)
📄
syscall_openbsd_arm64.go
(906 B)
📄
syscall_openbsd_libc.go
(3.46 KB)
📄
syscall_openbsd_mips64.go
(906 B)
📄
syscall_plan9.go
(8.94 KB)
📄
syscall_plan9_test.go
(1.15 KB)
📄
syscall_ptrace_test.go
(824 B)
📄
syscall_solaris.go
(15.07 KB)
📄
syscall_solaris_amd64.go
(487 B)
📄
syscall_test.go
(1.44 KB)
📄
syscall_unix.go
(8.46 KB)
📄
syscall_unix_test.go
(10.4 KB)
📄
syscall_windows.go
(46.08 KB)
📄
syscall_windows_test.go
(3.39 KB)
📄
tables_js.go
(19.19 KB)
📄
time_fake.go
(696 B)
📄
time_nofake.go
(371 B)
📄
timestruct.go
(1.07 KB)
📄
types_aix.go
(3.37 KB)
📄
types_darwin.go
(5.05 KB)
📄
types_dragonfly.go
(5.06 KB)
📄
types_freebsd.go
(6.98 KB)
📄
types_illumos_amd64.go
(397 B)
📄
types_linux.go
(10.7 KB)
📄
types_netbsd.go
(4.78 KB)
📄
types_openbsd.go
(5.06 KB)
📄
types_solaris.go
(4.9 KB)
📄
types_windows.go
(27.71 KB)
📄
types_windows_386.go
(477 B)
📄
types_windows_amd64.go
(477 B)
📄
types_windows_arm.go
(477 B)
📄
types_windows_arm64.go
(477 B)
📄
zerrors_aix_ppc64.go
(47.16 KB)
📄
zerrors_darwin_amd64.go
(55.3 KB)
📄
zerrors_darwin_arm64.go
(55.81 KB)
📄
zerrors_dragonfly_amd64.go
(59.65 KB)
📄
zerrors_freebsd_386.go
(67.38 KB)
📄
zerrors_freebsd_amd64.go
(67.42 KB)
📄
zerrors_freebsd_arm.go
(67.37 KB)
📄
zerrors_freebsd_arm64.go
(67.43 KB)
📄
zerrors_linux_386.go
(58.33 KB)
📄
zerrors_linux_amd64.go
(58.37 KB)
📄
zerrors_linux_arm.go
(58.86 KB)
📄
zerrors_linux_arm64.go
(69.54 KB)
📄
zerrors_linux_mips.go
(70.14 KB)
📄
zerrors_linux_mips64.go
(69.46 KB)
📄
zerrors_linux_mips64le.go
(69.46 KB)
📄
zerrors_linux_mipsle.go
(70.14 KB)
📄
zerrors_linux_ppc64.go
(71.86 KB)
📄
zerrors_linux_ppc64le.go
(72.82 KB)
📄
zerrors_linux_riscv64.go
(71.76 KB)
📄
zerrors_linux_s390x.go
(74.28 KB)
📄
zerrors_netbsd_386.go
(67.5 KB)
📄
zerrors_netbsd_amd64.go
(67.09 KB)
📄
zerrors_netbsd_arm.go
(66.51 KB)
📄
zerrors_netbsd_arm64.go
(67.09 KB)
📄
zerrors_openbsd_386.go
(62.54 KB)
📄
zerrors_openbsd_amd64.go
(62.5 KB)
📄
zerrors_openbsd_arm.go
(62.49 KB)
📄
zerrors_openbsd_arm64.go
(66.36 KB)
📄
zerrors_openbsd_mips64.go
(66.66 KB)
📄
zerrors_solaris_amd64.go
(50.74 KB)
📄
zerrors_windows.go
(9.97 KB)
📄
zsyscall_aix_ppc64.go
(40.16 KB)
📄
zsyscall_darwin_amd64.go
(50.65 KB)
📄
zsyscall_darwin_amd64.s
(8.64 KB)
📄
zsyscall_darwin_arm64.go
(50.6 KB)
📄
zsyscall_darwin_arm64.s
(8.61 KB)
📄
zsyscall_dragonfly_amd64.go
(31.21 KB)
📄
zsyscall_freebsd_386.go
(33.58 KB)
📄
zsyscall_freebsd_amd64.go
(33.44 KB)
📄
zsyscall_freebsd_arm.go
(33.6 KB)
📄
zsyscall_freebsd_arm64.go
(33.44 KB)
📄
zsyscall_linux_386.go
(34.35 KB)
📄
zsyscall_linux_amd64.go
(39.48 KB)
📄
zsyscall_linux_arm.go
(38.57 KB)
📄
zsyscall_linux_arm64.go
(37.74 KB)
📄
zsyscall_linux_mips.go
(40.33 KB)
📄
zsyscall_linux_mips64.go
(40.12 KB)
📄
zsyscall_linux_mips64le.go
(40.12 KB)
📄
zsyscall_linux_mipsle.go
(40.34 KB)
📄
zsyscall_linux_ppc64.go
(40.76 KB)
📄
zsyscall_linux_ppc64le.go
(40.76 KB)
📄
zsyscall_linux_riscv64.go
(37.77 KB)
📄
zsyscall_linux_s390x.go
(34.76 KB)
📄
zsyscall_netbsd_386.go
(29.65 KB)
📄
zsyscall_netbsd_amd64.go
(29.51 KB)
📄
zsyscall_netbsd_arm.go
(29.65 KB)
📄
zsyscall_netbsd_arm64.go
(29.51 KB)
📄
zsyscall_openbsd_386.go
(46.85 KB)
📄
zsyscall_openbsd_386.s
(7.89 KB)
📄
zsyscall_openbsd_amd64.go
(46.71 KB)
📄
zsyscall_openbsd_amd64.s
(7.89 KB)
📄
zsyscall_openbsd_arm.go
(46.87 KB)
📄
zsyscall_openbsd_arm.s
(7.89 KB)
📄
zsyscall_openbsd_arm64.go
(46.71 KB)
📄
zsyscall_openbsd_arm64.s
(7.89 KB)
📄
zsyscall_openbsd_mips64.go
(30.35 KB)
📄
zsyscall_plan9_386.go
(6.19 KB)
📄
zsyscall_plan9_amd64.go
(6.2 KB)
📄
zsyscall_plan9_arm.go
(6.19 KB)
📄
zsyscall_solaris_amd64.go
(35.82 KB)
📄
zsyscall_windows.go
(56.68 KB)
📄
zsysctl_openbsd.go
(11.71 KB)
📄
zsysnum_darwin_amd64.go
(14.57 KB)
📄
zsysnum_darwin_arm64.go
(14.41 KB)
📄
zsysnum_dragonfly_amd64.go
(22.97 KB)
📄
zsysnum_freebsd_386.go
(25.67 KB)
📄
zsysnum_freebsd_amd64.go
(25.68 KB)
📄
zsysnum_freebsd_arm.go
(25.67 KB)
📄
zsysnum_freebsd_arm64.go
(36.12 KB)
📄
zsysnum_linux_386.go
(11.29 KB)
📄
zsysnum_linux_amd64.go
(10.13 KB)
📄
zsysnum_linux_arm.go
(11.57 KB)
📄
zsysnum_linux_arm64.go
(8.97 KB)
📄
zsysnum_linux_mips.go
(12.1 KB)
📄
zsysnum_linux_mips64.go
(10.93 KB)
📄
zsysnum_linux_mips64le.go
(10.93 KB)
📄
zsysnum_linux_mipsle.go
(12.1 KB)
📄
zsysnum_linux_ppc64.go
(11.49 KB)
📄
zsysnum_linux_ppc64le.go
(11.51 KB)
📄
zsysnum_linux_riscv64.go
(8.88 KB)
📄
zsysnum_linux_s390x.go
(10.64 KB)
📄
zsysnum_netbsd_386.go
(25.71 KB)
📄
zsysnum_netbsd_amd64.go
(25.71 KB)
📄
zsysnum_netbsd_arm.go
(25.71 KB)
📄
zsysnum_netbsd_arm64.go
(25.71 KB)
📄
zsysnum_openbsd_386.go
(14.18 KB)
📄
zsysnum_openbsd_amd64.go
(14.18 KB)
📄
zsysnum_openbsd_arm.go
(14.48 KB)
📄
zsysnum_openbsd_arm64.go
(14.72 KB)
📄
zsysnum_openbsd_mips64.go
(14.93 KB)
📄
zsysnum_plan9.go
(1.03 KB)
📄
zsysnum_solaris_amd64.go
(317 B)
📄
ztypes_aix_ppc64.go
(4.17 KB)
📄
ztypes_darwin_amd64.go
(6.97 KB)
📄
ztypes_darwin_arm64.go
(6.97 KB)
📄
ztypes_dragonfly_amd64.go
(6.73 KB)
📄
ztypes_freebsd_386.go
(9.03 KB)
📄
ztypes_freebsd_amd64.go
(9.03 KB)
📄
ztypes_freebsd_arm.go
(9.04 KB)
📄
ztypes_freebsd_arm64.go
(9.03 KB)
📄
ztypes_linux_386.go
(11.57 KB)
📄
ztypes_linux_amd64.go
(11.94 KB)
📄
ztypes_linux_arm.go
(11.46 KB)
📄
ztypes_linux_arm64.go
(10.15 KB)
📄
ztypes_linux_mips.go
(9.93 KB)
📄
ztypes_linux_mips64.go
(10.05 KB)
📄
ztypes_linux_mips64le.go
(10.05 KB)
📄
ztypes_linux_mipsle.go
(9.93 KB)
📄
ztypes_linux_ppc64.go
(10.24 KB)
📄
ztypes_linux_ppc64le.go
(10.37 KB)
📄
ztypes_linux_riscv64.go
(10.2 KB)
📄
ztypes_linux_s390x.go
(10.39 KB)
📄
ztypes_netbsd_386.go
(6.01 KB)
📄
ztypes_netbsd_amd64.go
(6.19 KB)
📄
ztypes_netbsd_arm.go
(6.15 KB)
📄
ztypes_netbsd_arm64.go
(6.19 KB)
📄
ztypes_openbsd_386.go
(6.75 KB)
📄
ztypes_openbsd_amd64.go
(6.91 KB)
📄
ztypes_openbsd_arm.go
(6.84 KB)
📄
ztypes_openbsd_arm64.go
(6.66 KB)
📄
ztypes_openbsd_mips64.go
(6.66 KB)
📄
ztypes_solaris_amd64.go
(5.59 KB)
Editing: tables_js.go
// Copyright 2013 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build js && wasm // +build js,wasm package syscall import "runtime" // These were originally used by Nacl, then later also used by // js/wasm. Now that they're only used by js/wasm, these numbers are // just arbitrary. // // TODO: delete? replace with something meaningful? const ( sys_null = 1 sys_nameservice = 2 sys_dup = 8 sys_dup2 = 9 sys_open = 10 sys_close = 11 sys_read = 12 sys_write = 13 sys_lseek = 14 sys_stat = 16 sys_fstat = 17 sys_chmod = 18 sys_isatty = 19 sys_brk = 20 sys_mmap = 21 sys_munmap = 22 sys_getdents = 23 sys_mprotect = 24 sys_list_mappings = 25 sys_exit = 30 sys_getpid = 31 sys_sched_yield = 32 sys_sysconf = 33 sys_gettimeofday = 40 sys_clock = 41 sys_nanosleep = 42 sys_clock_getres = 43 sys_clock_gettime = 44 sys_mkdir = 45 sys_rmdir = 46 sys_chdir = 47 sys_getcwd = 48 sys_unlink = 49 sys_imc_makeboundsock = 60 sys_imc_accept = 61 sys_imc_connect = 62 sys_imc_sendmsg = 63 sys_imc_recvmsg = 64 sys_imc_mem_obj_create = 65 sys_imc_socketpair = 66 sys_mutex_create = 70 sys_mutex_lock = 71 sys_mutex_trylock = 72 sys_mutex_unlock = 73 sys_cond_create = 74 sys_cond_wait = 75 sys_cond_signal = 76 sys_cond_broadcast = 77 sys_cond_timed_wait_abs = 79 sys_thread_create = 80 sys_thread_exit = 81 sys_tls_init = 82 sys_thread_nice = 83 sys_tls_get = 84 sys_second_tls_set = 85 sys_second_tls_get = 86 sys_exception_handler = 87 sys_exception_stack = 88 sys_exception_clear_flag = 89 sys_sem_create = 100 sys_sem_wait = 101 sys_sem_post = 102 sys_sem_get_value = 103 sys_dyncode_create = 104 sys_dyncode_modify = 105 sys_dyncode_delete = 106 sys_test_infoleak = 109 sys_test_crash = 110 sys_test_syscall_1 = 111 sys_test_syscall_2 = 112 sys_futex_wait_abs = 120 sys_futex_wake = 121 sys_pread = 130 sys_pwrite = 131 sys_truncate = 140 sys_lstat = 141 sys_link = 142 sys_rename = 143 sys_symlink = 144 sys_access = 145 sys_readlink = 146 sys_utimes = 147 sys_get_random_bytes = 150 ) // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) const ( // native_client/src/trusted/service_runtime/include/sys/errno.h // The errors are mainly copied from Linux. EPERM Errno = 1 /* Operation not permitted */ ENOENT Errno = 2 /* No such file or directory */ ESRCH Errno = 3 /* No such process */ EINTR Errno = 4 /* Interrupted system call */ EIO Errno = 5 /* I/O error */ ENXIO Errno = 6 /* No such device or address */ E2BIG Errno = 7 /* Argument list too long */ ENOEXEC Errno = 8 /* Exec format error */ EBADF Errno = 9 /* Bad file number */ ECHILD Errno = 10 /* No child processes */ EAGAIN Errno = 11 /* Try again */ ENOMEM Errno = 12 /* Out of memory */ EACCES Errno = 13 /* Permission denied */ EFAULT Errno = 14 /* Bad address */ EBUSY Errno = 16 /* Device or resource busy */ EEXIST Errno = 17 /* File exists */ EXDEV Errno = 18 /* Cross-device link */ ENODEV Errno = 19 /* No such device */ ENOTDIR Errno = 20 /* Not a directory */ EISDIR Errno = 21 /* Is a directory */ EINVAL Errno = 22 /* Invalid argument */ ENFILE Errno = 23 /* File table overflow */ EMFILE Errno = 24 /* Too many open files */ ENOTTY Errno = 25 /* Not a typewriter */ EFBIG Errno = 27 /* File too large */ ENOSPC Errno = 28 /* No space left on device */ ESPIPE Errno = 29 /* Illegal seek */ EROFS Errno = 30 /* Read-only file system */ EMLINK Errno = 31 /* Too many links */ EPIPE Errno = 32 /* Broken pipe */ ENAMETOOLONG Errno = 36 /* File name too long */ ENOSYS Errno = 38 /* Function not implemented */ EDQUOT Errno = 122 /* Quota exceeded */ EDOM Errno = 33 /* Math arg out of domain of func */ ERANGE Errno = 34 /* Math result not representable */ EDEADLK Errno = 35 /* Deadlock condition */ ENOLCK Errno = 37 /* No record locks available */ ENOTEMPTY Errno = 39 /* Directory not empty */ ELOOP Errno = 40 /* Too many symbolic links */ ENOMSG Errno = 42 /* No message of desired type */ EIDRM Errno = 43 /* Identifier removed */ ECHRNG Errno = 44 /* Channel number out of range */ EL2NSYNC Errno = 45 /* Level 2 not synchronized */ EL3HLT Errno = 46 /* Level 3 halted */ EL3RST Errno = 47 /* Level 3 reset */ ELNRNG Errno = 48 /* Link number out of range */ EUNATCH Errno = 49 /* Protocol driver not attached */ ENOCSI Errno = 50 /* No CSI structure available */ EL2HLT Errno = 51 /* Level 2 halted */ EBADE Errno = 52 /* Invalid exchange */ EBADR Errno = 53 /* Invalid request descriptor */ EXFULL Errno = 54 /* Exchange full */ ENOANO Errno = 55 /* No anode */ EBADRQC Errno = 56 /* Invalid request code */ EBADSLT Errno = 57 /* Invalid slot */ EDEADLOCK Errno = EDEADLK /* File locking deadlock error */ EBFONT Errno = 59 /* Bad font file fmt */ ENOSTR Errno = 60 /* Device not a stream */ ENODATA Errno = 61 /* No data (for no delay io) */ ETIME Errno = 62 /* Timer expired */ ENOSR Errno = 63 /* Out of streams resources */ ENONET Errno = 64 /* Machine is not on the network */ ENOPKG Errno = 65 /* Package not installed */ EREMOTE Errno = 66 /* The object is remote */ ENOLINK Errno = 67 /* The link has been severed */ EADV Errno = 68 /* Advertise error */ ESRMNT Errno = 69 /* Srmount error */ ECOMM Errno = 70 /* Communication error on send */ EPROTO Errno = 71 /* Protocol error */ EMULTIHOP Errno = 72 /* Multihop attempted */ EDOTDOT Errno = 73 /* Cross mount point (not really error) */ EBADMSG Errno = 74 /* Trying to read unreadable message */ EOVERFLOW Errno = 75 /* Value too large for defined data type */ ENOTUNIQ Errno = 76 /* Given log. name not unique */ EBADFD Errno = 77 /* f.d. invalid for this operation */ EREMCHG Errno = 78 /* Remote address changed */ ELIBACC Errno = 79 /* Can't access a needed shared lib */ ELIBBAD Errno = 80 /* Accessing a corrupted shared lib */ ELIBSCN Errno = 81 /* .lib section in a.out corrupted */ ELIBMAX Errno = 82 /* Attempting to link in too many libs */ ELIBEXEC Errno = 83 /* Attempting to exec a shared library */ EILSEQ Errno = 84 EUSERS Errno = 87 ENOTSOCK Errno = 88 /* Socket operation on non-socket */ EDESTADDRREQ Errno = 89 /* Destination address required */ EMSGSIZE Errno = 90 /* Message too long */ EPROTOTYPE Errno = 91 /* Protocol wrong type for socket */ ENOPROTOOPT Errno = 92 /* Protocol not available */ EPROTONOSUPPORT Errno = 93 /* Unknown protocol */ ESOCKTNOSUPPORT Errno = 94 /* Socket type not supported */ EOPNOTSUPP Errno = 95 /* Operation not supported on transport endpoint */ EPFNOSUPPORT Errno = 96 /* Protocol family not supported */ EAFNOSUPPORT Errno = 97 /* Address family not supported by protocol family */ EADDRINUSE Errno = 98 /* Address already in use */ EADDRNOTAVAIL Errno = 99 /* Address not available */ ENETDOWN Errno = 100 /* Network interface is not configured */ ENETUNREACH Errno = 101 /* Network is unreachable */ ENETRESET Errno = 102 ECONNABORTED Errno = 103 /* Connection aborted */ ECONNRESET Errno = 104 /* Connection reset by peer */ ENOBUFS Errno = 105 /* No buffer space available */ EISCONN Errno = 106 /* Socket is already connected */ ENOTCONN Errno = 107 /* Socket is not connected */ ESHUTDOWN Errno = 108 /* Can't send after socket shutdown */ ETOOMANYREFS Errno = 109 ETIMEDOUT Errno = 110 /* Connection timed out */ ECONNREFUSED Errno = 111 /* Connection refused */ EHOSTDOWN Errno = 112 /* Host is down */ EHOSTUNREACH Errno = 113 /* Host is unreachable */ EALREADY Errno = 114 /* Socket already connected */ EINPROGRESS Errno = 115 /* Connection already in progress */ ESTALE Errno = 116 ENOTSUP Errno = EOPNOTSUPP /* Not supported */ ENOMEDIUM Errno = 123 /* No medium (in tape drive) */ ECANCELED Errno = 125 /* Operation canceled. */ ELBIN Errno = 2048 /* Inode is remote (not really error) */ EFTYPE Errno = 2049 /* Inappropriate file type or format */ ENMFILE Errno = 2050 /* No more files */ EPROCLIM Errno = 2051 ENOSHARE Errno = 2052 /* No such host or network path */ ECASECLASH Errno = 2053 /* Filename exists with different case */ EWOULDBLOCK Errno = EAGAIN /* Operation would block */ ) // TODO: Auto-generate some day. (Hard-coded in binaries so not likely to change.) var errorstr = [...]string{ EPERM: "Operation not permitted", ENOENT: "No such file or directory", ESRCH: "No such process", EINTR: "Interrupted system call", EIO: "I/O error", ENXIO: "No such device or address", E2BIG: "Argument list too long", ENOEXEC: "Exec format error", EBADF: "Bad file number", ECHILD: "No child processes", EAGAIN: "Try again", ENOMEM: "Out of memory", EACCES: "Permission denied", EFAULT: "Bad address", EBUSY: "Device or resource busy", EEXIST: "File exists", EXDEV: "Cross-device link", ENODEV: "No such device", ENOTDIR: "Not a directory", EISDIR: "Is a directory", EINVAL: "Invalid argument", ENFILE: "File table overflow", EMFILE: "Too many open files", ENOTTY: "Not a typewriter", EFBIG: "File too large", ENOSPC: "No space left on device", ESPIPE: "Illegal seek", EROFS: "Read-only file system", EMLINK: "Too many links", EPIPE: "Broken pipe", ENAMETOOLONG: "File name too long", ENOSYS: "not implemented on " + runtime.GOOS, EDQUOT: "Quota exceeded", EDOM: "Math arg out of domain of func", ERANGE: "Math result not representable", EDEADLK: "Deadlock condition", ENOLCK: "No record locks available", ENOTEMPTY: "Directory not empty", ELOOP: "Too many symbolic links", ENOMSG: "No message of desired type", EIDRM: "Identifier removed", ECHRNG: "Channel number out of range", EL2NSYNC: "Level 2 not synchronized", EL3HLT: "Level 3 halted", EL3RST: "Level 3 reset", ELNRNG: "Link number out of range", EUNATCH: "Protocol driver not attached", ENOCSI: "No CSI structure available", EL2HLT: "Level 2 halted", EBADE: "Invalid exchange", EBADR: "Invalid request descriptor", EXFULL: "Exchange full", ENOANO: "No anode", EBADRQC: "Invalid request code", EBADSLT: "Invalid slot", EBFONT: "Bad font file fmt", ENOSTR: "Device not a stream", ENODATA: "No data (for no delay io)", ETIME: "Timer expired", ENOSR: "Out of streams resources", ENONET: "Machine is not on the network", ENOPKG: "Package not installed", EREMOTE: "The object is remote", ENOLINK: "The link has been severed", EADV: "Advertise error", ESRMNT: "Srmount error", ECOMM: "Communication error on send", EPROTO: "Protocol error", EMULTIHOP: "Multihop attempted", EDOTDOT: "Cross mount point (not really error)", EBADMSG: "Trying to read unreadable message", EOVERFLOW: "Value too large for defined data type", ENOTUNIQ: "Given log. name not unique", EBADFD: "f.d. invalid for this operation", EREMCHG: "Remote address changed", ELIBACC: "Can't access a needed shared lib", ELIBBAD: "Accessing a corrupted shared lib", ELIBSCN: ".lib section in a.out corrupted", ELIBMAX: "Attempting to link in too many libs", ELIBEXEC: "Attempting to exec a shared library", ENOTSOCK: "Socket operation on non-socket", EDESTADDRREQ: "Destination address required", EMSGSIZE: "Message too long", EPROTOTYPE: "Protocol wrong type for socket", ENOPROTOOPT: "Protocol not available", EPROTONOSUPPORT: "Unknown protocol", ESOCKTNOSUPPORT: "Socket type not supported", EOPNOTSUPP: "Operation not supported on transport endpoint", EPFNOSUPPORT: "Protocol family not supported", EAFNOSUPPORT: "Address family not supported by protocol family", EADDRINUSE: "Address already in use", EADDRNOTAVAIL: "Address not available", ENETDOWN: "Network interface is not configured", ENETUNREACH: "Network is unreachable", ECONNABORTED: "Connection aborted", ECONNRESET: "Connection reset by peer", ENOBUFS: "No buffer space available", EISCONN: "Socket is already connected", ENOTCONN: "Socket is not connected", ESHUTDOWN: "Can't send after socket shutdown", ETIMEDOUT: "Connection timed out", ECONNREFUSED: "Connection refused", EHOSTDOWN: "Host is down", EHOSTUNREACH: "Host is unreachable", EALREADY: "Socket already connected", EINPROGRESS: "Connection already in progress", ENOMEDIUM: "No medium (in tape drive)", ECANCELED: "Operation canceled.", ELBIN: "Inode is remote (not really error)", EFTYPE: "Inappropriate file type or format", ENMFILE: "No more files", ENOSHARE: "No such host or network path", ECASECLASH: "Filename exists with different case", } // Do the interface allocations only once for common // Errno values. var ( errEAGAIN error = EAGAIN errEINVAL error = EINVAL errENOENT error = ENOENT ) // errnoErr returns common boxed Errno values, to prevent // allocations at runtime. func errnoErr(e Errno) error { switch e { case 0: return nil case EAGAIN: return errEAGAIN case EINVAL: return errEINVAL case ENOENT: return errENOENT } return e } var errnoByCode = map[string]Errno{ "EPERM": EPERM, "ENOENT": ENOENT, "ESRCH": ESRCH, "EINTR": EINTR, "EIO": EIO, "ENXIO": ENXIO, "E2BIG": E2BIG, "ENOEXEC": ENOEXEC, "EBADF": EBADF, "ECHILD": ECHILD, "EAGAIN": EAGAIN, "ENOMEM": ENOMEM, "EACCES": EACCES, "EFAULT": EFAULT, "EBUSY": EBUSY, "EEXIST": EEXIST, "EXDEV": EXDEV, "ENODEV": ENODEV, "ENOTDIR": ENOTDIR, "EISDIR": EISDIR, "EINVAL": EINVAL, "ENFILE": ENFILE, "EMFILE": EMFILE, "ENOTTY": ENOTTY, "EFBIG": EFBIG, "ENOSPC": ENOSPC, "ESPIPE": ESPIPE, "EROFS": EROFS, "EMLINK": EMLINK, "EPIPE": EPIPE, "ENAMETOOLONG": ENAMETOOLONG, "ENOSYS": ENOSYS, "EDQUOT": EDQUOT, "EDOM": EDOM, "ERANGE": ERANGE, "EDEADLK": EDEADLK, "ENOLCK": ENOLCK, "ENOTEMPTY": ENOTEMPTY, "ELOOP": ELOOP, "ENOMSG": ENOMSG, "EIDRM": EIDRM, "ECHRNG": ECHRNG, "EL2NSYNC": EL2NSYNC, "EL3HLT": EL3HLT, "EL3RST": EL3RST, "ELNRNG": ELNRNG, "EUNATCH": EUNATCH, "ENOCSI": ENOCSI, "EL2HLT": EL2HLT, "EBADE": EBADE, "EBADR": EBADR, "EXFULL": EXFULL, "ENOANO": ENOANO, "EBADRQC": EBADRQC, "EBADSLT": EBADSLT, "EDEADLOCK": EDEADLOCK, "EBFONT": EBFONT, "ENOSTR": ENOSTR, "ENODATA": ENODATA, "ETIME": ETIME, "ENOSR": ENOSR, "ENONET": ENONET, "ENOPKG": ENOPKG, "EREMOTE": EREMOTE, "ENOLINK": ENOLINK, "EADV": EADV, "ESRMNT": ESRMNT, "ECOMM": ECOMM, "EPROTO": EPROTO, "EMULTIHOP": EMULTIHOP, "EDOTDOT": EDOTDOT, "EBADMSG": EBADMSG, "EOVERFLOW": EOVERFLOW, "ENOTUNIQ": ENOTUNIQ, "EBADFD": EBADFD, "EREMCHG": EREMCHG, "ELIBACC": ELIBACC, "ELIBBAD": ELIBBAD, "ELIBSCN": ELIBSCN, "ELIBMAX": ELIBMAX, "ELIBEXEC": ELIBEXEC, "EILSEQ": EILSEQ, "EUSERS": EUSERS, "ENOTSOCK": ENOTSOCK, "EDESTADDRREQ": EDESTADDRREQ, "EMSGSIZE": EMSGSIZE, "EPROTOTYPE": EPROTOTYPE, "ENOPROTOOPT": ENOPROTOOPT, "EPROTONOSUPPORT": EPROTONOSUPPORT, "ESOCKTNOSUPPORT": ESOCKTNOSUPPORT, "EOPNOTSUPP": EOPNOTSUPP, "EPFNOSUPPORT": EPFNOSUPPORT, "EAFNOSUPPORT": EAFNOSUPPORT, "EADDRINUSE": EADDRINUSE, "EADDRNOTAVAIL": EADDRNOTAVAIL, "ENETDOWN": ENETDOWN, "ENETUNREACH": ENETUNREACH, "ENETRESET": ENETRESET, "ECONNABORTED": ECONNABORTED, "ECONNRESET": ECONNRESET, "ENOBUFS": ENOBUFS, "EISCONN": EISCONN, "ENOTCONN": ENOTCONN, "ESHUTDOWN": ESHUTDOWN, "ETOOMANYREFS": ETOOMANYREFS, "ETIMEDOUT": ETIMEDOUT, "ECONNREFUSED": ECONNREFUSED, "EHOSTDOWN": EHOSTDOWN, "EHOSTUNREACH": EHOSTUNREACH, "EALREADY": EALREADY, "EINPROGRESS": EINPROGRESS, "ESTALE": ESTALE, "ENOTSUP": ENOTSUP, "ENOMEDIUM": ENOMEDIUM, "ECANCELED": ECANCELED, "ELBIN": ELBIN, "EFTYPE": EFTYPE, "ENMFILE": ENMFILE, "EPROCLIM": EPROCLIM, "ENOSHARE": ENOSHARE, "ECASECLASH": ECASECLASH, "EWOULDBLOCK": EWOULDBLOCK, }
Upload File
Create Folder