os_darwin.go 998 B

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