github.com/aloncn/graphics-go@v0.0.1/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 type mOS struct { 10 waitsema uint32 // semaphore for parking on locks 11 } 12 13 func bsdthread_create(stk, arg unsafe.Pointer, fn uintptr) int32 14 func bsdthread_register() int32 15 16 //go:noescape 17 func mach_msg_trap(h unsafe.Pointer, op int32, send_size, rcv_size, rcv_name, timeout, notify uint32) int32 18 19 func mach_reply_port() uint32 20 func mach_task_self() uint32 21 func mach_thread_self() uint32 22 23 //go:noescape 24 func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 25 26 //go:noescape 27 func sigprocmask(how uint32, new, old *sigset) 28 29 //go:noescape 30 func sigaction(mode uint32, new *sigactiont, old *usigactiont) 31 32 //go:noescape 33 func sigaltstack(new, old *stackt) 34 35 func sigtramp() 36 37 //go:noescape 38 func setitimer(mode int32, new, old *itimerval) 39 40 func raise(sig int32) 41 func raiseproc(int32)