github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/defs_darwin.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  //go:build ignore
     6  
     7  /*
     8  Input to cgo.
     9  
    10  GOARCH=amd64 go tool cgo -cdefs defs_darwin.go >defs_darwin_amd64.h
    11  */
    12  
    13  package runtime
    14  
    15  import "C"
    16  
    17  const (
    18  	EINTR     = C.EINTR
    19  	EFAULT    = C.EFAULT
    20  	EAGAIN    = C.EAGAIN
    21  	ETIMEDOUT = C.ETIMEDOUT
    22  
    23  	PROT_NONE  = C.PROT_NONE
    24  	PROT_READ  = C.PROT_READ
    25  	PROT_WRITE = C.PROT_WRITE
    26  	PROT_EXEC  = C.PROT_EXEC
    27  
    28  	MAP_ANON    = C.MAP_ANON
    29  	MAP_PRIVATE = C.MAP_PRIVATE
    30  	MAP_FIXED   = C.MAP_FIXED
    31  
    32  	MADV_DONTNEED      = C.MADV_DONTNEED
    33  	MADV_FREE          = C.MADV_FREE
    34  	MADV_FREE_REUSABLE = C.MADV_FREE_REUSABLE
    35  	MADV_FREE_REUSE    = C.MADV_FREE_REUSE
    36  
    37  	SA_SIGINFO   = C.SA_SIGINFO
    38  	SA_RESTART   = C.SA_RESTART
    39  	SA_ONSTACK   = C.SA_ONSTACK
    40  	SA_USERTRAMP = C.SA_USERTRAMP
    41  	SA_64REGSET  = C.SA_64REGSET
    42  
    43  	SIGHUP    = C.SIGHUP
    44  	SIGINT    = C.SIGINT
    45  	SIGQUIT   = C.SIGQUIT
    46  	SIGILL    = C.SIGILL
    47  	SIGTRAP   = C.SIGTRAP
    48  	SIGABRT   = C.SIGABRT
    49  	SIGEMT    = C.SIGEMT
    50  	SIGFPE    = C.SIGFPE
    51  	SIGKILL   = C.SIGKILL
    52  	SIGBUS    = C.SIGBUS
    53  	SIGSEGV   = C.SIGSEGV
    54  	SIGSYS    = C.SIGSYS
    55  	SIGPIPE   = C.SIGPIPE
    56  	SIGALRM   = C.SIGALRM
    57  	SIGTERM   = C.SIGTERM
    58  	SIGURG    = C.SIGURG
    59  	SIGSTOP   = C.SIGSTOP
    60  	SIGTSTP   = C.SIGTSTP
    61  	SIGCONT   = C.SIGCONT
    62  	SIGCHLD   = C.SIGCHLD
    63  	SIGTTIN   = C.SIGTTIN
    64  	SIGTTOU   = C.SIGTTOU
    65  	SIGIO     = C.SIGIO
    66  	SIGXCPU   = C.SIGXCPU
    67  	SIGXFSZ   = C.SIGXFSZ
    68  	SIGVTALRM = C.SIGVTALRM
    69  	SIGPROF   = C.SIGPROF
    70  	SIGWINCH  = C.SIGWINCH
    71  	SIGINFO   = C.SIGINFO
    72  	SIGUSR1   = C.SIGUSR1
    73  	SIGUSR2   = C.SIGUSR2
    74  
    75  	FPE_INTDIV = C.FPE_INTDIV
    76  	FPE_INTOVF = C.FPE_INTOVF
    77  	FPE_FLTDIV = C.FPE_FLTDIV
    78  	FPE_FLTOVF = C.FPE_FLTOVF
    79  	FPE_FLTUND = C.FPE_FLTUND
    80  	FPE_FLTRES = C.FPE_FLTRES
    81  	FPE_FLTINV = C.FPE_FLTINV
    82  	FPE_FLTSUB = C.FPE_FLTSUB
    83  
    84  	BUS_ADRALN = C.BUS_ADRALN
    85  	BUS_ADRERR = C.BUS_ADRERR
    86  	BUS_OBJERR = C.BUS_OBJERR
    87  
    88  	SEGV_MAPERR = C.SEGV_MAPERR
    89  	SEGV_ACCERR = C.SEGV_ACCERR
    90  
    91  	ITIMER_REAL    = C.ITIMER_REAL
    92  	ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
    93  	ITIMER_PROF    = C.ITIMER_PROF
    94  
    95  	EV_ADD       = C.EV_ADD
    96  	EV_DELETE    = C.EV_DELETE
    97  	EV_CLEAR     = C.EV_CLEAR
    98  	EV_RECEIPT   = C.EV_RECEIPT
    99  	EV_ERROR     = C.EV_ERROR
   100  	EV_EOF       = C.EV_EOF
   101  	EVFILT_READ  = C.EVFILT_READ
   102  	EVFILT_WRITE = C.EVFILT_WRITE
   103  
   104  	PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
   105  
   106  	F_GETFL = C.F_GETFL
   107  	F_SETFL = C.F_SETFL
   108  
   109  	O_WRONLY   = C.O_WRONLY
   110  	O_NONBLOCK = C.O_NONBLOCK
   111  	O_CREAT    = C.O_CREAT
   112  	O_TRUNC    = C.O_TRUNC
   113  
   114  	VM_REGION_BASIC_INFO_COUNT_64 = C.VM_REGION_BASIC_INFO_COUNT_64
   115  	VM_REGION_BASIC_INFO_64       = C.VM_REGION_BASIC_INFO_64
   116  )
   117  
   118  type StackT C.struct_sigaltstack
   119  type Sighandler C.union___sigaction_u
   120  
   121  type Sigaction C.struct___sigaction
   122  type Usigaction C.struct_sigaction
   123  type Sigset C.sigset_t
   124  type Sigval C.union_sigval
   125  type Siginfo C.siginfo_t
   126  type Timeval C.struct_timeval
   127  type Itimerval C.struct_itimerval
   128  type Timespec C.struct_timespec
   129  
   130  type FPControl C.struct_fp_control
   131  type FPStatus C.struct_fp_status
   132  type RegMMST C.struct_mmst_reg
   133  type RegXMM C.struct_xmm_reg
   134  
   135  type Regs64 C.struct_x86_thread_state64
   136  type FloatState64 C.struct_x86_float_state64
   137  type ExceptionState64 C.struct_x86_exception_state64
   138  type Mcontext64 C.struct_mcontext64
   139  
   140  type Regs32 C.struct_i386_thread_state
   141  type FloatState32 C.struct_i386_float_state
   142  type ExceptionState32 C.struct_i386_exception_state
   143  type Mcontext32 C.struct_mcontext32
   144  
   145  type Ucontext C.struct_ucontext
   146  
   147  type Kevent C.struct_kevent
   148  
   149  type Pthread C.pthread_t
   150  type PthreadAttr C.pthread_attr_t
   151  type PthreadMutex C.pthread_mutex_t
   152  type PthreadMutexAttr C.pthread_mutexattr_t
   153  type PthreadCond C.pthread_cond_t
   154  type PthreadCondAttr C.pthread_condattr_t
   155  
   156  type MachTimebaseInfo C.mach_timebase_info_data_t
   157  
   158  type MachPort C.mach_port_t
   159  type MachVMMapRead C.vm_map_read_t
   160  type MachVMAddress C.mach_vm_address_t
   161  type MachVMSize C.mach_vm_size_t
   162  type MachVMRegionFlavour C.vm_region_flavor_t
   163  type MachVMRegionInfo C.vm_region_info_t
   164  type MachMsgTypeNumber C.mach_msg_type_number_t