github.com/goplus/igop@v0.25.0/pkg/syscall/go114_export_plan9_arm.go (about)

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