github.com/goplus/gossa@v0.3.25/pkg/syscall/go118_export_plan9_386.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package syscall 7 8 import ( 9 q "syscall" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "syscall", 20 Path: "syscall", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "internal/itoa": "itoa", 24 "internal/oserror": "oserror", 25 "runtime": "runtime", 26 "sync": "sync", 27 "unsafe": "unsafe", 28 }, 29 Interfaces: map[string]reflect.Type{ 30 "Conn": reflect.TypeOf((*q.Conn)(nil)).Elem(), 31 "RawConn": reflect.TypeOf((*q.RawConn)(nil)).Elem(), 32 }, 33 NamedTypes: map[string]gossa.NamedType{ 34 "Dir": {reflect.TypeOf((*q.Dir)(nil)).Elem(), "", "Marshal,Null"}, 35 "ErrorString": {reflect.TypeOf((*q.ErrorString)(nil)).Elem(), "Error,Is,Temporary,Timeout", ""}, 36 "Note": {reflect.TypeOf((*q.Note)(nil)).Elem(), "Signal,String", ""}, 37 "ProcAttr": {reflect.TypeOf((*q.ProcAttr)(nil)).Elem(), "", ""}, 38 "Qid": {reflect.TypeOf((*q.Qid)(nil)).Elem(), "", ""}, 39 "SysProcAttr": {reflect.TypeOf((*q.SysProcAttr)(nil)).Elem(), "", ""}, 40 "Timespec": {reflect.TypeOf((*q.Timespec)(nil)).Elem(), "", "Nano,Unix"}, 41 "Timeval": {reflect.TypeOf((*q.Timeval)(nil)).Elem(), "", "Nano,Unix"}, 42 "Waitmsg": {reflect.TypeOf((*q.Waitmsg)(nil)).Elem(), "ExitStatus,Exited,Signaled", ""}, 43 }, 44 AliasTypes: map[string]reflect.Type{}, 45 Vars: map[string]reflect.Value{ 46 "EACCES": reflect.ValueOf(&q.EACCES), 47 "EAFNOSUPPORT": reflect.ValueOf(&q.EAFNOSUPPORT), 48 "EBUSY": reflect.ValueOf(&q.EBUSY), 49 "EEXIST": reflect.ValueOf(&q.EEXIST), 50 "EINTR": reflect.ValueOf(&q.EINTR), 51 "EINVAL": reflect.ValueOf(&q.EINVAL), 52 "EIO": reflect.ValueOf(&q.EIO), 53 "EISDIR": reflect.ValueOf(&q.EISDIR), 54 "EMFILE": reflect.ValueOf(&q.EMFILE), 55 "ENAMETOOLONG": reflect.ValueOf(&q.ENAMETOOLONG), 56 "ENOENT": reflect.ValueOf(&q.ENOENT), 57 "ENOTDIR": reflect.ValueOf(&q.ENOTDIR), 58 "EPERM": reflect.ValueOf(&q.EPERM), 59 "EPLAN9": reflect.ValueOf(&q.EPLAN9), 60 "ESPIPE": reflect.ValueOf(&q.ESPIPE), 61 "ETIMEDOUT": reflect.ValueOf(&q.ETIMEDOUT), 62 "ErrBadName": reflect.ValueOf(&q.ErrBadName), 63 "ErrBadStat": reflect.ValueOf(&q.ErrBadStat), 64 "ErrShortStat": reflect.ValueOf(&q.ErrShortStat), 65 "ForkLock": reflect.ValueOf(&q.ForkLock), 66 "SocketDisableIPv6": reflect.ValueOf(&q.SocketDisableIPv6), 67 "Stderr": reflect.ValueOf(&q.Stderr), 68 "Stdin": reflect.ValueOf(&q.Stdin), 69 "Stdout": reflect.ValueOf(&q.Stdout), 70 }, 71 Funcs: map[string]reflect.Value{ 72 "Await": reflect.ValueOf(q.Await), 73 "Bind": reflect.ValueOf(q.Bind), 74 "BytePtrFromString": reflect.ValueOf(q.BytePtrFromString), 75 "ByteSliceFromString": reflect.ValueOf(q.ByteSliceFromString), 76 "Chdir": reflect.ValueOf(q.Chdir), 77 "Clearenv": reflect.ValueOf(q.Clearenv), 78 "Close": reflect.ValueOf(q.Close), 79 "Create": reflect.ValueOf(q.Create), 80 "Dup": reflect.ValueOf(q.Dup), 81 "Environ": reflect.ValueOf(q.Environ), 82 "Exec": reflect.ValueOf(q.Exec), 83 "Exit": reflect.ValueOf(q.Exit), 84 "Fchdir": reflect.ValueOf(q.Fchdir), 85 "Fd2path": reflect.ValueOf(q.Fd2path), 86 "Fixwd": reflect.ValueOf(q.Fixwd), 87 "ForkExec": reflect.ValueOf(q.ForkExec), 88 "Fstat": reflect.ValueOf(q.Fstat), 89 "Fwstat": reflect.ValueOf(q.Fwstat), 90 "Getegid": reflect.ValueOf(q.Getegid), 91 "Getenv": reflect.ValueOf(q.Getenv), 92 "Geteuid": reflect.ValueOf(q.Geteuid), 93 "Getgid": reflect.ValueOf(q.Getgid), 94 "Getgroups": reflect.ValueOf(q.Getgroups), 95 "Getpagesize": reflect.ValueOf(q.Getpagesize), 96 "Getpid": reflect.ValueOf(q.Getpid), 97 "Getppid": reflect.ValueOf(q.Getppid), 98 "Gettimeofday": reflect.ValueOf(q.Gettimeofday), 99 "Getuid": reflect.ValueOf(q.Getuid), 100 "Getwd": reflect.ValueOf(q.Getwd), 101 "Mkdir": reflect.ValueOf(q.Mkdir), 102 "Mount": reflect.ValueOf(q.Mount), 103 "NewError": reflect.ValueOf(q.NewError), 104 "NsecToTimeval": reflect.ValueOf(q.NsecToTimeval), 105 "Open": reflect.ValueOf(q.Open), 106 "Pipe": reflect.ValueOf(q.Pipe), 107 "Pread": reflect.ValueOf(q.Pread), 108 "Pwrite": reflect.ValueOf(q.Pwrite), 109 "RawSyscall": reflect.ValueOf(q.RawSyscall), 110 "RawSyscall6": reflect.ValueOf(q.RawSyscall6), 111 "Read": reflect.ValueOf(q.Read), 112 "Remove": reflect.ValueOf(q.Remove), 113 "Seek": reflect.ValueOf(q.Seek), 114 "Setenv": reflect.ValueOf(q.Setenv), 115 "SlicePtrFromStrings": reflect.ValueOf(q.SlicePtrFromStrings), 116 "StartProcess": reflect.ValueOf(q.StartProcess), 117 "Stat": reflect.ValueOf(q.Stat), 118 "StringBytePtr": reflect.ValueOf(q.StringBytePtr), 119 "StringByteSlice": reflect.ValueOf(q.StringByteSlice), 120 "StringSlicePtr": reflect.ValueOf(q.StringSlicePtr), 121 "Syscall": reflect.ValueOf(q.Syscall), 122 "Syscall6": reflect.ValueOf(q.Syscall6), 123 "UnmarshalDir": reflect.ValueOf(q.UnmarshalDir), 124 "Unmount": reflect.ValueOf(q.Unmount), 125 "Unsetenv": reflect.ValueOf(q.Unsetenv), 126 "WaitProcess": reflect.ValueOf(q.WaitProcess), 127 "Write": reflect.ValueOf(q.Write), 128 "Wstat": reflect.ValueOf(q.Wstat), 129 }, 130 TypedConsts: map[string]gossa.TypedConst{ 131 "SIGABRT": {reflect.TypeOf(q.SIGABRT), constant.MakeString(string(q.SIGABRT))}, 132 "SIGALRM": {reflect.TypeOf(q.SIGALRM), constant.MakeString(string(q.SIGALRM))}, 133 "SIGHUP": {reflect.TypeOf(q.SIGHUP), constant.MakeString(string(q.SIGHUP))}, 134 "SIGINT": {reflect.TypeOf(q.SIGINT), constant.MakeString(string(q.SIGINT))}, 135 "SIGKILL": {reflect.TypeOf(q.SIGKILL), constant.MakeString(string(q.SIGKILL))}, 136 "SIGTERM": {reflect.TypeOf(q.SIGTERM), constant.MakeString(string(q.SIGTERM))}, 137 }, 138 UntypedConsts: map[string]gossa.UntypedConst{ 139 "DMAPPEND": {"untyped int", constant.MakeInt64(int64(q.DMAPPEND))}, 140 "DMAUTH": {"untyped int", constant.MakeInt64(int64(q.DMAUTH))}, 141 "DMDIR": {"untyped int", constant.MakeInt64(int64(q.DMDIR))}, 142 "DMEXCL": {"untyped int", constant.MakeInt64(int64(q.DMEXCL))}, 143 "DMEXEC": {"untyped int", constant.MakeInt64(int64(q.DMEXEC))}, 144 "DMMOUNT": {"untyped int", constant.MakeInt64(int64(q.DMMOUNT))}, 145 "DMREAD": {"untyped int", constant.MakeInt64(int64(q.DMREAD))}, 146 "DMTMP": {"untyped int", constant.MakeInt64(int64(q.DMTMP))}, 147 "DMWRITE": {"untyped int", constant.MakeInt64(int64(q.DMWRITE))}, 148 "ERRMAX": {"untyped int", constant.MakeInt64(int64(q.ERRMAX))}, 149 "ImplementsGetwd": {"untyped bool", constant.MakeBool(bool(q.ImplementsGetwd))}, 150 "MAFTER": {"untyped int", constant.MakeInt64(int64(q.MAFTER))}, 151 "MBEFORE": {"untyped int", constant.MakeInt64(int64(q.MBEFORE))}, 152 "MCACHE": {"untyped int", constant.MakeInt64(int64(q.MCACHE))}, 153 "MCREATE": {"untyped int", constant.MakeInt64(int64(q.MCREATE))}, 154 "MMASK": {"untyped int", constant.MakeInt64(int64(q.MMASK))}, 155 "MORDER": {"untyped int", constant.MakeInt64(int64(q.MORDER))}, 156 "MREPL": {"untyped int", constant.MakeInt64(int64(q.MREPL))}, 157 "O_APPEND": {"untyped int", constant.MakeInt64(int64(q.O_APPEND))}, 158 "O_ASYNC": {"untyped int", constant.MakeInt64(int64(q.O_ASYNC))}, 159 "O_CLOEXEC": {"untyped int", constant.MakeInt64(int64(q.O_CLOEXEC))}, 160 "O_CREAT": {"untyped int", constant.MakeInt64(int64(q.O_CREAT))}, 161 "O_EXCL": {"untyped int", constant.MakeInt64(int64(q.O_EXCL))}, 162 "O_NOCTTY": {"untyped int", constant.MakeInt64(int64(q.O_NOCTTY))}, 163 "O_NONBLOCK": {"untyped int", constant.MakeInt64(int64(q.O_NONBLOCK))}, 164 "O_RDONLY": {"untyped int", constant.MakeInt64(int64(q.O_RDONLY))}, 165 "O_RDWR": {"untyped int", constant.MakeInt64(int64(q.O_RDWR))}, 166 "O_SYNC": {"untyped int", constant.MakeInt64(int64(q.O_SYNC))}, 167 "O_TRUNC": {"untyped int", constant.MakeInt64(int64(q.O_TRUNC))}, 168 "O_WRONLY": {"untyped int", constant.MakeInt64(int64(q.O_WRONLY))}, 169 "QTAPPEND": {"untyped int", constant.MakeInt64(int64(q.QTAPPEND))}, 170 "QTAUTH": {"untyped int", constant.MakeInt64(int64(q.QTAUTH))}, 171 "QTDIR": {"untyped int", constant.MakeInt64(int64(q.QTDIR))}, 172 "QTEXCL": {"untyped int", constant.MakeInt64(int64(q.QTEXCL))}, 173 "QTFILE": {"untyped int", constant.MakeInt64(int64(q.QTFILE))}, 174 "QTMOUNT": {"untyped int", constant.MakeInt64(int64(q.QTMOUNT))}, 175 "QTTMP": {"untyped int", constant.MakeInt64(int64(q.QTTMP))}, 176 "RFCENVG": {"untyped int", constant.MakeInt64(int64(q.RFCENVG))}, 177 "RFCFDG": {"untyped int", constant.MakeInt64(int64(q.RFCFDG))}, 178 "RFCNAMEG": {"untyped int", constant.MakeInt64(int64(q.RFCNAMEG))}, 179 "RFENVG": {"untyped int", constant.MakeInt64(int64(q.RFENVG))}, 180 "RFFDG": {"untyped int", constant.MakeInt64(int64(q.RFFDG))}, 181 "RFMEM": {"untyped int", constant.MakeInt64(int64(q.RFMEM))}, 182 "RFNAMEG": {"untyped int", constant.MakeInt64(int64(q.RFNAMEG))}, 183 "RFNOMNT": {"untyped int", constant.MakeInt64(int64(q.RFNOMNT))}, 184 "RFNOTEG": {"untyped int", constant.MakeInt64(int64(q.RFNOTEG))}, 185 "RFNOWAIT": {"untyped int", constant.MakeInt64(int64(q.RFNOWAIT))}, 186 "RFPROC": {"untyped int", constant.MakeInt64(int64(q.RFPROC))}, 187 "RFREND": {"untyped int", constant.MakeInt64(int64(q.RFREND))}, 188 "STATFIXLEN": {"untyped int", constant.MakeInt64(int64(q.STATFIXLEN))}, 189 "STATMAX": {"untyped int", constant.MakeInt64(int64(q.STATMAX))}, 190 "SYS_ALARM": {"untyped int", constant.MakeInt64(int64(q.SYS_ALARM))}, 191 "SYS_AWAIT": {"untyped int", constant.MakeInt64(int64(q.SYS_AWAIT))}, 192 "SYS_BIND": {"untyped int", constant.MakeInt64(int64(q.SYS_BIND))}, 193 "SYS_BRK_": {"untyped int", constant.MakeInt64(int64(q.SYS_BRK_))}, 194 "SYS_CHDIR": {"untyped int", constant.MakeInt64(int64(q.SYS_CHDIR))}, 195 "SYS_CLOSE": {"untyped int", constant.MakeInt64(int64(q.SYS_CLOSE))}, 196 "SYS_CREATE": {"untyped int", constant.MakeInt64(int64(q.SYS_CREATE))}, 197 "SYS_DUP": {"untyped int", constant.MakeInt64(int64(q.SYS_DUP))}, 198 "SYS_ERRSTR": {"untyped int", constant.MakeInt64(int64(q.SYS_ERRSTR))}, 199 "SYS_EXEC": {"untyped int", constant.MakeInt64(int64(q.SYS_EXEC))}, 200 "SYS_EXITS": {"untyped int", constant.MakeInt64(int64(q.SYS_EXITS))}, 201 "SYS_FAUTH": {"untyped int", constant.MakeInt64(int64(q.SYS_FAUTH))}, 202 "SYS_FD2PATH": {"untyped int", constant.MakeInt64(int64(q.SYS_FD2PATH))}, 203 "SYS_FSTAT": {"untyped int", constant.MakeInt64(int64(q.SYS_FSTAT))}, 204 "SYS_FVERSION": {"untyped int", constant.MakeInt64(int64(q.SYS_FVERSION))}, 205 "SYS_FWSTAT": {"untyped int", constant.MakeInt64(int64(q.SYS_FWSTAT))}, 206 "SYS_MOUNT": {"untyped int", constant.MakeInt64(int64(q.SYS_MOUNT))}, 207 "SYS_NOTED": {"untyped int", constant.MakeInt64(int64(q.SYS_NOTED))}, 208 "SYS_NOTIFY": {"untyped int", constant.MakeInt64(int64(q.SYS_NOTIFY))}, 209 "SYS_NSEC": {"untyped int", constant.MakeInt64(int64(q.SYS_NSEC))}, 210 "SYS_OPEN": {"untyped int", constant.MakeInt64(int64(q.SYS_OPEN))}, 211 "SYS_OSEEK": {"untyped int", constant.MakeInt64(int64(q.SYS_OSEEK))}, 212 "SYS_PIPE": {"untyped int", constant.MakeInt64(int64(q.SYS_PIPE))}, 213 "SYS_PREAD": {"untyped int", constant.MakeInt64(int64(q.SYS_PREAD))}, 214 "SYS_PWRITE": {"untyped int", constant.MakeInt64(int64(q.SYS_PWRITE))}, 215 "SYS_REMOVE": {"untyped int", constant.MakeInt64(int64(q.SYS_REMOVE))}, 216 "SYS_RENDEZVOUS": {"untyped int", constant.MakeInt64(int64(q.SYS_RENDEZVOUS))}, 217 "SYS_RFORK": {"untyped int", constant.MakeInt64(int64(q.SYS_RFORK))}, 218 "SYS_SEEK": {"untyped int", constant.MakeInt64(int64(q.SYS_SEEK))}, 219 "SYS_SEGATTACH": {"untyped int", constant.MakeInt64(int64(q.SYS_SEGATTACH))}, 220 "SYS_SEGBRK": {"untyped int", constant.MakeInt64(int64(q.SYS_SEGBRK))}, 221 "SYS_SEGDETACH": {"untyped int", constant.MakeInt64(int64(q.SYS_SEGDETACH))}, 222 "SYS_SEGFLUSH": {"untyped int", constant.MakeInt64(int64(q.SYS_SEGFLUSH))}, 223 "SYS_SEGFREE": {"untyped int", constant.MakeInt64(int64(q.SYS_SEGFREE))}, 224 "SYS_SEMACQUIRE": {"untyped int", constant.MakeInt64(int64(q.SYS_SEMACQUIRE))}, 225 "SYS_SEMRELEASE": {"untyped int", constant.MakeInt64(int64(q.SYS_SEMRELEASE))}, 226 "SYS_SLEEP": {"untyped int", constant.MakeInt64(int64(q.SYS_SLEEP))}, 227 "SYS_STAT": {"untyped int", constant.MakeInt64(int64(q.SYS_STAT))}, 228 "SYS_SYSR1": {"untyped int", constant.MakeInt64(int64(q.SYS_SYSR1))}, 229 "SYS_TSEMACQUIRE": {"untyped int", constant.MakeInt64(int64(q.SYS_TSEMACQUIRE))}, 230 "SYS_UNMOUNT": {"untyped int", constant.MakeInt64(int64(q.SYS_UNMOUNT))}, 231 "SYS_WSTAT": {"untyped int", constant.MakeInt64(int64(q.SYS_WSTAT))}, 232 "S_IFBLK": {"untyped int", constant.MakeInt64(int64(q.S_IFBLK))}, 233 "S_IFCHR": {"untyped int", constant.MakeInt64(int64(q.S_IFCHR))}, 234 "S_IFDIR": {"untyped int", constant.MakeInt64(int64(q.S_IFDIR))}, 235 "S_IFIFO": {"untyped int", constant.MakeInt64(int64(q.S_IFIFO))}, 236 "S_IFLNK": {"untyped int", constant.MakeInt64(int64(q.S_IFLNK))}, 237 "S_IFMT": {"untyped int", constant.MakeInt64(int64(q.S_IFMT))}, 238 "S_IFREG": {"untyped int", constant.MakeInt64(int64(q.S_IFREG))}, 239 "S_IFSOCK": {"untyped int", constant.MakeInt64(int64(q.S_IFSOCK))}, 240 }, 241 }) 242 }