github.com/goplus/igop@v0.25.0/pkg/os/go118_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.18 && !go1.19 4 // +build go1.18,!go1.19 5 6 package os 7 8 import ( 9 q "os" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "os", 20 Path: "os", 21 Deps: map[string]string{ 22 "errors": "errors", 23 "internal/itoa": "itoa", 24 "internal/oserror": "oserror", 25 "internal/poll": "poll", 26 "internal/syscall/execenv": "execenv", 27 "internal/syscall/unix": "unix", 28 "internal/testlog": "testlog", 29 "internal/unsafeheader": "unsafeheader", 30 "io": "io", 31 "io/fs": "fs", 32 "runtime": "runtime", 33 "sort": "sort", 34 "sync": "sync", 35 "sync/atomic": "atomic", 36 "syscall": "syscall", 37 "time": "time", 38 "unsafe": "unsafe", 39 }, 40 Interfaces: map[string]reflect.Type{ 41 "Signal": reflect.TypeOf((*q.Signal)(nil)).Elem(), 42 }, 43 NamedTypes: map[string]reflect.Type{ 44 "File": reflect.TypeOf((*q.File)(nil)).Elem(), 45 "LinkError": reflect.TypeOf((*q.LinkError)(nil)).Elem(), 46 "ProcAttr": reflect.TypeOf((*q.ProcAttr)(nil)).Elem(), 47 "Process": reflect.TypeOf((*q.Process)(nil)).Elem(), 48 "ProcessState": reflect.TypeOf((*q.ProcessState)(nil)).Elem(), 49 "SyscallError": reflect.TypeOf((*q.SyscallError)(nil)).Elem(), 50 }, 51 AliasTypes: map[string]reflect.Type{ 52 "DirEntry": reflect.TypeOf((*q.DirEntry)(nil)).Elem(), 53 "FileInfo": reflect.TypeOf((*q.FileInfo)(nil)).Elem(), 54 "FileMode": reflect.TypeOf((*q.FileMode)(nil)).Elem(), 55 "PathError": reflect.TypeOf((*q.PathError)(nil)).Elem(), 56 }, 57 Vars: map[string]reflect.Value{ 58 "Args": reflect.ValueOf(&q.Args), 59 "ErrClosed": reflect.ValueOf(&q.ErrClosed), 60 "ErrDeadlineExceeded": reflect.ValueOf(&q.ErrDeadlineExceeded), 61 "ErrExist": reflect.ValueOf(&q.ErrExist), 62 "ErrInvalid": reflect.ValueOf(&q.ErrInvalid), 63 "ErrNoDeadline": reflect.ValueOf(&q.ErrNoDeadline), 64 "ErrNotExist": reflect.ValueOf(&q.ErrNotExist), 65 "ErrPermission": reflect.ValueOf(&q.ErrPermission), 66 "ErrProcessDone": reflect.ValueOf(&q.ErrProcessDone), 67 "Interrupt": reflect.ValueOf(&q.Interrupt), 68 "Kill": reflect.ValueOf(&q.Kill), 69 "Stderr": reflect.ValueOf(&q.Stderr), 70 "Stdin": reflect.ValueOf(&q.Stdin), 71 "Stdout": reflect.ValueOf(&q.Stdout), 72 }, 73 Funcs: map[string]reflect.Value{ 74 "Chdir": reflect.ValueOf(q.Chdir), 75 "Chmod": reflect.ValueOf(q.Chmod), 76 "Chown": reflect.ValueOf(q.Chown), 77 "Chtimes": reflect.ValueOf(q.Chtimes), 78 "Clearenv": reflect.ValueOf(q.Clearenv), 79 "Create": reflect.ValueOf(q.Create), 80 "CreateTemp": reflect.ValueOf(q.CreateTemp), 81 "DirFS": reflect.ValueOf(q.DirFS), 82 "Environ": reflect.ValueOf(q.Environ), 83 "Executable": reflect.ValueOf(q.Executable), 84 "Exit": reflect.ValueOf(q.Exit), 85 "Expand": reflect.ValueOf(q.Expand), 86 "ExpandEnv": reflect.ValueOf(q.ExpandEnv), 87 "FindProcess": reflect.ValueOf(q.FindProcess), 88 "Getegid": reflect.ValueOf(q.Getegid), 89 "Getenv": reflect.ValueOf(q.Getenv), 90 "Geteuid": reflect.ValueOf(q.Geteuid), 91 "Getgid": reflect.ValueOf(q.Getgid), 92 "Getgroups": reflect.ValueOf(q.Getgroups), 93 "Getpagesize": reflect.ValueOf(q.Getpagesize), 94 "Getpid": reflect.ValueOf(q.Getpid), 95 "Getppid": reflect.ValueOf(q.Getppid), 96 "Getuid": reflect.ValueOf(q.Getuid), 97 "Getwd": reflect.ValueOf(q.Getwd), 98 "Hostname": reflect.ValueOf(q.Hostname), 99 "IsExist": reflect.ValueOf(q.IsExist), 100 "IsNotExist": reflect.ValueOf(q.IsNotExist), 101 "IsPathSeparator": reflect.ValueOf(q.IsPathSeparator), 102 "IsPermission": reflect.ValueOf(q.IsPermission), 103 "IsTimeout": reflect.ValueOf(q.IsTimeout), 104 "Lchown": reflect.ValueOf(q.Lchown), 105 "Link": reflect.ValueOf(q.Link), 106 "LookupEnv": reflect.ValueOf(q.LookupEnv), 107 "Lstat": reflect.ValueOf(q.Lstat), 108 "Mkdir": reflect.ValueOf(q.Mkdir), 109 "MkdirAll": reflect.ValueOf(q.MkdirAll), 110 "MkdirTemp": reflect.ValueOf(q.MkdirTemp), 111 "NewFile": reflect.ValueOf(q.NewFile), 112 "NewSyscallError": reflect.ValueOf(q.NewSyscallError), 113 "Open": reflect.ValueOf(q.Open), 114 "OpenFile": reflect.ValueOf(q.OpenFile), 115 "Pipe": reflect.ValueOf(q.Pipe), 116 "ReadDir": reflect.ValueOf(q.ReadDir), 117 "ReadFile": reflect.ValueOf(q.ReadFile), 118 "Readlink": reflect.ValueOf(q.Readlink), 119 "Remove": reflect.ValueOf(q.Remove), 120 "RemoveAll": reflect.ValueOf(q.RemoveAll), 121 "Rename": reflect.ValueOf(q.Rename), 122 "SameFile": reflect.ValueOf(q.SameFile), 123 "Setenv": reflect.ValueOf(q.Setenv), 124 "StartProcess": reflect.ValueOf(q.StartProcess), 125 "Stat": reflect.ValueOf(q.Stat), 126 "Symlink": reflect.ValueOf(q.Symlink), 127 "TempDir": reflect.ValueOf(q.TempDir), 128 "Truncate": reflect.ValueOf(q.Truncate), 129 "Unsetenv": reflect.ValueOf(q.Unsetenv), 130 "UserCacheDir": reflect.ValueOf(q.UserCacheDir), 131 "UserConfigDir": reflect.ValueOf(q.UserConfigDir), 132 "UserHomeDir": reflect.ValueOf(q.UserHomeDir), 133 "WriteFile": reflect.ValueOf(q.WriteFile), 134 }, 135 TypedConsts: map[string]igop.TypedConst{ 136 "ModeAppend": {reflect.TypeOf(q.ModeAppend), constant.MakeInt64(int64(q.ModeAppend))}, 137 "ModeCharDevice": {reflect.TypeOf(q.ModeCharDevice), constant.MakeInt64(int64(q.ModeCharDevice))}, 138 "ModeDevice": {reflect.TypeOf(q.ModeDevice), constant.MakeInt64(int64(q.ModeDevice))}, 139 "ModeDir": {reflect.TypeOf(q.ModeDir), constant.MakeInt64(int64(q.ModeDir))}, 140 "ModeExclusive": {reflect.TypeOf(q.ModeExclusive), constant.MakeInt64(int64(q.ModeExclusive))}, 141 "ModeIrregular": {reflect.TypeOf(q.ModeIrregular), constant.MakeInt64(int64(q.ModeIrregular))}, 142 "ModeNamedPipe": {reflect.TypeOf(q.ModeNamedPipe), constant.MakeInt64(int64(q.ModeNamedPipe))}, 143 "ModePerm": {reflect.TypeOf(q.ModePerm), constant.MakeInt64(int64(q.ModePerm))}, 144 "ModeSetgid": {reflect.TypeOf(q.ModeSetgid), constant.MakeInt64(int64(q.ModeSetgid))}, 145 "ModeSetuid": {reflect.TypeOf(q.ModeSetuid), constant.MakeInt64(int64(q.ModeSetuid))}, 146 "ModeSocket": {reflect.TypeOf(q.ModeSocket), constant.MakeInt64(int64(q.ModeSocket))}, 147 "ModeSticky": {reflect.TypeOf(q.ModeSticky), constant.MakeInt64(int64(q.ModeSticky))}, 148 "ModeSymlink": {reflect.TypeOf(q.ModeSymlink), constant.MakeInt64(int64(q.ModeSymlink))}, 149 "ModeTemporary": {reflect.TypeOf(q.ModeTemporary), constant.MakeInt64(int64(q.ModeTemporary))}, 150 "ModeType": {reflect.TypeOf(q.ModeType), constant.MakeInt64(int64(q.ModeType))}, 151 "O_APPEND": {reflect.TypeOf(q.O_APPEND), constant.MakeInt64(int64(q.O_APPEND))}, 152 "O_CREATE": {reflect.TypeOf(q.O_CREATE), constant.MakeInt64(int64(q.O_CREATE))}, 153 "O_EXCL": {reflect.TypeOf(q.O_EXCL), constant.MakeInt64(int64(q.O_EXCL))}, 154 "O_RDONLY": {reflect.TypeOf(q.O_RDONLY), constant.MakeInt64(int64(q.O_RDONLY))}, 155 "O_RDWR": {reflect.TypeOf(q.O_RDWR), constant.MakeInt64(int64(q.O_RDWR))}, 156 "O_SYNC": {reflect.TypeOf(q.O_SYNC), constant.MakeInt64(int64(q.O_SYNC))}, 157 "O_TRUNC": {reflect.TypeOf(q.O_TRUNC), constant.MakeInt64(int64(q.O_TRUNC))}, 158 "O_WRONLY": {reflect.TypeOf(q.O_WRONLY), constant.MakeInt64(int64(q.O_WRONLY))}, 159 "SEEK_CUR": {reflect.TypeOf(q.SEEK_CUR), constant.MakeInt64(int64(q.SEEK_CUR))}, 160 "SEEK_END": {reflect.TypeOf(q.SEEK_END), constant.MakeInt64(int64(q.SEEK_END))}, 161 "SEEK_SET": {reflect.TypeOf(q.SEEK_SET), constant.MakeInt64(int64(q.SEEK_SET))}, 162 }, 163 UntypedConsts: map[string]igop.UntypedConst{ 164 "DevNull": {"untyped string", constant.MakeString(string(q.DevNull))}, 165 "PathListSeparator": {"untyped rune", constant.MakeInt64(int64(q.PathListSeparator))}, 166 "PathSeparator": {"untyped rune", constant.MakeInt64(int64(q.PathSeparator))}, 167 }, 168 }) 169 }