github.com/sanprasirt/go@v0.0.0-20170607001320-a027466e4b6d/src/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  // +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  	ETIMEDOUT   = C.ETIMEDOUT
    42  	EWOULDBLOCK = C.EWOULDBLOCK
    43  	EINPROGRESS = C.EINPROGRESS
    44  
    45  	PROT_NONE  = C.PROT_NONE
    46  	PROT_READ  = C.PROT_READ
    47  	PROT_WRITE = C.PROT_WRITE
    48  	PROT_EXEC  = C.PROT_EXEC
    49  
    50  	MAP_ANON    = C.MAP_ANON
    51  	MAP_PRIVATE = C.MAP_PRIVATE
    52  	MAP_FIXED   = C.MAP_FIXED
    53  
    54  	MADV_FREE = C.MADV_FREE
    55  
    56  	SA_SIGINFO = C.SA_SIGINFO
    57  	SA_RESTART = C.SA_RESTART
    58  	SA_ONSTACK = C.SA_ONSTACK
    59  
    60  	SIGHUP    = C.SIGHUP
    61  	SIGINT    = C.SIGINT
    62  	SIGQUIT   = C.SIGQUIT
    63  	SIGILL    = C.SIGILL
    64  	SIGTRAP   = C.SIGTRAP
    65  	SIGABRT   = C.SIGABRT
    66  	SIGEMT    = C.SIGEMT
    67  	SIGFPE    = C.SIGFPE
    68  	SIGKILL   = C.SIGKILL
    69  	SIGBUS    = C.SIGBUS
    70  	SIGSEGV   = C.SIGSEGV
    71  	SIGSYS    = C.SIGSYS
    72  	SIGPIPE   = C.SIGPIPE
    73  	SIGALRM   = C.SIGALRM
    74  	SIGTERM   = C.SIGTERM
    75  	SIGURG    = C.SIGURG
    76  	SIGSTOP   = C.SIGSTOP
    77  	SIGTSTP   = C.SIGTSTP
    78  	SIGCONT   = C.SIGCONT
    79  	SIGCHLD   = C.SIGCHLD
    80  	SIGTTIN   = C.SIGTTIN
    81  	SIGTTOU   = C.SIGTTOU
    82  	SIGIO     = C.SIGIO
    83  	SIGXCPU   = C.SIGXCPU
    84  	SIGXFSZ   = C.SIGXFSZ
    85  	SIGVTALRM = C.SIGVTALRM
    86  	SIGPROF   = C.SIGPROF
    87  	SIGWINCH  = C.SIGWINCH
    88  	SIGUSR1   = C.SIGUSR1
    89  	SIGUSR2   = C.SIGUSR2
    90  
    91  	FPE_INTDIV = C.FPE_INTDIV
    92  	FPE_INTOVF = C.FPE_INTOVF
    93  	FPE_FLTDIV = C.FPE_FLTDIV
    94  	FPE_FLTOVF = C.FPE_FLTOVF
    95  	FPE_FLTUND = C.FPE_FLTUND
    96  	FPE_FLTRES = C.FPE_FLTRES
    97  	FPE_FLTINV = C.FPE_FLTINV
    98  	FPE_FLTSUB = C.FPE_FLTSUB
    99  
   100  	BUS_ADRALN = C.BUS_ADRALN
   101  	BUS_ADRERR = C.BUS_ADRERR
   102  	BUS_OBJERR = C.BUS_OBJERR
   103  
   104  	SEGV_MAPERR = C.SEGV_MAPERR
   105  	SEGV_ACCERR = C.SEGV_ACCERR
   106  
   107  	ITIMER_REAL    = C.ITIMER_REAL
   108  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   109  	ITIMER_PROF    = C.ITIMER_PROF
   110  
   111  	_SC_NPROCESSORS_ONLN = C._SC_NPROCESSORS_ONLN
   112  
   113  	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
   114  
   115  	FORK_NOSIGCHLD = C.FORK_NOSIGCHLD
   116  	FORK_WAITPID   = C.FORK_WAITPID
   117  
   118  	MAXHOSTNAMELEN = C.MAXHOSTNAMELEN
   119  
   120  	O_NONBLOCK = C.O_NONBLOCK
   121  	FD_CLOEXEC = C.FD_CLOEXEC
   122  	F_GETFL    = C.F_GETFL
   123  	F_SETFL    = C.F_SETFL
   124  	F_SETFD    = C.F_SETFD
   125  
   126  	POLLIN  = C.POLLIN
   127  	POLLOUT = C.POLLOUT
   128  	POLLHUP = C.POLLHUP
   129  	POLLERR = C.POLLERR
   130  
   131  	PORT_SOURCE_FD = C.PORT_SOURCE_FD
   132  )
   133  
   134  type SemT C.sem_t
   135  
   136  type Sigset C.sigset_t
   137  type StackT C.stack_t
   138  
   139  type Siginfo C.siginfo_t
   140  type Sigaction C.struct_sigaction
   141  
   142  type Fpregset C.fpregset_t
   143  type Mcontext C.mcontext_t
   144  type Ucontext C.ucontext_t
   145  
   146  type Timespec C.struct_timespec
   147  type Timeval C.struct_timeval
   148  type Itimerval C.struct_itimerval
   149  
   150  type PortEvent C.port_event_t
   151  type Pthread C.pthread_t
   152  type PthreadAttr C.pthread_attr_t
   153  
   154  // depends on Timespec, must appear below
   155  type Stat C.struct_stat