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