github.com/razvanm/vanadium-go-1.3@v0.0.0-20160721203343-4a65068e5915/src/runtime/os_darwin.go (about)

     1  // Copyright 2014 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  package runtime
     6  
     7  import "unsafe"
     8  
     9  func bsdthread_create(stk, mm, gg, fn unsafe.Pointer) int32
    10  func bsdthread_register() int32
    11  func mach_msg_trap(h unsafe.Pointer, op int32, send_size, rcv_size, rcv_name, timeout, notify uint32) int32
    12  func mach_reply_port() uint32
    13  func mach_task_self() uint32
    14  func mach_thread_self() uint32
    15  func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    16  func sigprocmask(sig int32, new, old unsafe.Pointer)
    17  func sigaction(mode uint32, new, old unsafe.Pointer)
    18  func sigaltstack(new, old unsafe.Pointer)
    19  func sigtramp()
    20  func setitimer(mode int32, new, old unsafe.Pointer)
    21  func mach_semaphore_wait(sema uint32) int32
    22  func mach_semaphore_timedwait(sema, sec, nsec uint32) int32
    23  func mach_semaphore_signal(sema uint32) int32
    24  func mach_semaphore_signal_all(sema uint32) int32