...

Source file src/runtime/defs_solaris.go

Documentation: runtime

     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  /*
    16  #include <sys/types.h>
    17  #include <sys/mman.h>
    18  #include <sys/select.h>
    19  #include <sys/siginfo.h>
    20  #include <sys/signal.h>
    21  #include <sys/stat.h>
    22  #include <sys/time.h>
    23  #include <sys/ucontext.h>
    24  #include <sys/regset.h>
    25  #include <sys/unistd.h>
    26  #include <sys/fork.h>
    27  #include <sys/port.h>
    28  #include <semaphore.h>
    29  #include <errno.h>
    30  #include <signal.h>
    31  #include <pthread.h>
    32  #include <netdb.h>
    33  */
    34  import "C"
    35  
    36  const (
    37  	EINTR       = C.EINTR
    38  	EBADF       = C.EBADF
    39  	EFAULT      = C.EFAULT
    40  	EAGAIN      = C.EAGAIN
    41  	EBUSY       = C.EBUSY
    42  	ETIME       = C.ETIME
    43  	ETIMEDOUT   = C.ETIMEDOUT
    44  	EWOULDBLOCK = C.EWOULDBLOCK
    45  	EINPROGRESS = C.EINPROGRESS
    46  
    47  	PROT_NONE  = C.PROT_NONE
    48  	PROT_READ  = C.PROT_READ
    49  	PROT_WRITE = C.PROT_WRITE
    50  	PROT_EXEC  = C.PROT_EXEC
    51  
    52  	MAP_ANON    = C.MAP_ANON
    53  	MAP_PRIVATE = C.MAP_PRIVATE
    54  	MAP_FIXED   = C.MAP_FIXED
    55  
    56  	MADV_DONTNEED = C.MADV_DONTNEED
    57  	MADV_FREE     = C.MADV_FREE
    58  
    59  	SA_SIGINFO = C.SA_SIGINFO
    60  	SA_RESTART = C.SA_RESTART
    61  	SA_ONSTACK = C.SA_ONSTACK
    62  
    63  	SIGHUP    = C.SIGHUP
    64  	SIGINT    = C.SIGINT
    65  	SIGQUIT   = C.SIGQUIT
    66  	SIGILL    = C.SIGILL
    67  	SIGTRAP   = C.SIGTRAP
    68  	SIGABRT   = C.SIGABRT
    69  	SIGEMT    = C.SIGEMT
    70  	SIGFPE    = C.SIGFPE
    71  	SIGKILL   = C.SIGKILL
    72  	SIGBUS    = C.SIGBUS
    73  	SIGSEGV   = C.SIGSEGV
    74  	SIGSYS    = C.SIGSYS
    75  	SIGPIPE   = C.SIGPIPE
    76  	SIGALRM   = C.SIGALRM
    77  	SIGTERM   = C.SIGTERM
    78  	SIGURG    = C.SIGURG
    79  	SIGSTOP   = C.SIGSTOP
    80  	SIGTSTP   = C.SIGTSTP
    81  	SIGCONT   = C.SIGCONT
    82  	SIGCHLD   = C.SIGCHLD
    83  	SIGTTIN   = C.SIGTTIN
    84  	SIGTTOU   = C.SIGTTOU
    85  	SIGIO     = C.SIGIO
    86  	SIGXCPU   = C.SIGXCPU
    87  	SIGXFSZ   = C.SIGXFSZ
    88  	SIGVTALRM = C.SIGVTALRM
    89  	SIGPROF   = C.SIGPROF
    90  	SIGWINCH  = C.SIGWINCH
    91  	SIGUSR1   = C.SIGUSR1
    92  	SIGUSR2   = C.SIGUSR2
    93  
    94  	FPE_INTDIV = C.FPE_INTDIV
    95  	FPE_INTOVF = C.FPE_INTOVF
    96  	FPE_FLTDIV = C.FPE_FLTDIV
    97  	FPE_FLTOVF = C.FPE_FLTOVF
    98  	FPE_FLTUND = C.FPE_FLTUND
    99  	FPE_FLTRES = C.FPE_FLTRES
   100  	FPE_FLTINV = C.FPE_FLTINV
   101  	FPE_FLTSUB = C.FPE_FLTSUB
   102  
   103  	BUS_ADRALN = C.BUS_ADRALN
   104  	BUS_ADRERR = C.BUS_ADRERR
   105  	BUS_OBJERR = C.BUS_OBJERR
   106  
   107  	SEGV_MAPERR = C.SEGV_MAPERR
   108  	SEGV_ACCERR = C.SEGV_ACCERR
   109  
   110  	ITIMER_REAL    = C.ITIMER_REAL
   111  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   112  	ITIMER_PROF    = C.ITIMER_PROF
   113  
   114  	_SC_NPROCESSORS_ONLN = C._SC_NPROCESSORS_ONLN
   115  
   116  	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
   117  
   118  	FORK_NOSIGCHLD = C.FORK_NOSIGCHLD
   119  	FORK_WAITPID   = C.FORK_WAITPID
   120  
   121  	MAXHOSTNAMELEN = C.MAXHOSTNAMELEN
   122  
   123  	O_WRONLY   = C.O_WRONLY
   124  	O_NONBLOCK = C.O_NONBLOCK
   125  	O_CREAT    = C.O_CREAT
   126  	O_TRUNC    = C.O_TRUNC
   127  	O_CLOEXEC  = C.O_CLOEXEC
   128  
   129  	POLLIN  = C.POLLIN
   130  	POLLOUT = C.POLLOUT
   131  	POLLHUP = C.POLLHUP
   132  	POLLERR = C.POLLERR
   133  
   134  	PORT_SOURCE_FD    = C.PORT_SOURCE_FD
   135  	PORT_SOURCE_ALERT = C.PORT_SOURCE_ALERT
   136  	PORT_ALERT_UPDATE = C.PORT_ALERT_UPDATE
   137  )
   138  
   139  type SemT C.sem_t
   140  
   141  type Sigset C.sigset_t
   142  type StackT C.stack_t
   143  
   144  type Siginfo C.siginfo_t
   145  type Sigaction C.struct_sigaction
   146  
   147  type Fpregset C.fpregset_t
   148  type Mcontext C.mcontext_t
   149  type Ucontext C.ucontext_t
   150  
   151  type Timespec C.struct_timespec
   152  type Timeval C.struct_timeval
   153  type Itimerval C.struct_itimerval
   154  
   155  type PortEvent C.port_event_t
   156  type Pthread C.pthread_t
   157  type PthreadAttr C.pthread_attr_t
   158  
   159  // depends on Timespec, must appear below
   160  type Stat C.struct_stat
   161  

View as plain text