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