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