github.com/traefik/yaegi@v0.15.1/stdlib/syscall/go1_19_syscall_plan9_arm.go (about) 1 // Code generated by 'yaegi extract syscall'. DO NOT EDIT. 2 3 //go:build go1.19 && !go1.20 4 // +build go1.19,!go1.20 5 6 package syscall 7 8 import ( 9 "go/constant" 10 "go/token" 11 "reflect" 12 "syscall" 13 ) 14 15 func init() { 16 Symbols["syscall/syscall"] = map[string]reflect.Value{ 17 // function, constant and variable definitions 18 "Await": reflect.ValueOf(syscall.Await), 19 "Bind": reflect.ValueOf(syscall.Bind), 20 "BytePtrFromString": reflect.ValueOf(syscall.BytePtrFromString), 21 "ByteSliceFromString": reflect.ValueOf(syscall.ByteSliceFromString), 22 "Chdir": reflect.ValueOf(syscall.Chdir), 23 "Clearenv": reflect.ValueOf(syscall.Clearenv), 24 "Close": reflect.ValueOf(syscall.Close), 25 "Create": reflect.ValueOf(syscall.Create), 26 "DMAPPEND": reflect.ValueOf(constant.MakeFromLiteral("1073741824", token.INT, 0)), 27 "DMAUTH": reflect.ValueOf(constant.MakeFromLiteral("134217728", token.INT, 0)), 28 "DMDIR": reflect.ValueOf(constant.MakeFromLiteral("2147483648", token.INT, 0)), 29 "DMEXCL": reflect.ValueOf(constant.MakeFromLiteral("536870912", token.INT, 0)), 30 "DMEXEC": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), 31 "DMMOUNT": reflect.ValueOf(constant.MakeFromLiteral("268435456", token.INT, 0)), 32 "DMREAD": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 33 "DMTMP": reflect.ValueOf(constant.MakeFromLiteral("67108864", token.INT, 0)), 34 "DMWRITE": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), 35 "Dup": reflect.ValueOf(syscall.Dup), 36 "EACCES": reflect.ValueOf(&syscall.EACCES).Elem(), 37 "EAFNOSUPPORT": reflect.ValueOf(&syscall.EAFNOSUPPORT).Elem(), 38 "EBUSY": reflect.ValueOf(&syscall.EBUSY).Elem(), 39 "EEXIST": reflect.ValueOf(&syscall.EEXIST).Elem(), 40 "EINTR": reflect.ValueOf(&syscall.EINTR).Elem(), 41 "EINVAL": reflect.ValueOf(&syscall.EINVAL).Elem(), 42 "EIO": reflect.ValueOf(&syscall.EIO).Elem(), 43 "EISDIR": reflect.ValueOf(&syscall.EISDIR).Elem(), 44 "EMFILE": reflect.ValueOf(&syscall.EMFILE).Elem(), 45 "ENAMETOOLONG": reflect.ValueOf(&syscall.ENAMETOOLONG).Elem(), 46 "ENOENT": reflect.ValueOf(&syscall.ENOENT).Elem(), 47 "ENOTDIR": reflect.ValueOf(&syscall.ENOTDIR).Elem(), 48 "EPERM": reflect.ValueOf(&syscall.EPERM).Elem(), 49 "EPLAN9": reflect.ValueOf(&syscall.EPLAN9).Elem(), 50 "ERRMAX": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), 51 "ESPIPE": reflect.ValueOf(&syscall.ESPIPE).Elem(), 52 "ETIMEDOUT": reflect.ValueOf(&syscall.ETIMEDOUT).Elem(), 53 "Environ": reflect.ValueOf(syscall.Environ), 54 "ErrBadName": reflect.ValueOf(&syscall.ErrBadName).Elem(), 55 "ErrBadStat": reflect.ValueOf(&syscall.ErrBadStat).Elem(), 56 "ErrShortStat": reflect.ValueOf(&syscall.ErrShortStat).Elem(), 57 "Fchdir": reflect.ValueOf(syscall.Fchdir), 58 "Fd2path": reflect.ValueOf(syscall.Fd2path), 59 "Fixwd": reflect.ValueOf(syscall.Fixwd), 60 "ForkLock": reflect.ValueOf(&syscall.ForkLock).Elem(), 61 "Fstat": reflect.ValueOf(syscall.Fstat), 62 "Fwstat": reflect.ValueOf(syscall.Fwstat), 63 "Getegid": reflect.ValueOf(syscall.Getegid), 64 "Getenv": reflect.ValueOf(syscall.Getenv), 65 "Geteuid": reflect.ValueOf(syscall.Geteuid), 66 "Getgid": reflect.ValueOf(syscall.Getgid), 67 "Getgroups": reflect.ValueOf(syscall.Getgroups), 68 "Getpagesize": reflect.ValueOf(syscall.Getpagesize), 69 "Getpid": reflect.ValueOf(syscall.Getpid), 70 "Getppid": reflect.ValueOf(syscall.Getppid), 71 "Gettimeofday": reflect.ValueOf(syscall.Gettimeofday), 72 "Getuid": reflect.ValueOf(syscall.Getuid), 73 "Getwd": reflect.ValueOf(syscall.Getwd), 74 "ImplementsGetwd": reflect.ValueOf(syscall.ImplementsGetwd), 75 "MAFTER": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), 76 "MBEFORE": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), 77 "MCACHE": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 78 "MCREATE": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 79 "MMASK": reflect.ValueOf(constant.MakeFromLiteral("23", token.INT, 0)), 80 "MORDER": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), 81 "MREPL": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 82 "Mkdir": reflect.ValueOf(syscall.Mkdir), 83 "Mount": reflect.ValueOf(syscall.Mount), 84 "NewError": reflect.ValueOf(syscall.NewError), 85 "NsecToTimeval": reflect.ValueOf(syscall.NsecToTimeval), 86 "O_APPEND": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), 87 "O_ASYNC": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 88 "O_CLOEXEC": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 89 "O_CREAT": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), 90 "O_EXCL": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), 91 "O_NOCTTY": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 92 "O_NONBLOCK": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 93 "O_RDONLY": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 94 "O_RDWR": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), 95 "O_SYNC": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 96 "O_TRUNC": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 97 "O_WRONLY": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), 98 "Open": reflect.ValueOf(syscall.Open), 99 "Pipe": reflect.ValueOf(syscall.Pipe), 100 "Pread": reflect.ValueOf(syscall.Pread), 101 "Pwrite": reflect.ValueOf(syscall.Pwrite), 102 "QTAPPEND": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 103 "QTAUTH": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 104 "QTDIR": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), 105 "QTEXCL": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 106 "QTFILE": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 107 "QTMOUNT": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 108 "QTTMP": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 109 "RFCENVG": reflect.ValueOf(constant.MakeFromLiteral("2048", token.INT, 0)), 110 "RFCFDG": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), 111 "RFCNAMEG": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), 112 "RFENVG": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), 113 "RFFDG": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 114 "RFMEM": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 115 "RFNAMEG": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), 116 "RFNOMNT": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), 117 "RFNOTEG": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 118 "RFNOWAIT": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 119 "RFPROC": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 120 "RFREND": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), 121 "Read": reflect.ValueOf(syscall.Read), 122 "Remove": reflect.ValueOf(syscall.Remove), 123 "SIGABRT": reflect.ValueOf(syscall.SIGABRT), 124 "SIGALRM": reflect.ValueOf(syscall.SIGALRM), 125 "SIGHUP": reflect.ValueOf(syscall.SIGHUP), 126 "SIGINT": reflect.ValueOf(syscall.SIGINT), 127 "SIGKILL": reflect.ValueOf(syscall.SIGKILL), 128 "SIGTERM": reflect.ValueOf(syscall.SIGTERM), 129 "STATFIXLEN": reflect.ValueOf(constant.MakeFromLiteral("49", token.INT, 0)), 130 "STATMAX": reflect.ValueOf(constant.MakeFromLiteral("65535", token.INT, 0)), 131 "SYS_ALARM": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), 132 "SYS_AWAIT": reflect.ValueOf(constant.MakeFromLiteral("47", token.INT, 0)), 133 "SYS_BIND": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), 134 "SYS_BRK_": reflect.ValueOf(constant.MakeFromLiteral("24", token.INT, 0)), 135 "SYS_CHDIR": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), 136 "SYS_CLOSE": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 137 "SYS_CREATE": reflect.ValueOf(constant.MakeFromLiteral("22", token.INT, 0)), 138 "SYS_DUP": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), 139 "SYS_ERRSTR": reflect.ValueOf(constant.MakeFromLiteral("41", token.INT, 0)), 140 "SYS_EXEC": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), 141 "SYS_EXITS": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 142 "SYS_FAUTH": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), 143 "SYS_FD2PATH": reflect.ValueOf(constant.MakeFromLiteral("23", token.INT, 0)), 144 "SYS_FSTAT": reflect.ValueOf(constant.MakeFromLiteral("43", token.INT, 0)), 145 "SYS_FVERSION": reflect.ValueOf(constant.MakeFromLiteral("40", token.INT, 0)), 146 "SYS_FWSTAT": reflect.ValueOf(constant.MakeFromLiteral("45", token.INT, 0)), 147 "SYS_MOUNT": reflect.ValueOf(constant.MakeFromLiteral("46", token.INT, 0)), 148 "SYS_NOTED": reflect.ValueOf(constant.MakeFromLiteral("29", token.INT, 0)), 149 "SYS_NOTIFY": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)), 150 "SYS_NSEC": reflect.ValueOf(constant.MakeFromLiteral("53", token.INT, 0)), 151 "SYS_OPEN": reflect.ValueOf(constant.MakeFromLiteral("14", token.INT, 0)), 152 "SYS_OSEEK": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 153 "SYS_PIPE": reflect.ValueOf(constant.MakeFromLiteral("21", token.INT, 0)), 154 "SYS_PREAD": reflect.ValueOf(constant.MakeFromLiteral("50", token.INT, 0)), 155 "SYS_PWRITE": reflect.ValueOf(constant.MakeFromLiteral("51", token.INT, 0)), 156 "SYS_REMOVE": reflect.ValueOf(constant.MakeFromLiteral("25", token.INT, 0)), 157 "SYS_RENDEZVOUS": reflect.ValueOf(constant.MakeFromLiteral("34", token.INT, 0)), 158 "SYS_RFORK": reflect.ValueOf(constant.MakeFromLiteral("19", token.INT, 0)), 159 "SYS_SEEK": reflect.ValueOf(constant.MakeFromLiteral("39", token.INT, 0)), 160 "SYS_SEGATTACH": reflect.ValueOf(constant.MakeFromLiteral("30", token.INT, 0)), 161 "SYS_SEGBRK": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), 162 "SYS_SEGDETACH": reflect.ValueOf(constant.MakeFromLiteral("31", token.INT, 0)), 163 "SYS_SEGFLUSH": reflect.ValueOf(constant.MakeFromLiteral("33", token.INT, 0)), 164 "SYS_SEGFREE": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 165 "SYS_SEMACQUIRE": reflect.ValueOf(constant.MakeFromLiteral("37", token.INT, 0)), 166 "SYS_SEMRELEASE": reflect.ValueOf(constant.MakeFromLiteral("38", token.INT, 0)), 167 "SYS_SLEEP": reflect.ValueOf(constant.MakeFromLiteral("17", token.INT, 0)), 168 "SYS_STAT": reflect.ValueOf(constant.MakeFromLiteral("42", token.INT, 0)), 169 "SYS_SYSR1": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), 170 "SYS_TSEMACQUIRE": reflect.ValueOf(constant.MakeFromLiteral("52", token.INT, 0)), 171 "SYS_UNMOUNT": reflect.ValueOf(constant.MakeFromLiteral("35", token.INT, 0)), 172 "SYS_WSTAT": reflect.ValueOf(constant.MakeFromLiteral("44", token.INT, 0)), 173 "S_IFBLK": reflect.ValueOf(constant.MakeFromLiteral("24576", token.INT, 0)), 174 "S_IFCHR": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), 175 "S_IFDIR": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), 176 "S_IFIFO": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), 177 "S_IFLNK": reflect.ValueOf(constant.MakeFromLiteral("40960", token.INT, 0)), 178 "S_IFMT": reflect.ValueOf(constant.MakeFromLiteral("126976", token.INT, 0)), 179 "S_IFREG": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), 180 "S_IFSOCK": reflect.ValueOf(constant.MakeFromLiteral("49152", token.INT, 0)), 181 "Seek": reflect.ValueOf(syscall.Seek), 182 "Setenv": reflect.ValueOf(syscall.Setenv), 183 "SlicePtrFromStrings": reflect.ValueOf(syscall.SlicePtrFromStrings), 184 "SocketDisableIPv6": reflect.ValueOf(&syscall.SocketDisableIPv6).Elem(), 185 "Stat": reflect.ValueOf(syscall.Stat), 186 "Stderr": reflect.ValueOf(&syscall.Stderr).Elem(), 187 "Stdin": reflect.ValueOf(&syscall.Stdin).Elem(), 188 "Stdout": reflect.ValueOf(&syscall.Stdout).Elem(), 189 "StringBytePtr": reflect.ValueOf(syscall.StringBytePtr), 190 "StringByteSlice": reflect.ValueOf(syscall.StringByteSlice), 191 "StringSlicePtr": reflect.ValueOf(syscall.StringSlicePtr), 192 "UnmarshalDir": reflect.ValueOf(syscall.UnmarshalDir), 193 "Unmount": reflect.ValueOf(syscall.Unmount), 194 "Unsetenv": reflect.ValueOf(syscall.Unsetenv), 195 "WaitProcess": reflect.ValueOf(syscall.WaitProcess), 196 "Write": reflect.ValueOf(syscall.Write), 197 "Wstat": reflect.ValueOf(syscall.Wstat), 198 199 // type definitions 200 "Conn": reflect.ValueOf((*syscall.Conn)(nil)), 201 "Dir": reflect.ValueOf((*syscall.Dir)(nil)), 202 "ErrorString": reflect.ValueOf((*syscall.ErrorString)(nil)), 203 "Note": reflect.ValueOf((*syscall.Note)(nil)), 204 "ProcAttr": reflect.ValueOf((*syscall.ProcAttr)(nil)), 205 "Qid": reflect.ValueOf((*syscall.Qid)(nil)), 206 "RawConn": reflect.ValueOf((*syscall.RawConn)(nil)), 207 "SysProcAttr": reflect.ValueOf((*syscall.SysProcAttr)(nil)), 208 "Timespec": reflect.ValueOf((*syscall.Timespec)(nil)), 209 "Timeval": reflect.ValueOf((*syscall.Timeval)(nil)), 210 "Waitmsg": reflect.ValueOf((*syscall.Waitmsg)(nil)), 211 212 // interface wrapper definitions 213 "_Conn": reflect.ValueOf((*_syscall_Conn)(nil)), 214 "_RawConn": reflect.ValueOf((*_syscall_RawConn)(nil)), 215 } 216 } 217 218 // _syscall_Conn is an interface wrapper for Conn type 219 type _syscall_Conn struct { 220 IValue interface{} 221 WSyscallConn func() (syscall.RawConn, error) 222 } 223 224 func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { 225 return W.WSyscallConn() 226 } 227 228 // _syscall_RawConn is an interface wrapper for RawConn type 229 type _syscall_RawConn struct { 230 IValue interface{} 231 WControl func(f func(fd uintptr)) error 232 WRead func(f func(fd uintptr) (done bool)) error 233 WWrite func(f func(fd uintptr) (done bool)) error 234 } 235 236 func (W _syscall_RawConn) Control(f func(fd uintptr)) error { 237 return W.WControl(f) 238 } 239 func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { 240 return W.WRead(f) 241 } 242 func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { 243 return W.WWrite(f) 244 }