github.com/aloncn/graphics-go@v0.0.1/src/runtime/defs_freebsd.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_freebsd.go >defs_freebsd_amd64.h
    11  GOARCH=386 go tool cgo -cdefs defs_freebsd.go >defs_freebsd_386.h
    12  GOARCH=arm go tool cgo -cdefs defs_freebsd.go >defs_freebsd_arm.h
    13  */
    14  
    15  package runtime
    16  
    17  /*
    18  #include <sys/types.h>
    19  #include <sys/time.h>
    20  #include <signal.h>
    21  #include <errno.h>
    22  #include <sys/event.h>
    23  #include <sys/mman.h>
    24  #include <sys/ucontext.h>
    25  #include <sys/umtx.h>
    26  #include <sys/rtprio.h>
    27  #include <sys/thr.h>
    28  #include <sys/_sigset.h>
    29  #include <sys/unistd.h>
    30  */
    31  import "C"
    32  
    33  const (
    34  	EINTR  = C.EINTR
    35  	EFAULT = C.EFAULT
    36  
    37  	PROT_NONE  = C.PROT_NONE
    38  	PROT_READ  = C.PROT_READ
    39  	PROT_WRITE = C.PROT_WRITE
    40  	PROT_EXEC  = C.PROT_EXEC
    41  
    42  	MAP_ANON    = C.MAP_ANON
    43  	MAP_PRIVATE = C.MAP_PRIVATE
    44  	MAP_FIXED   = C.MAP_FIXED
    45  
    46  	MADV_FREE = C.MADV_FREE
    47  
    48  	SA_SIGINFO = C.SA_SIGINFO
    49  	SA_RESTART = C.SA_RESTART
    50  	SA_ONSTACK = C.SA_ONSTACK
    51  
    52  	UMTX_OP_WAIT_UINT         = C.UMTX_OP_WAIT_UINT
    53  	UMTX_OP_WAIT_UINT_PRIVATE = C.UMTX_OP_WAIT_UINT_PRIVATE
    54  	UMTX_OP_WAKE              = C.UMTX_OP_WAKE
    55  	UMTX_OP_WAKE_PRIVATE      = C.UMTX_OP_WAKE_PRIVATE
    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_RECEIPT   = C.EV_RECEIPT
   113  	EV_ERROR     = C.EV_ERROR
   114  	EVFILT_READ  = C.EVFILT_READ
   115  	EVFILT_WRITE = C.EVFILT_WRITE
   116  )
   117  
   118  type Rtprio C.struct_rtprio
   119  type ThrParam C.struct_thr_param
   120  type SigaltstackT C.struct_sigaltstack
   121  type Sigset C.struct___sigset
   122  type StackT C.stack_t
   123  
   124  type Siginfo C.siginfo_t
   125  
   126  type Mcontext C.mcontext_t
   127  type Ucontext C.ucontext_t
   128  
   129  type Timespec C.struct_timespec
   130  type Timeval C.struct_timeval
   131  type Itimerval C.struct_itimerval
   132  
   133  type Kevent C.struct_kevent