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  
    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_FREE = C.MADV_FREE
    57  
    58  	SA_SIGINFO = C.SA_SIGINFO
    59  	SA_RESTART = C.SA_RESTART
    60  	SA_ONSTACK = C.SA_ONSTACK
    61  
    62  	SIGHUP    = C.SIGHUP
    63  	SIGINT    = C.SIGINT
    64  	SIGQUIT   = C.SIGQUIT
    65  	SIGILL    = C.SIGILL
    66  	SIGTRAP   = C.SIGTRAP
    67  	SIGABRT   = C.SIGABRT
    68  	SIGEMT    = C.SIGEMT
    69  	SIGFPE    = C.SIGFPE
    70  	SIGKILL   = C.SIGKILL
    71  	SIGBUS    = C.SIGBUS
    72  	SIGSEGV   = C.SIGSEGV
    73  	SIGSYS    = C.SIGSYS
    74  	SIGPIPE   = C.SIGPIPE
    75  	SIGALRM   = C.SIGALRM
    76  	SIGTERM   = C.SIGTERM
    77  	SIGURG    = C.SIGURG
    78  	SIGSTOP   = C.SIGSTOP
    79  	SIGTSTP   = C.SIGTSTP
    80  	SIGCONT   = C.SIGCONT
    81  	SIGCHLD   = C.SIGCHLD
    82  	SIGTTIN   = C.SIGTTIN
    83  	SIGTTOU   = C.SIGTTOU
    84  	SIGIO     = C.SIGIO
    85  	SIGXCPU   = C.SIGXCPU
    86  	SIGXFSZ   = C.SIGXFSZ
    87  	SIGVTALRM = C.SIGVTALRM
    88  	SIGPROF   = C.SIGPROF
    89  	SIGWINCH  = C.SIGWINCH
    90  	SIGUSR1   = C.SIGUSR1
    91  	SIGUSR2   = C.SIGUSR2
    92  
    93  	FPE_INTDIV = C.FPE_INTDIV
    94  	FPE_INTOVF = C.FPE_INTOVF
    95  	FPE_FLTDIV = C.FPE_FLTDIV
    96  	FPE_FLTOVF = C.FPE_FLTOVF
    97  	FPE_FLTUND = C.FPE_FLTUND
    98  	FPE_FLTRES = C.FPE_FLTRES
    99  	FPE_FLTINV = C.FPE_FLTINV
   100  	FPE_FLTSUB = C.FPE_FLTSUB
   101  
   102  	BUS_ADRALN = C.BUS_ADRALN
   103  	BUS_ADRERR = C.BUS_ADRERR
   104  	BUS_OBJERR = C.BUS_OBJERR
   105  
   106  	SEGV_MAPERR = C.SEGV_MAPERR
   107  	SEGV_ACCERR = C.SEGV_ACCERR
   108  
   109  	ITIMER_REAL    = C.ITIMER_REAL
   110  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   111  	ITIMER_PROF    = C.ITIMER_PROF
   112  
   113  	_SC_NPROCESSORS_ONLN = C._SC_NPROCESSORS_ONLN
   114  
   115  	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
   116  
   117  	FORK_NOSIGCHLD = C.FORK_NOSIGCHLD
   118  	FORK_WAITPID   = C.FORK_WAITPID
   119  
   120  	MAXHOSTNAMELEN = C.MAXHOSTNAMELEN
   121  
   122  	O_NONBLOCK = C.O_NONBLOCK
   123  	O_CLOEXEC  = C.O_CLOEXEC
   124  	FD_CLOEXEC = C.FD_CLOEXEC
   125  	F_GETFL    = C.F_GETFL
   126  	F_SETFL    = C.F_SETFL
   127  	F_SETFD    = C.F_SETFD
   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