Source file src/runtime/defs_openbsd_mips64.go

     1  // Copyright 2020 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  // Generated from:
     6  //
     7  //   GOARCH=mips64 go tool cgo -godefs defs_openbsd.go
     8  //
     9  // Then converted to the form used by the runtime.
    10  
    11  package runtime
    12  
    13  import "unsafe"
    14  
    15  const (
    16  	_EINTR     = 0x4
    17  	_EFAULT    = 0xe
    18  	_EAGAIN    = 0x23
    19  	_ETIMEDOUT = 0x3c
    20  
    21  	_O_WRONLY   = 0x1
    22  	_O_NONBLOCK = 0x4
    23  	_O_CREAT    = 0x200
    24  	_O_TRUNC    = 0x400
    25  	_O_CLOEXEC  = 0x10000
    26  
    27  	_PROT_NONE  = 0x0
    28  	_PROT_READ  = 0x1
    29  	_PROT_WRITE = 0x2
    30  	_PROT_EXEC  = 0x4
    31  
    32  	_MAP_ANON    = 0x1000
    33  	_MAP_PRIVATE = 0x2
    34  	_MAP_FIXED   = 0x10
    35  	_MAP_STACK   = 0x4000
    36  
    37  	_MADV_DONTNEED = 0x4
    38  	_MADV_FREE     = 0x6
    39  
    40  	_SA_SIGINFO = 0x40
    41  	_SA_RESTART = 0x2
    42  	_SA_ONSTACK = 0x1
    43  
    44  	_SIGHUP    = 0x1
    45  	_SIGINT    = 0x2
    46  	_SIGQUIT   = 0x3
    47  	_SIGILL    = 0x4
    48  	_SIGTRAP   = 0x5
    49  	_SIGABRT   = 0x6
    50  	_SIGEMT    = 0x7
    51  	_SIGFPE    = 0x8
    52  	_SIGKILL   = 0x9
    53  	_SIGBUS    = 0xa
    54  	_SIGSEGV   = 0xb
    55  	_SIGSYS    = 0xc
    56  	_SIGPIPE   = 0xd
    57  	_SIGALRM   = 0xe
    58  	_SIGTERM   = 0xf
    59  	_SIGURG    = 0x10
    60  	_SIGSTOP   = 0x11
    61  	_SIGTSTP   = 0x12
    62  	_SIGCONT   = 0x13
    63  	_SIGCHLD   = 0x14
    64  	_SIGTTIN   = 0x15
    65  	_SIGTTOU   = 0x16
    66  	_SIGIO     = 0x17
    67  	_SIGXCPU   = 0x18
    68  	_SIGXFSZ   = 0x19
    69  	_SIGVTALRM = 0x1a
    70  	_SIGPROF   = 0x1b
    71  	_SIGWINCH  = 0x1c
    72  	_SIGINFO   = 0x1d
    73  	_SIGUSR1   = 0x1e
    74  	_SIGUSR2   = 0x1f
    75  
    76  	_FPE_INTDIV = 0x1
    77  	_FPE_INTOVF = 0x2
    78  	_FPE_FLTDIV = 0x3
    79  	_FPE_FLTOVF = 0x4
    80  	_FPE_FLTUND = 0x5
    81  	_FPE_FLTRES = 0x6
    82  	_FPE_FLTINV = 0x7
    83  	_FPE_FLTSUB = 0x8
    84  
    85  	_BUS_ADRALN = 0x1
    86  	_BUS_ADRERR = 0x2
    87  	_BUS_OBJERR = 0x3
    88  
    89  	_SEGV_MAPERR = 0x1
    90  	_SEGV_ACCERR = 0x2
    91  
    92  	_ITIMER_REAL    = 0x0
    93  	_ITIMER_VIRTUAL = 0x1
    94  	_ITIMER_PROF    = 0x2
    95  
    96  	_EV_ADD       = 0x1
    97  	_EV_DELETE    = 0x2
    98  	_EV_CLEAR     = 0x20
    99  	_EV_ERROR     = 0x4000
   100  	_EV_EOF       = 0x8000
   101  	_EVFILT_READ  = -0x1
   102  	_EVFILT_WRITE = -0x2
   103  )
   104  
   105  type tforkt struct {
   106  	tf_tcb   unsafe.Pointer
   107  	tf_tid   *int32
   108  	tf_stack uintptr
   109  }
   110  
   111  type sigcontext struct {
   112  	sc_cookie  uint64
   113  	sc_mask    uint64
   114  	sc_pc      uint64
   115  	sc_regs    [32]uint64
   116  	mullo      uint64
   117  	mulhi      uint64
   118  	sc_fpregs  [33]uint64
   119  	sc_fpused  uint64
   120  	sc_fpc_eir uint64
   121  	_xxx       [8]int64
   122  }
   123  
   124  type siginfo struct {
   125  	si_signo  int32
   126  	si_code   int32
   127  	si_errno  int32
   128  	pad_cgo_0 [4]byte
   129  	_data     [120]byte
   130  }
   131  
   132  type stackt struct {
   133  	ss_sp     uintptr
   134  	ss_size   uintptr
   135  	ss_flags  int32
   136  	pad_cgo_0 [4]byte
   137  }
   138  
   139  type timespec struct {
   140  	tv_sec  int64
   141  	tv_nsec int64
   142  }
   143  
   144  //go:nosplit
   145  func (ts *timespec) setNsec(ns int64) {
   146  	ts.tv_sec = ns / 1e9
   147  	ts.tv_nsec = ns % 1e9
   148  }
   149  
   150  type timeval struct {
   151  	tv_sec  int64
   152  	tv_usec int64
   153  }
   154  
   155  func (tv *timeval) set_usec(x int32) {
   156  	tv.tv_usec = int64(x)
   157  }
   158  
   159  type itimerval struct {
   160  	it_interval timeval
   161  	it_value    timeval
   162  }
   163  
   164  type keventt struct {
   165  	ident  uint64
   166  	filter int16
   167  	flags  uint16
   168  	fflags uint32
   169  	data   int64
   170  	udata  *byte
   171  }
   172  

View as plain text