github.com/goplus/gossa@v0.3.25/pkg/syscall/go115_export_plan9_amd64.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     4  
     5  package syscall
     6  
     7  import (
     8  	q "syscall"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "syscall",
    19  		Path: "syscall",
    20  		Deps: map[string]string{
    21  			"errors":           "errors",
    22  			"internal/oserror": "oserror",
    23  			"runtime":          "runtime",
    24  			"sync":             "sync",
    25  			"unsafe":           "unsafe",
    26  		},
    27  		Interfaces: map[string]reflect.Type{
    28  			"Conn":    reflect.TypeOf((*q.Conn)(nil)).Elem(),
    29  			"RawConn": reflect.TypeOf((*q.RawConn)(nil)).Elem(),
    30  		},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"Dir":         {reflect.TypeOf((*q.Dir)(nil)).Elem(), "", "Marshal,Null"},
    33  			"ErrorString": {reflect.TypeOf((*q.ErrorString)(nil)).Elem(), "Error,Is,Temporary,Timeout", ""},
    34  			"Note":        {reflect.TypeOf((*q.Note)(nil)).Elem(), "Signal,String", ""},
    35  			"ProcAttr":    {reflect.TypeOf((*q.ProcAttr)(nil)).Elem(), "", ""},
    36  			"Qid":         {reflect.TypeOf((*q.Qid)(nil)).Elem(), "", ""},
    37  			"SysProcAttr": {reflect.TypeOf((*q.SysProcAttr)(nil)).Elem(), "", ""},
    38  			"Timespec":    {reflect.TypeOf((*q.Timespec)(nil)).Elem(), "", "Nano,Unix"},
    39  			"Timeval":     {reflect.TypeOf((*q.Timeval)(nil)).Elem(), "", "Nano,Unix"},
    40  			"Waitmsg":     {reflect.TypeOf((*q.Waitmsg)(nil)).Elem(), "ExitStatus,Exited,Signaled", ""},
    41  		},
    42  		AliasTypes: map[string]reflect.Type{},
    43  		Vars: map[string]reflect.Value{
    44  			"EACCES":            reflect.ValueOf(&q.EACCES),
    45  			"EAFNOSUPPORT":      reflect.ValueOf(&q.EAFNOSUPPORT),
    46  			"EBUSY":             reflect.ValueOf(&q.EBUSY),
    47  			"EEXIST":            reflect.ValueOf(&q.EEXIST),
    48  			"EINTR":             reflect.ValueOf(&q.EINTR),
    49  			"EINVAL":            reflect.ValueOf(&q.EINVAL),
    50  			"EIO":               reflect.ValueOf(&q.EIO),
    51  			"EISDIR":            reflect.ValueOf(&q.EISDIR),
    52  			"EMFILE":            reflect.ValueOf(&q.EMFILE),
    53  			"ENAMETOOLONG":      reflect.ValueOf(&q.ENAMETOOLONG),
    54  			"ENOENT":            reflect.ValueOf(&q.ENOENT),
    55  			"ENOTDIR":           reflect.ValueOf(&q.ENOTDIR),
    56  			"EPERM":             reflect.ValueOf(&q.EPERM),
    57  			"EPLAN9":            reflect.ValueOf(&q.EPLAN9),
    58  			"ESPIPE":            reflect.ValueOf(&q.ESPIPE),
    59  			"ETIMEDOUT":         reflect.ValueOf(&q.ETIMEDOUT),
    60  			"ErrBadName":        reflect.ValueOf(&q.ErrBadName),
    61  			"ErrBadStat":        reflect.ValueOf(&q.ErrBadStat),
    62  			"ErrShortStat":      reflect.ValueOf(&q.ErrShortStat),
    63  			"ForkLock":          reflect.ValueOf(&q.ForkLock),
    64  			"SocketDisableIPv6": reflect.ValueOf(&q.SocketDisableIPv6),
    65  			"Stderr":            reflect.ValueOf(&q.Stderr),
    66  			"Stdin":             reflect.ValueOf(&q.Stdin),
    67  			"Stdout":            reflect.ValueOf(&q.Stdout),
    68  		},
    69  		Funcs: map[string]reflect.Value{
    70  			"Await":               reflect.ValueOf(q.Await),
    71  			"Bind":                reflect.ValueOf(q.Bind),
    72  			"BytePtrFromString":   reflect.ValueOf(q.BytePtrFromString),
    73  			"ByteSliceFromString": reflect.ValueOf(q.ByteSliceFromString),
    74  			"Chdir":               reflect.ValueOf(q.Chdir),
    75  			"Clearenv":            reflect.ValueOf(q.Clearenv),
    76  			"Close":               reflect.ValueOf(q.Close),
    77  			"Create":              reflect.ValueOf(q.Create),
    78  			"Dup":                 reflect.ValueOf(q.Dup),
    79  			"Environ":             reflect.ValueOf(q.Environ),
    80  			"Exec":                reflect.ValueOf(q.Exec),
    81  			"Exit":                reflect.ValueOf(q.Exit),
    82  			"Fchdir":              reflect.ValueOf(q.Fchdir),
    83  			"Fd2path":             reflect.ValueOf(q.Fd2path),
    84  			"Fixwd":               reflect.ValueOf(q.Fixwd),
    85  			"ForkExec":            reflect.ValueOf(q.ForkExec),
    86  			"Fstat":               reflect.ValueOf(q.Fstat),
    87  			"Fwstat":              reflect.ValueOf(q.Fwstat),
    88  			"Getegid":             reflect.ValueOf(q.Getegid),
    89  			"Getenv":              reflect.ValueOf(q.Getenv),
    90  			"Geteuid":             reflect.ValueOf(q.Geteuid),
    91  			"Getgid":              reflect.ValueOf(q.Getgid),
    92  			"Getgroups":           reflect.ValueOf(q.Getgroups),
    93  			"Getpagesize":         reflect.ValueOf(q.Getpagesize),
    94  			"Getpid":              reflect.ValueOf(q.Getpid),
    95  			"Getppid":             reflect.ValueOf(q.Getppid),
    96  			"Gettimeofday":        reflect.ValueOf(q.Gettimeofday),
    97  			"Getuid":              reflect.ValueOf(q.Getuid),
    98  			"Getwd":               reflect.ValueOf(q.Getwd),
    99  			"Mkdir":               reflect.ValueOf(q.Mkdir),
   100  			"Mount":               reflect.ValueOf(q.Mount),
   101  			"NewError":            reflect.ValueOf(q.NewError),
   102  			"NsecToTimeval":       reflect.ValueOf(q.NsecToTimeval),
   103  			"Open":                reflect.ValueOf(q.Open),
   104  			"Pipe":                reflect.ValueOf(q.Pipe),
   105  			"Pread":               reflect.ValueOf(q.Pread),
   106  			"Pwrite":              reflect.ValueOf(q.Pwrite),
   107  			"RawSyscall":          reflect.ValueOf(q.RawSyscall),
   108  			"RawSyscall6":         reflect.ValueOf(q.RawSyscall6),
   109  			"Read":                reflect.ValueOf(q.Read),
   110  			"Remove":              reflect.ValueOf(q.Remove),
   111  			"Seek":                reflect.ValueOf(q.Seek),
   112  			"Setenv":              reflect.ValueOf(q.Setenv),
   113  			"SlicePtrFromStrings": reflect.ValueOf(q.SlicePtrFromStrings),
   114  			"StartProcess":        reflect.ValueOf(q.StartProcess),
   115  			"Stat":                reflect.ValueOf(q.Stat),
   116  			"StringBytePtr":       reflect.ValueOf(q.StringBytePtr),
   117  			"StringByteSlice":     reflect.ValueOf(q.StringByteSlice),
   118  			"StringSlicePtr":      reflect.ValueOf(q.StringSlicePtr),
   119  			"Syscall":             reflect.ValueOf(q.Syscall),
   120  			"Syscall6":            reflect.ValueOf(q.Syscall6),
   121  			"UnmarshalDir":        reflect.ValueOf(q.UnmarshalDir),
   122  			"Unmount":             reflect.ValueOf(q.Unmount),
   123  			"Unsetenv":            reflect.ValueOf(q.Unsetenv),
   124  			"WaitProcess":         reflect.ValueOf(q.WaitProcess),
   125  			"Write":               reflect.ValueOf(q.Write),
   126  			"Wstat":               reflect.ValueOf(q.Wstat),
   127  		},
   128  		TypedConsts: map[string]gossa.TypedConst{
   129  			"SIGABRT": {reflect.TypeOf(q.SIGABRT), constant.MakeString(string(q.SIGABRT))},
   130  			"SIGALRM": {reflect.TypeOf(q.SIGALRM), constant.MakeString(string(q.SIGALRM))},
   131  			"SIGHUP":  {reflect.TypeOf(q.SIGHUP), constant.MakeString(string(q.SIGHUP))},
   132  			"SIGINT":  {reflect.TypeOf(q.SIGINT), constant.MakeString(string(q.SIGINT))},
   133  			"SIGKILL": {reflect.TypeOf(q.SIGKILL), constant.MakeString(string(q.SIGKILL))},
   134  			"SIGTERM": {reflect.TypeOf(q.SIGTERM), constant.MakeString(string(q.SIGTERM))},
   135  		},
   136  		UntypedConsts: map[string]gossa.UntypedConst{
   137  			"DMAPPEND":        {"untyped int", constant.MakeInt64(int64(q.DMAPPEND))},
   138  			"DMAUTH":          {"untyped int", constant.MakeInt64(int64(q.DMAUTH))},
   139  			"DMDIR":           {"untyped int", constant.MakeInt64(int64(q.DMDIR))},
   140  			"DMEXCL":          {"untyped int", constant.MakeInt64(int64(q.DMEXCL))},
   141  			"DMEXEC":          {"untyped int", constant.MakeInt64(int64(q.DMEXEC))},
   142  			"DMMOUNT":         {"untyped int", constant.MakeInt64(int64(q.DMMOUNT))},
   143  			"DMREAD":          {"untyped int", constant.MakeInt64(int64(q.DMREAD))},
   144  			"DMTMP":           {"untyped int", constant.MakeInt64(int64(q.DMTMP))},
   145  			"DMWRITE":         {"untyped int", constant.MakeInt64(int64(q.DMWRITE))},
   146  			"ERRMAX":          {"untyped int", constant.MakeInt64(int64(q.ERRMAX))},
   147  			"ImplementsGetwd": {"untyped bool", constant.MakeBool(bool(q.ImplementsGetwd))},
   148  			"MAFTER":          {"untyped int", constant.MakeInt64(int64(q.MAFTER))},
   149  			"MBEFORE":         {"untyped int", constant.MakeInt64(int64(q.MBEFORE))},
   150  			"MCACHE":          {"untyped int", constant.MakeInt64(int64(q.MCACHE))},
   151  			"MCREATE":         {"untyped int", constant.MakeInt64(int64(q.MCREATE))},
   152  			"MMASK":           {"untyped int", constant.MakeInt64(int64(q.MMASK))},
   153  			"MORDER":          {"untyped int", constant.MakeInt64(int64(q.MORDER))},
   154  			"MREPL":           {"untyped int", constant.MakeInt64(int64(q.MREPL))},
   155  			"O_APPEND":        {"untyped int", constant.MakeInt64(int64(q.O_APPEND))},
   156  			"O_ASYNC":         {"untyped int", constant.MakeInt64(int64(q.O_ASYNC))},
   157  			"O_CLOEXEC":       {"untyped int", constant.MakeInt64(int64(q.O_CLOEXEC))},
   158  			"O_CREAT":         {"untyped int", constant.MakeInt64(int64(q.O_CREAT))},
   159  			"O_EXCL":          {"untyped int", constant.MakeInt64(int64(q.O_EXCL))},
   160  			"O_NOCTTY":        {"untyped int", constant.MakeInt64(int64(q.O_NOCTTY))},
   161  			"O_NONBLOCK":      {"untyped int", constant.MakeInt64(int64(q.O_NONBLOCK))},
   162  			"O_RDONLY":        {"untyped int", constant.MakeInt64(int64(q.O_RDONLY))},
   163  			"O_RDWR":          {"untyped int", constant.MakeInt64(int64(q.O_RDWR))},
   164  			"O_SYNC":          {"untyped int", constant.MakeInt64(int64(q.O_SYNC))},
   165  			"O_TRUNC":         {"untyped int", constant.MakeInt64(int64(q.O_TRUNC))},
   166  			"O_WRONLY":        {"untyped int", constant.MakeInt64(int64(q.O_WRONLY))},
   167  			"QTAPPEND":        {"untyped int", constant.MakeInt64(int64(q.QTAPPEND))},
   168  			"QTAUTH":          {"untyped int", constant.MakeInt64(int64(q.QTAUTH))},
   169  			"QTDIR":           {"untyped int", constant.MakeInt64(int64(q.QTDIR))},
   170  			"QTEXCL":          {"untyped int", constant.MakeInt64(int64(q.QTEXCL))},
   171  			"QTFILE":          {"untyped int", constant.MakeInt64(int64(q.QTFILE))},
   172  			"QTMOUNT":         {"untyped int", constant.MakeInt64(int64(q.QTMOUNT))},
   173  			"QTTMP":           {"untyped int", constant.MakeInt64(int64(q.QTTMP))},
   174  			"RFCENVG":         {"untyped int", constant.MakeInt64(int64(q.RFCENVG))},
   175  			"RFCFDG":          {"untyped int", constant.MakeInt64(int64(q.RFCFDG))},
   176  			"RFCNAMEG":        {"untyped int", constant.MakeInt64(int64(q.RFCNAMEG))},
   177  			"RFENVG":          {"untyped int", constant.MakeInt64(int64(q.RFENVG))},
   178  			"RFFDG":           {"untyped int", constant.MakeInt64(int64(q.RFFDG))},
   179  			"RFMEM":           {"untyped int", constant.MakeInt64(int64(q.RFMEM))},
   180  			"RFNAMEG":         {"untyped int", constant.MakeInt64(int64(q.RFNAMEG))},
   181  			"RFNOMNT":         {"untyped int", constant.MakeInt64(int64(q.RFNOMNT))},
   182  			"RFNOTEG":         {"untyped int", constant.MakeInt64(int64(q.RFNOTEG))},
   183  			"RFNOWAIT":        {"untyped int", constant.MakeInt64(int64(q.RFNOWAIT))},
   184  			"RFPROC":          {"untyped int", constant.MakeInt64(int64(q.RFPROC))},
   185  			"RFREND":          {"untyped int", constant.MakeInt64(int64(q.RFREND))},
   186  			"STATFIXLEN":      {"untyped int", constant.MakeInt64(int64(q.STATFIXLEN))},
   187  			"STATMAX":         {"untyped int", constant.MakeInt64(int64(q.STATMAX))},
   188  			"SYS_ALARM":       {"untyped int", constant.MakeInt64(int64(q.SYS_ALARM))},
   189  			"SYS_AWAIT":       {"untyped int", constant.MakeInt64(int64(q.SYS_AWAIT))},
   190  			"SYS_BIND":        {"untyped int", constant.MakeInt64(int64(q.SYS_BIND))},
   191  			"SYS_BRK_":        {"untyped int", constant.MakeInt64(int64(q.SYS_BRK_))},
   192  			"SYS_CHDIR":       {"untyped int", constant.MakeInt64(int64(q.SYS_CHDIR))},
   193  			"SYS_CLOSE":       {"untyped int", constant.MakeInt64(int64(q.SYS_CLOSE))},
   194  			"SYS_CREATE":      {"untyped int", constant.MakeInt64(int64(q.SYS_CREATE))},
   195  			"SYS_DUP":         {"untyped int", constant.MakeInt64(int64(q.SYS_DUP))},
   196  			"SYS_ERRSTR":      {"untyped int", constant.MakeInt64(int64(q.SYS_ERRSTR))},
   197  			"SYS_EXEC":        {"untyped int", constant.MakeInt64(int64(q.SYS_EXEC))},
   198  			"SYS_EXITS":       {"untyped int", constant.MakeInt64(int64(q.SYS_EXITS))},
   199  			"SYS_FAUTH":       {"untyped int", constant.MakeInt64(int64(q.SYS_FAUTH))},
   200  			"SYS_FD2PATH":     {"untyped int", constant.MakeInt64(int64(q.SYS_FD2PATH))},
   201  			"SYS_FSTAT":       {"untyped int", constant.MakeInt64(int64(q.SYS_FSTAT))},
   202  			"SYS_FVERSION":    {"untyped int", constant.MakeInt64(int64(q.SYS_FVERSION))},
   203  			"SYS_FWSTAT":      {"untyped int", constant.MakeInt64(int64(q.SYS_FWSTAT))},
   204  			"SYS_MOUNT":       {"untyped int", constant.MakeInt64(int64(q.SYS_MOUNT))},
   205  			"SYS_NOTED":       {"untyped int", constant.MakeInt64(int64(q.SYS_NOTED))},
   206  			"SYS_NOTIFY":      {"untyped int", constant.MakeInt64(int64(q.SYS_NOTIFY))},
   207  			"SYS_NSEC":        {"untyped int", constant.MakeInt64(int64(q.SYS_NSEC))},
   208  			"SYS_OPEN":        {"untyped int", constant.MakeInt64(int64(q.SYS_OPEN))},
   209  			"SYS_OSEEK":       {"untyped int", constant.MakeInt64(int64(q.SYS_OSEEK))},
   210  			"SYS_PIPE":        {"untyped int", constant.MakeInt64(int64(q.SYS_PIPE))},
   211  			"SYS_PREAD":       {"untyped int", constant.MakeInt64(int64(q.SYS_PREAD))},
   212  			"SYS_PWRITE":      {"untyped int", constant.MakeInt64(int64(q.SYS_PWRITE))},
   213  			"SYS_REMOVE":      {"untyped int", constant.MakeInt64(int64(q.SYS_REMOVE))},
   214  			"SYS_RENDEZVOUS":  {"untyped int", constant.MakeInt64(int64(q.SYS_RENDEZVOUS))},
   215  			"SYS_RFORK":       {"untyped int", constant.MakeInt64(int64(q.SYS_RFORK))},
   216  			"SYS_SEEK":        {"untyped int", constant.MakeInt64(int64(q.SYS_SEEK))},
   217  			"SYS_SEGATTACH":   {"untyped int", constant.MakeInt64(int64(q.SYS_SEGATTACH))},
   218  			"SYS_SEGBRK":      {"untyped int", constant.MakeInt64(int64(q.SYS_SEGBRK))},
   219  			"SYS_SEGDETACH":   {"untyped int", constant.MakeInt64(int64(q.SYS_SEGDETACH))},
   220  			"SYS_SEGFLUSH":    {"untyped int", constant.MakeInt64(int64(q.SYS_SEGFLUSH))},
   221  			"SYS_SEGFREE":     {"untyped int", constant.MakeInt64(int64(q.SYS_SEGFREE))},
   222  			"SYS_SEMACQUIRE":  {"untyped int", constant.MakeInt64(int64(q.SYS_SEMACQUIRE))},
   223  			"SYS_SEMRELEASE":  {"untyped int", constant.MakeInt64(int64(q.SYS_SEMRELEASE))},
   224  			"SYS_SLEEP":       {"untyped int", constant.MakeInt64(int64(q.SYS_SLEEP))},
   225  			"SYS_STAT":        {"untyped int", constant.MakeInt64(int64(q.SYS_STAT))},
   226  			"SYS_SYSR1":       {"untyped int", constant.MakeInt64(int64(q.SYS_SYSR1))},
   227  			"SYS_TSEMACQUIRE": {"untyped int", constant.MakeInt64(int64(q.SYS_TSEMACQUIRE))},
   228  			"SYS_UNMOUNT":     {"untyped int", constant.MakeInt64(int64(q.SYS_UNMOUNT))},
   229  			"SYS_WSTAT":       {"untyped int", constant.MakeInt64(int64(q.SYS_WSTAT))},
   230  			"S_IFBLK":         {"untyped int", constant.MakeInt64(int64(q.S_IFBLK))},
   231  			"S_IFCHR":         {"untyped int", constant.MakeInt64(int64(q.S_IFCHR))},
   232  			"S_IFDIR":         {"untyped int", constant.MakeInt64(int64(q.S_IFDIR))},
   233  			"S_IFIFO":         {"untyped int", constant.MakeInt64(int64(q.S_IFIFO))},
   234  			"S_IFLNK":         {"untyped int", constant.MakeInt64(int64(q.S_IFLNK))},
   235  			"S_IFMT":          {"untyped int", constant.MakeInt64(int64(q.S_IFMT))},
   236  			"S_IFREG":         {"untyped int", constant.MakeInt64(int64(q.S_IFREG))},
   237  			"S_IFSOCK":        {"untyped int", constant.MakeInt64(int64(q.S_IFSOCK))},
   238  		},
   239  	})
   240  }