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

View as plain text