...

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  //go:build ignore
     6  
     7  /*
     8  Input to cgo.
     9  
    10  GOARCH=amd64 go tool cgo -godefs defs_openbsd.go
    11  GOARCH=386 go tool cgo -godefs defs_openbsd.go
    12  GOARCH=arm go tool cgo -godefs defs_openbsd.go
    13  GOARCH=arm64 go tool cgo -godefs defs_openbsd.go
    14  GOARCH=mips64 go tool cgo -godefs defs_openbsd.go
    15  */
    16  
    17  package runtime
    18  
    19  /*
    20  #include <sys/types.h>
    21  #include <sys/event.h>
    22  #include <sys/mman.h>
    23  #include <sys/time.h>
    24  #include <sys/unistd.h>
    25  #include <sys/signal.h>
    26  #include <errno.h>
    27  #include <fcntl.h>
    28  #include <pthread.h>
    29  #include <signal.h>
    30  */
    31  import "C"
    32  
    33  const (
    34  	EINTR     = C.EINTR
    35  	EFAULT    = C.EFAULT
    36  	EAGAIN    = C.EAGAIN
    37  	ETIMEDOUT = C.ETIMEDOUT
    38  
    39  	O_NONBLOCK = C.O_NONBLOCK
    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  	MAP_STACK   = C.MAP_STACK
    51  
    52  	MADV_DONTNEED = C.MADV_DONTNEED
    53  	MADV_FREE     = C.MADV_FREE
    54  
    55  	SA_SIGINFO = C.SA_SIGINFO
    56  	SA_RESTART = C.SA_RESTART
    57  	SA_ONSTACK = C.SA_ONSTACK
    58  
    59  	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
    60  
    61  	SIGHUP    = C.SIGHUP
    62  	SIGINT    = C.SIGINT
    63  	SIGQUIT   = C.SIGQUIT
    64  	SIGILL    = C.SIGILL
    65  	SIGTRAP   = C.SIGTRAP
    66  	SIGABRT   = C.SIGABRT
    67  	SIGEMT    = C.SIGEMT
    68  	SIGFPE    = C.SIGFPE
    69  	SIGKILL   = C.SIGKILL
    70  	SIGBUS    = C.SIGBUS
    71  	SIGSEGV   = C.SIGSEGV
    72  	SIGSYS    = C.SIGSYS
    73  	SIGPIPE   = C.SIGPIPE
    74  	SIGALRM   = C.SIGALRM
    75  	SIGTERM   = C.SIGTERM
    76  	SIGURG    = C.SIGURG
    77  	SIGSTOP   = C.SIGSTOP
    78  	SIGTSTP   = C.SIGTSTP
    79  	SIGCONT   = C.SIGCONT
    80  	SIGCHLD   = C.SIGCHLD
    81  	SIGTTIN   = C.SIGTTIN
    82  	SIGTTOU   = C.SIGTTOU
    83  	SIGIO     = C.SIGIO
    84  	SIGXCPU   = C.SIGXCPU
    85  	SIGXFSZ   = C.SIGXFSZ
    86  	SIGVTALRM = C.SIGVTALRM
    87  	SIGPROF   = C.SIGPROF
    88  	SIGWINCH  = C.SIGWINCH
    89  	SIGINFO   = C.SIGINFO
    90  	SIGUSR1   = C.SIGUSR1
    91  	SIGUSR2   = C.SIGUSR2
    92  
    93  	FPE_INTDIV = C.FPE_INTDIV
    94  	FPE_INTOVF = C.FPE_INTOVF
    95  	FPE_FLTDIV = C.FPE_FLTDIV
    96  	FPE_FLTOVF = C.FPE_FLTOVF
    97  	FPE_FLTUND = C.FPE_FLTUND
    98  	FPE_FLTRES = C.FPE_FLTRES
    99  	FPE_FLTINV = C.FPE_FLTINV
   100  	FPE_FLTSUB = C.FPE_FLTSUB
   101  
   102  	BUS_ADRALN = C.BUS_ADRALN
   103  	BUS_ADRERR = C.BUS_ADRERR
   104  	BUS_OBJERR = C.BUS_OBJERR
   105  
   106  	SEGV_MAPERR = C.SEGV_MAPERR
   107  	SEGV_ACCERR = C.SEGV_ACCERR
   108  
   109  	ITIMER_REAL    = C.ITIMER_REAL
   110  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
   111  	ITIMER_PROF    = C.ITIMER_PROF
   112  
   113  	EV_ADD       = C.EV_ADD
   114  	EV_DELETE    = C.EV_DELETE
   115  	EV_CLEAR     = C.EV_CLEAR
   116  	EV_ERROR     = C.EV_ERROR
   117  	EV_EOF       = C.EV_EOF
   118  	EVFILT_READ  = C.EVFILT_READ
   119  	EVFILT_WRITE = C.EVFILT_WRITE
   120  )
   121  
   122  type TforkT C.struct___tfork
   123  
   124  type Sigcontext C.struct_sigcontext
   125  type Siginfo C.siginfo_t
   126  type Sigset C.sigset_t
   127  type Sigval C.union_sigval
   128  
   129  type StackT C.stack_t
   130  
   131  type Timespec C.struct_timespec
   132  type Timeval C.struct_timeval
   133  type Itimerval C.struct_itimerval
   134  
   135  type KeventT C.struct_kevent
   136  
   137  type Pthread C.pthread_t
   138  type PthreadAttr C.pthread_attr_t
   139  type PthreadCond C.pthread_cond_t
   140  type PthreadCondAttr C.pthread_condattr_t
   141  type PthreadMutex C.pthread_mutex_t
   142  type PthreadMutexAttr C.pthread_mutexattr_t
   143  

View as plain text