github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/defs_solaris.go (about) 1 // Copyright 2009 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build ignore 6 7 /* 8 Input to cgo. 9 10 GOARCH=amd64 go tool cgo -cdefs defs_solaris.go >defs_solaris_amd64.h 11 */ 12 13 package runtime 14 15 import "C" 16 17 const ( 18 EINTR = C.EINTR 19 EBADF = C.EBADF 20 EFAULT = C.EFAULT 21 EAGAIN = C.EAGAIN 22 EBUSY = C.EBUSY 23 ETIME = C.ETIME 24 ETIMEDOUT = C.ETIMEDOUT 25 EWOULDBLOCK = C.EWOULDBLOCK 26 EINPROGRESS = C.EINPROGRESS 27 28 PROT_NONE = C.PROT_NONE 29 PROT_READ = C.PROT_READ 30 PROT_WRITE = C.PROT_WRITE 31 PROT_EXEC = C.PROT_EXEC 32 33 MAP_ANON = C.MAP_ANON 34 MAP_PRIVATE = C.MAP_PRIVATE 35 MAP_FIXED = C.MAP_FIXED 36 37 MADV_DONTNEED = C.MADV_DONTNEED 38 MADV_FREE = C.MADV_FREE 39 40 SA_SIGINFO = C.SA_SIGINFO 41 SA_RESTART = C.SA_RESTART 42 SA_ONSTACK = C.SA_ONSTACK 43 44 SIGHUP = C.SIGHUP 45 SIGINT = C.SIGINT 46 SIGQUIT = C.SIGQUIT 47 SIGILL = C.SIGILL 48 SIGTRAP = C.SIGTRAP 49 SIGABRT = C.SIGABRT 50 SIGEMT = C.SIGEMT 51 SIGFPE = C.SIGFPE 52 SIGKILL = C.SIGKILL 53 SIGBUS = C.SIGBUS 54 SIGSEGV = C.SIGSEGV 55 SIGSYS = C.SIGSYS 56 SIGPIPE = C.SIGPIPE 57 SIGALRM = C.SIGALRM 58 SIGTERM = C.SIGTERM 59 SIGURG = C.SIGURG 60 SIGSTOP = C.SIGSTOP 61 SIGTSTP = C.SIGTSTP 62 SIGCONT = C.SIGCONT 63 SIGCHLD = C.SIGCHLD 64 SIGTTIN = C.SIGTTIN 65 SIGTTOU = C.SIGTTOU 66 SIGIO = C.SIGIO 67 SIGXCPU = C.SIGXCPU 68 SIGXFSZ = C.SIGXFSZ 69 SIGVTALRM = C.SIGVTALRM 70 SIGPROF = C.SIGPROF 71 SIGWINCH = C.SIGWINCH 72 SIGUSR1 = C.SIGUSR1 73 SIGUSR2 = C.SIGUSR2 74 75 FPE_INTDIV = C.FPE_INTDIV 76 FPE_INTOVF = C.FPE_INTOVF 77 FPE_FLTDIV = C.FPE_FLTDIV 78 FPE_FLTOVF = C.FPE_FLTOVF 79 FPE_FLTUND = C.FPE_FLTUND 80 FPE_FLTRES = C.FPE_FLTRES 81 FPE_FLTINV = C.FPE_FLTINV 82 FPE_FLTSUB = C.FPE_FLTSUB 83 84 BUS_ADRALN = C.BUS_ADRALN 85 BUS_ADRERR = C.BUS_ADRERR 86 BUS_OBJERR = C.BUS_OBJERR 87 88 SEGV_MAPERR = C.SEGV_MAPERR 89 SEGV_ACCERR = C.SEGV_ACCERR 90 91 ITIMER_REAL = C.ITIMER_REAL 92 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL 93 ITIMER_PROF = C.ITIMER_PROF 94 95 PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED 96 97 FORK_NOSIGCHLD = C.FORK_NOSIGCHLD 98 FORK_WAITPID = C.FORK_WAITPID 99 100 MAXHOSTNAMELEN = C.MAXHOSTNAMELEN 101 102 O_WRONLY = C.O_WRONLY 103 O_NONBLOCK = C.O_NONBLOCK 104 O_CREAT = C.O_CREAT 105 O_TRUNC = C.O_TRUNC 106 O_CLOEXEC = C.O_CLOEXEC 107 108 POLLIN = C.POLLIN 109 POLLOUT = C.POLLOUT 110 POLLHUP = C.POLLHUP 111 POLLERR = C.POLLERR 112 113 PORT_SOURCE_FD = C.PORT_SOURCE_FD 114 PORT_SOURCE_ALERT = C.PORT_SOURCE_ALERT 115 PORT_ALERT_UPDATE = C.PORT_ALERT_UPDATE 116 ) 117 118 type SemT C.sem_t 119 120 type Sigset C.sigset_t 121 type StackT C.stack_t 122 123 type Siginfo C.siginfo_t 124 type Sigaction C.struct_sigaction 125 126 type Fpregset C.fpregset_t 127 type Mcontext C.mcontext_t 128 type Ucontext C.ucontext_t 129 130 type Timespec C.struct_timespec 131 type Timeval C.struct_timeval 132 type Itimerval C.struct_itimerval 133 134 type PortEvent C.port_event_t 135 type Pthread C.pthread_t 136 type PthreadAttr C.pthread_attr_t 137 138 // depends on Timespec, must appear below 139 type Stat C.struct_stat