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