Source file src/runtime/defs_solaris.go

     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  	ENOSYS      = C.ENOSYS
    47  
    48  	PROT_NONE  = C.PROT_NONE
    49  	PROT_READ  = C.PROT_READ
    50  	PROT_WRITE = C.PROT_WRITE
    51  	PROT_EXEC  = C.PROT_EXEC
    52  
    53  	MAP_ANON    = C.MAP_ANON
    54  	MAP_PRIVATE = C.MAP_PRIVATE
    55  	MAP_FIXED   = C.MAP_FIXED
    56  
    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_NONBLOCK = C.O_NONBLOCK
   124  	O_CLOEXEC  = C.O_CLOEXEC
   125  	FD_CLOEXEC = C.FD_CLOEXEC
   126  	F_GETFL    = C.F_GETFL
   127  	F_SETFL    = C.F_SETFL
   128  	F_SETFD    = C.F_SETFD
   129  
   130  	POLLIN  = C.POLLIN
   131  	POLLOUT = C.POLLOUT
   132  	POLLHUP = C.POLLHUP
   133  	POLLERR = C.POLLERR
   134  
   135  	PORT_SOURCE_FD    = C.PORT_SOURCE_FD
   136  	PORT_SOURCE_ALERT = C.PORT_SOURCE_ALERT
   137  	PORT_ALERT_UPDATE = C.PORT_ALERT_UPDATE
   138  )
   139  
   140  type SemT C.sem_t
   141  
   142  type Sigset C.sigset_t
   143  type StackT C.stack_t
   144  
   145  type Siginfo C.siginfo_t
   146  type Sigaction C.struct_sigaction
   147  
   148  type Fpregset C.fpregset_t
   149  type Mcontext C.mcontext_t
   150  type Ucontext C.ucontext_t
   151  
   152  type Timespec C.struct_timespec
   153  type Timeval C.struct_timeval
   154  type Itimerval C.struct_itimerval
   155  
   156  type PortEvent C.port_event_t
   157  type Pthread C.pthread_t
   158  type PthreadAttr C.pthread_attr_t
   159  
   160  // depends on Timespec, must appear below
   161  type Stat C.struct_stat
   162  

View as plain text