...
Run Format

Source file src/runtime/defs_openbsd.go

Documentation: runtime

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

View as plain text