github.com/liujq9674git/golang-src-1.7@v0.0.0-20230517174348-17f6ec47f3f8/src/runtime/defs_freebsd_arm.go (about)

     1  // created by cgo -cdefs and then converted to Go
     2  // cgo -cdefs defs_freebsd.go
     3  
     4  package runtime
     5  
     6  import "unsafe"
     7  
     8  const (
     9  	_EINTR  = 0x4
    10  	_EFAULT = 0xe
    11  
    12  	_PROT_NONE  = 0x0
    13  	_PROT_READ  = 0x1
    14  	_PROT_WRITE = 0x2
    15  	_PROT_EXEC  = 0x4
    16  
    17  	_MAP_ANON    = 0x1000
    18  	_MAP_PRIVATE = 0x2
    19  	_MAP_FIXED   = 0x10
    20  
    21  	_MADV_FREE = 0x5
    22  
    23  	_SA_SIGINFO = 0x40
    24  	_SA_RESTART = 0x2
    25  	_SA_ONSTACK = 0x1
    26  
    27  	_CLOCK_MONOTONIC = 0x4
    28  
    29  	_UMTX_OP_WAIT_UINT         = 0xb
    30  	_UMTX_OP_WAIT_UINT_PRIVATE = 0xf
    31  	_UMTX_OP_WAKE              = 0x3
    32  	_UMTX_OP_WAKE_PRIVATE      = 0x10
    33  
    34  	_SIGHUP    = 0x1
    35  	_SIGINT    = 0x2
    36  	_SIGQUIT   = 0x3
    37  	_SIGILL    = 0x4
    38  	_SIGTRAP   = 0x5
    39  	_SIGABRT   = 0x6
    40  	_SIGEMT    = 0x7
    41  	_SIGFPE    = 0x8
    42  	_SIGKILL   = 0x9
    43  	_SIGBUS    = 0xa
    44  	_SIGSEGV   = 0xb
    45  	_SIGSYS    = 0xc
    46  	_SIGPIPE   = 0xd
    47  	_SIGALRM   = 0xe
    48  	_SIGTERM   = 0xf
    49  	_SIGURG    = 0x10
    50  	_SIGSTOP   = 0x11
    51  	_SIGTSTP   = 0x12
    52  	_SIGCONT   = 0x13
    53  	_SIGCHLD   = 0x14
    54  	_SIGTTIN   = 0x15
    55  	_SIGTTOU   = 0x16
    56  	_SIGIO     = 0x17
    57  	_SIGXCPU   = 0x18
    58  	_SIGXFSZ   = 0x19
    59  	_SIGVTALRM = 0x1a
    60  	_SIGPROF   = 0x1b
    61  	_SIGWINCH  = 0x1c
    62  	_SIGINFO   = 0x1d
    63  	_SIGUSR1   = 0x1e
    64  	_SIGUSR2   = 0x1f
    65  
    66  	_FPE_INTDIV = 0x2
    67  	_FPE_INTOVF = 0x1
    68  	_FPE_FLTDIV = 0x3
    69  	_FPE_FLTOVF = 0x4
    70  	_FPE_FLTUND = 0x5
    71  	_FPE_FLTRES = 0x6
    72  	_FPE_FLTINV = 0x7
    73  	_FPE_FLTSUB = 0x8
    74  
    75  	_BUS_ADRALN = 0x1
    76  	_BUS_ADRERR = 0x2
    77  	_BUS_OBJERR = 0x3
    78  
    79  	_SEGV_MAPERR = 0x1
    80  	_SEGV_ACCERR = 0x2
    81  
    82  	_ITIMER_REAL    = 0x0
    83  	_ITIMER_VIRTUAL = 0x1
    84  	_ITIMER_PROF    = 0x2
    85  
    86  	_EV_ADD       = 0x1
    87  	_EV_DELETE    = 0x2
    88  	_EV_CLEAR     = 0x20
    89  	_EV_RECEIPT   = 0x40
    90  	_EV_ERROR     = 0x4000
    91  	_EVFILT_READ  = -0x1
    92  	_EVFILT_WRITE = -0x2
    93  )
    94  
    95  type rtprio struct {
    96  	_type uint16
    97  	prio  uint16
    98  }
    99  
   100  type thrparam struct {
   101  	start_func uintptr
   102  	arg        unsafe.Pointer
   103  	stack_base uintptr
   104  	stack_size uintptr
   105  	tls_base   unsafe.Pointer
   106  	tls_size   uintptr
   107  	child_tid  unsafe.Pointer // *int32
   108  	parent_tid *int32
   109  	flags      int32
   110  	rtp        *rtprio
   111  	spare      [3]uintptr
   112  }
   113  
   114  type sigaltstackt struct {
   115  	ss_sp    *uint8
   116  	ss_size  uint32
   117  	ss_flags int32
   118  }
   119  
   120  type sigset struct {
   121  	__bits [4]uint32
   122  }
   123  
   124  type stackt struct {
   125  	ss_sp    uintptr
   126  	ss_size  uintptr
   127  	ss_flags int32
   128  }
   129  
   130  type siginfo struct {
   131  	si_signo  int32
   132  	si_errno  int32
   133  	si_code   int32
   134  	si_pid    int32
   135  	si_uid    uint32
   136  	si_status int32
   137  	si_addr   uintptr
   138  	si_value  [4]byte
   139  	_reason   [32]byte
   140  }
   141  
   142  type mcontext struct {
   143  	__gregs [17]uint32
   144  	__fpu   [140]byte
   145  }
   146  
   147  type ucontext struct {
   148  	uc_sigmask  sigset
   149  	uc_mcontext mcontext
   150  	uc_link     *ucontext
   151  	uc_stack    stackt
   152  	uc_flags    int32
   153  	__spare__   [4]int32
   154  }
   155  
   156  type timespec struct {
   157  	tv_sec    int64
   158  	tv_nsec   int32
   159  	pad_cgo_0 [4]byte
   160  }
   161  
   162  func (ts *timespec) set_sec(x int64) {
   163  	ts.tv_sec = x
   164  }
   165  
   166  type timeval struct {
   167  	tv_sec    int64
   168  	tv_usec   int32
   169  	pad_cgo_0 [4]byte
   170  }
   171  
   172  func (tv *timeval) set_usec(x int32) {
   173  	tv.tv_usec = x
   174  }
   175  
   176  type itimerval struct {
   177  	it_interval timeval
   178  	it_value    timeval
   179  }
   180  
   181  type umtx_time struct {
   182  	_timeout timespec
   183  	_flags   uint32
   184  	_clockid uint32
   185  }
   186  
   187  type keventt struct {
   188  	ident  uint32
   189  	filter int16
   190  	flags  uint16
   191  	fflags uint32
   192  	data   int32
   193  	udata  *byte
   194  }