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

View as plain text