Source file src/runtime/defs_dragonfly.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_dragonfly.go >defs_dragonfly_amd64.h
    11  */
    12  
    13  package runtime
    14  
    15  /*
    16  #include <sys/user.h>
    17  #include <sys/time.h>
    18  #include <sys/event.h>
    19  #include <sys/mman.h>
    20  #include <sys/ucontext.h>
    21  #include <sys/rtprio.h>
    22  #include <sys/signal.h>
    23  #include <sys/unistd.h>
    24  #include <errno.h>
    25  #include <signal.h>
    26  */
    27  import "C"
    28  
    29  const (
    30  	EINTR  = C.EINTR
    31  	EFAULT = C.EFAULT
    32  	EBUSY  = C.EBUSY
    33  	EAGAIN = C.EAGAIN
    34  
    35  	O_NONBLOCK = C.O_NONBLOCK
    36  	O_CLOEXEC  = C.O_CLOEXEC
    37  
    38  	PROT_NONE  = C.PROT_NONE
    39  	PROT_READ  = C.PROT_READ
    40  	PROT_WRITE = C.PROT_WRITE
    41  	PROT_EXEC  = C.PROT_EXEC
    42  
    43  	MAP_ANON    = C.MAP_ANON
    44  	MAP_PRIVATE = C.MAP_PRIVATE
    45  	MAP_FIXED   = C.MAP_FIXED
    46  
    47  	MADV_FREE = C.MADV_FREE
    48  
    49  	SA_SIGINFO = C.SA_SIGINFO
    50  	SA_RESTART = C.SA_RESTART
    51  	SA_ONSTACK = C.SA_ONSTACK
    52  
    53  	SIGHUP    = C.SIGHUP
    54  	SIGINT    = C.SIGINT
    55  	SIGQUIT   = C.SIGQUIT
    56  	SIGILL    = C.SIGILL
    57  	SIGTRAP   = C.SIGTRAP
    58  	SIGABRT   = C.SIGABRT
    59  	SIGEMT    = C.SIGEMT
    60  	SIGFPE    = C.SIGFPE
    61  	SIGKILL   = C.SIGKILL
    62  	SIGBUS    = C.SIGBUS
    63  	SIGSEGV   = C.SIGSEGV
    64  	SIGSYS    = C.SIGSYS
    65  	SIGPIPE   = C.SIGPIPE
    66  	SIGALRM   = C.SIGALRM
    67  	SIGTERM   = C.SIGTERM
    68  	SIGURG    = C.SIGURG
    69  	SIGSTOP   = C.SIGSTOP
    70  	SIGTSTP   = C.SIGTSTP
    71  	SIGCONT   = C.SIGCONT
    72  	SIGCHLD   = C.SIGCHLD
    73  	SIGTTIN   = C.SIGTTIN
    74  	SIGTTOU   = C.SIGTTOU
    75  	SIGIO     = C.SIGIO
    76  	SIGXCPU   = C.SIGXCPU
    77  	SIGXFSZ   = C.SIGXFSZ
    78  	SIGVTALRM = C.SIGVTALRM
    79  	SIGPROF   = C.SIGPROF
    80  	SIGWINCH  = C.SIGWINCH
    81  	SIGINFO   = C.SIGINFO
    82  	SIGUSR1   = C.SIGUSR1
    83  	SIGUSR2   = C.SIGUSR2
    84  
    85  	FPE_INTDIV = C.FPE_INTDIV
    86  	FPE_INTOVF = C.FPE_INTOVF
    87  	FPE_FLTDIV = C.FPE_FLTDIV
    88  	FPE_FLTOVF = C.FPE_FLTOVF
    89  	FPE_FLTUND = C.FPE_FLTUND
    90  	FPE_FLTRES = C.FPE_FLTRES
    91  	FPE_FLTINV = C.FPE_FLTINV
    92  	FPE_FLTSUB = C.FPE_FLTSUB
    93  
    94  	BUS_ADRALN = C.BUS_ADRALN
    95  	BUS_ADRERR = C.BUS_ADRERR
    96  	BUS_OBJERR = C.BUS_OBJERR
    97  
    98  	SEGV_MAPERR = C.SEGV_MAPERR
    99  	SEGV_ACCERR = C.SEGV_ACCERR
   100  
   101  	ITIMER_REAL    = C.ITIMER_REAL
   102  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   103  	ITIMER_PROF    = C.ITIMER_PROF
   104  
   105  	EV_ADD       = C.EV_ADD
   106  	EV_DELETE    = C.EV_DELETE
   107  	EV_CLEAR     = C.EV_CLEAR
   108  	EV_ERROR     = C.EV_ERROR
   109  	EV_EOF       = C.EV_EOF
   110  	EVFILT_READ  = C.EVFILT_READ
   111  	EVFILT_WRITE = C.EVFILT_WRITE
   112  )
   113  
   114  type Rtprio C.struct_rtprio
   115  type Lwpparams C.struct_lwp_params
   116  type Sigset C.struct___sigset
   117  type StackT C.stack_t
   118  
   119  type Siginfo C.siginfo_t
   120  
   121  type Mcontext C.mcontext_t
   122  type Ucontext C.ucontext_t
   123  
   124  type Timespec C.struct_timespec
   125  type Timeval C.struct_timeval
   126  type Itimerval C.struct_itimerval
   127  
   128  type Kevent C.struct_kevent
   129  

View as plain text