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  	ENOSYS = C.ENOSYS
    35  
    36  	O_NONBLOCK = C.O_NONBLOCK
    37  	O_CLOEXEC  = C.O_CLOEXEC
    38  
    39  	PROT_NONE  = C.PROT_NONE
    40  	PROT_READ  = C.PROT_READ
    41  	PROT_WRITE = C.PROT_WRITE
    42  	PROT_EXEC  = C.PROT_EXEC
    43  
    44  	MAP_ANON    = C.MAP_ANON
    45  	MAP_PRIVATE = C.MAP_PRIVATE
    46  	MAP_FIXED   = C.MAP_FIXED
    47  
    48  	MADV_FREE = C.MADV_FREE
    49  
    50  	SA_SIGINFO = C.SA_SIGINFO
    51  	SA_RESTART = C.SA_RESTART
    52  	SA_ONSTACK = C.SA_ONSTACK
    53  
    54  	SIGHUP    = C.SIGHUP
    55  	SIGINT    = C.SIGINT
    56  	SIGQUIT   = C.SIGQUIT
    57  	SIGILL    = C.SIGILL
    58  	SIGTRAP   = C.SIGTRAP
    59  	SIGABRT   = C.SIGABRT
    60  	SIGEMT    = C.SIGEMT
    61  	SIGFPE    = C.SIGFPE
    62  	SIGKILL   = C.SIGKILL
    63  	SIGBUS    = C.SIGBUS
    64  	SIGSEGV   = C.SIGSEGV
    65  	SIGSYS    = C.SIGSYS
    66  	SIGPIPE   = C.SIGPIPE
    67  	SIGALRM   = C.SIGALRM
    68  	SIGTERM   = C.SIGTERM
    69  	SIGURG    = C.SIGURG
    70  	SIGSTOP   = C.SIGSTOP
    71  	SIGTSTP   = C.SIGTSTP
    72  	SIGCONT   = C.SIGCONT
    73  	SIGCHLD   = C.SIGCHLD
    74  	SIGTTIN   = C.SIGTTIN
    75  	SIGTTOU   = C.SIGTTOU
    76  	SIGIO     = C.SIGIO
    77  	SIGXCPU   = C.SIGXCPU
    78  	SIGXFSZ   = C.SIGXFSZ
    79  	SIGVTALRM = C.SIGVTALRM
    80  	SIGPROF   = C.SIGPROF
    81  	SIGWINCH  = C.SIGWINCH
    82  	SIGINFO   = C.SIGINFO
    83  	SIGUSR1   = C.SIGUSR1
    84  	SIGUSR2   = C.SIGUSR2
    85  
    86  	FPE_INTDIV = C.FPE_INTDIV
    87  	FPE_INTOVF = C.FPE_INTOVF
    88  	FPE_FLTDIV = C.FPE_FLTDIV
    89  	FPE_FLTOVF = C.FPE_FLTOVF
    90  	FPE_FLTUND = C.FPE_FLTUND
    91  	FPE_FLTRES = C.FPE_FLTRES
    92  	FPE_FLTINV = C.FPE_FLTINV
    93  	FPE_FLTSUB = C.FPE_FLTSUB
    94  
    95  	BUS_ADRALN = C.BUS_ADRALN
    96  	BUS_ADRERR = C.BUS_ADRERR
    97  	BUS_OBJERR = C.BUS_OBJERR
    98  
    99  	SEGV_MAPERR = C.SEGV_MAPERR
   100  	SEGV_ACCERR = C.SEGV_ACCERR
   101  
   102  	ITIMER_REAL    = C.ITIMER_REAL
   103  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   104  	ITIMER_PROF    = C.ITIMER_PROF
   105  
   106  	EV_ADD       = C.EV_ADD
   107  	EV_DELETE    = C.EV_DELETE
   108  	EV_CLEAR     = C.EV_CLEAR
   109  	EV_ERROR     = C.EV_ERROR
   110  	EV_EOF       = C.EV_EOF
   111  	EVFILT_READ  = C.EVFILT_READ
   112  	EVFILT_WRITE = C.EVFILT_WRITE
   113  )
   114  
   115  type Rtprio C.struct_rtprio
   116  type Lwpparams C.struct_lwp_params
   117  type Sigset C.struct___sigset
   118  type StackT C.stack_t
   119  
   120  type Siginfo C.siginfo_t
   121  
   122  type Mcontext C.mcontext_t
   123  type Ucontext C.ucontext_t
   124  
   125  type Timespec C.struct_timespec
   126  type Timeval C.struct_timeval
   127  type Itimerval C.struct_itimerval
   128  
   129  type Kevent C.struct_kevent
   130  

View as plain text