github.com/goplus/gossa@v0.3.25/pkg/os/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package os 6 7 import ( 8 q "os" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.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]gossa.NamedType{ 40 "File": {reflect.TypeOf((*q.File)(nil)).Elem(), "", "Chdir,Chmod,Chown,Close,Fd,Name,Read,ReadAt,ReadFrom,Readdir,Readdirnames,Seek,SetDeadline,SetReadDeadline,SetWriteDeadline,Stat,Sync,SyscallConn,Truncate,Write,WriteAt,WriteString,checkValid,chmod,pread,pwrite,read,readFrom,readdir,readdirnames,seek,setDeadline,setReadDeadline,setWriteDeadline,wrapErr,write"}, 41 "FileMode": {reflect.TypeOf((*q.FileMode)(nil)).Elem(), "IsDir,IsRegular,Perm,String", ""}, 42 "LinkError": {reflect.TypeOf((*q.LinkError)(nil)).Elem(), "", "Error,Unwrap"}, 43 "PathError": {reflect.TypeOf((*q.PathError)(nil)).Elem(), "", "Error,Timeout,Unwrap"}, 44 "ProcAttr": {reflect.TypeOf((*q.ProcAttr)(nil)).Elem(), "", ""}, 45 "Process": {reflect.TypeOf((*q.Process)(nil)).Elem(), "", "Kill,Release,Signal,Wait,blockUntilWaitable,done,kill,release,setDone,signal,wait"}, 46 "ProcessState": {reflect.TypeOf((*q.ProcessState)(nil)).Elem(), "", "ExitCode,Exited,Pid,String,Success,Sys,SysUsage,SystemTime,UserTime,exited,success,sys,sysUsage,systemTime,userTime"}, 47 "SyscallError": {reflect.TypeOf((*q.SyscallError)(nil)).Elem(), "", "Error,Timeout,Unwrap"}, 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 "ErrDeadlineExceeded": reflect.ValueOf(&q.ErrDeadlineExceeded), 54 "ErrExist": reflect.ValueOf(&q.ErrExist), 55 "ErrInvalid": reflect.ValueOf(&q.ErrInvalid), 56 "ErrNoDeadline": reflect.ValueOf(&q.ErrNoDeadline), 57 "ErrNotExist": reflect.ValueOf(&q.ErrNotExist), 58 "ErrPermission": reflect.ValueOf(&q.ErrPermission), 59 "Interrupt": reflect.ValueOf(&q.Interrupt), 60 "Kill": reflect.ValueOf(&q.Kill), 61 "Stderr": reflect.ValueOf(&q.Stderr), 62 "Stdin": reflect.ValueOf(&q.Stdin), 63 "Stdout": reflect.ValueOf(&q.Stdout), 64 }, 65 Funcs: map[string]reflect.Value{ 66 "Chdir": reflect.ValueOf(q.Chdir), 67 "Chmod": reflect.ValueOf(q.Chmod), 68 "Chown": reflect.ValueOf(q.Chown), 69 "Chtimes": reflect.ValueOf(q.Chtimes), 70 "Clearenv": reflect.ValueOf(q.Clearenv), 71 "Create": reflect.ValueOf(q.Create), 72 "Environ": reflect.ValueOf(q.Environ), 73 "Executable": reflect.ValueOf(q.Executable), 74 "Exit": reflect.ValueOf(q.Exit), 75 "Expand": reflect.ValueOf(q.Expand), 76 "ExpandEnv": reflect.ValueOf(q.ExpandEnv), 77 "FindProcess": reflect.ValueOf(q.FindProcess), 78 "Getegid": reflect.ValueOf(q.Getegid), 79 "Getenv": reflect.ValueOf(q.Getenv), 80 "Geteuid": reflect.ValueOf(q.Geteuid), 81 "Getgid": reflect.ValueOf(q.Getgid), 82 "Getgroups": reflect.ValueOf(q.Getgroups), 83 "Getpagesize": reflect.ValueOf(q.Getpagesize), 84 "Getpid": reflect.ValueOf(q.Getpid), 85 "Getppid": reflect.ValueOf(q.Getppid), 86 "Getuid": reflect.ValueOf(q.Getuid), 87 "Getwd": reflect.ValueOf(q.Getwd), 88 "Hostname": reflect.ValueOf(q.Hostname), 89 "IsExist": reflect.ValueOf(q.IsExist), 90 "IsNotExist": reflect.ValueOf(q.IsNotExist), 91 "IsPathSeparator": reflect.ValueOf(q.IsPathSeparator), 92 "IsPermission": reflect.ValueOf(q.IsPermission), 93 "IsTimeout": reflect.ValueOf(q.IsTimeout), 94 "Lchown": reflect.ValueOf(q.Lchown), 95 "Link": reflect.ValueOf(q.Link), 96 "LookupEnv": reflect.ValueOf(q.LookupEnv), 97 "Lstat": reflect.ValueOf(q.Lstat), 98 "Mkdir": reflect.ValueOf(q.Mkdir), 99 "MkdirAll": reflect.ValueOf(q.MkdirAll), 100 "NewFile": reflect.ValueOf(q.NewFile), 101 "NewSyscallError": reflect.ValueOf(q.NewSyscallError), 102 "Open": reflect.ValueOf(q.Open), 103 "OpenFile": reflect.ValueOf(q.OpenFile), 104 "Pipe": reflect.ValueOf(q.Pipe), 105 "Readlink": reflect.ValueOf(q.Readlink), 106 "Remove": reflect.ValueOf(q.Remove), 107 "RemoveAll": reflect.ValueOf(q.RemoveAll), 108 "Rename": reflect.ValueOf(q.Rename), 109 "SameFile": reflect.ValueOf(q.SameFile), 110 "Setenv": reflect.ValueOf(q.Setenv), 111 "StartProcess": reflect.ValueOf(q.StartProcess), 112 "Stat": reflect.ValueOf(q.Stat), 113 "Symlink": reflect.ValueOf(q.Symlink), 114 "TempDir": reflect.ValueOf(q.TempDir), 115 "Truncate": reflect.ValueOf(q.Truncate), 116 "Unsetenv": reflect.ValueOf(q.Unsetenv), 117 "UserCacheDir": reflect.ValueOf(q.UserCacheDir), 118 "UserConfigDir": reflect.ValueOf(q.UserConfigDir), 119 "UserHomeDir": reflect.ValueOf(q.UserHomeDir), 120 }, 121 TypedConsts: map[string]gossa.TypedConst{ 122 "ModeAppend": {reflect.TypeOf(q.ModeAppend), constant.MakeInt64(int64(q.ModeAppend))}, 123 "ModeCharDevice": {reflect.TypeOf(q.ModeCharDevice), constant.MakeInt64(int64(q.ModeCharDevice))}, 124 "ModeDevice": {reflect.TypeOf(q.ModeDevice), constant.MakeInt64(int64(q.ModeDevice))}, 125 "ModeDir": {reflect.TypeOf(q.ModeDir), constant.MakeInt64(int64(q.ModeDir))}, 126 "ModeExclusive": {reflect.TypeOf(q.ModeExclusive), constant.MakeInt64(int64(q.ModeExclusive))}, 127 "ModeIrregular": {reflect.TypeOf(q.ModeIrregular), constant.MakeInt64(int64(q.ModeIrregular))}, 128 "ModeNamedPipe": {reflect.TypeOf(q.ModeNamedPipe), constant.MakeInt64(int64(q.ModeNamedPipe))}, 129 "ModePerm": {reflect.TypeOf(q.ModePerm), constant.MakeInt64(int64(q.ModePerm))}, 130 "ModeSetgid": {reflect.TypeOf(q.ModeSetgid), constant.MakeInt64(int64(q.ModeSetgid))}, 131 "ModeSetuid": {reflect.TypeOf(q.ModeSetuid), constant.MakeInt64(int64(q.ModeSetuid))}, 132 "ModeSocket": {reflect.TypeOf(q.ModeSocket), constant.MakeInt64(int64(q.ModeSocket))}, 133 "ModeSticky": {reflect.TypeOf(q.ModeSticky), constant.MakeInt64(int64(q.ModeSticky))}, 134 "ModeSymlink": {reflect.TypeOf(q.ModeSymlink), constant.MakeInt64(int64(q.ModeSymlink))}, 135 "ModeTemporary": {reflect.TypeOf(q.ModeTemporary), constant.MakeInt64(int64(q.ModeTemporary))}, 136 "ModeType": {reflect.TypeOf(q.ModeType), constant.MakeInt64(int64(q.ModeType))}, 137 "O_APPEND": {reflect.TypeOf(q.O_APPEND), constant.MakeInt64(int64(q.O_APPEND))}, 138 "O_CREATE": {reflect.TypeOf(q.O_CREATE), constant.MakeInt64(int64(q.O_CREATE))}, 139 "O_EXCL": {reflect.TypeOf(q.O_EXCL), constant.MakeInt64(int64(q.O_EXCL))}, 140 "O_RDONLY": {reflect.TypeOf(q.O_RDONLY), constant.MakeInt64(int64(q.O_RDONLY))}, 141 "O_RDWR": {reflect.TypeOf(q.O_RDWR), constant.MakeInt64(int64(q.O_RDWR))}, 142 "O_SYNC": {reflect.TypeOf(q.O_SYNC), constant.MakeInt64(int64(q.O_SYNC))}, 143 "O_TRUNC": {reflect.TypeOf(q.O_TRUNC), constant.MakeInt64(int64(q.O_TRUNC))}, 144 "O_WRONLY": {reflect.TypeOf(q.O_WRONLY), constant.MakeInt64(int64(q.O_WRONLY))}, 145 "SEEK_CUR": {reflect.TypeOf(q.SEEK_CUR), constant.MakeInt64(int64(q.SEEK_CUR))}, 146 "SEEK_END": {reflect.TypeOf(q.SEEK_END), constant.MakeInt64(int64(q.SEEK_END))}, 147 "SEEK_SET": {reflect.TypeOf(q.SEEK_SET), constant.MakeInt64(int64(q.SEEK_SET))}, 148 }, 149 UntypedConsts: map[string]gossa.UntypedConst{ 150 "DevNull": {"untyped string", constant.MakeString(string(q.DevNull))}, 151 "PathListSeparator": {"untyped rune", constant.MakeInt64(int64(q.PathListSeparator))}, 152 "PathSeparator": {"untyped rune", constant.MakeInt64(int64(q.PathSeparator))}, 153 }, 154 }) 155 }