diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:13:40 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:13:40 +0200 |
commit | 5ff4c17907d5b19510a62e08fd8d3b11e62b431d (patch) | |
tree | c0650497e988f47be9c6f2324fa692a52dea82e1 /src/pkg/runtime/darwin/os.h | |
parent | 80f18fc933cf3f3e829c5455a1023d69f7b86e52 (diff) | |
download | golang-upstream/60.tar.gz |
Imported Upstream version 60upstream/60
Diffstat (limited to 'src/pkg/runtime/darwin/os.h')
-rw-r--r-- | src/pkg/runtime/darwin/os.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/pkg/runtime/darwin/os.h b/src/pkg/runtime/darwin/os.h new file mode 100644 index 000000000..db3c2e8a7 --- /dev/null +++ b/src/pkg/runtime/darwin/os.h @@ -0,0 +1,31 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#define SIG_DFL ((void*)0) +#define SIG_IGN ((void*)1) + +int32 runtime·bsdthread_create(void*, M*, G*, void(*)(void)); +void runtime·bsdthread_register(void); +int32 runtime·mach_msg_trap(MachHeader*, int32, uint32, uint32, uint32, uint32, uint32); +uint32 runtime·mach_reply_port(void); +void runtime·mach_semacquire(uint32); +uint32 runtime·mach_semcreate(void); +void runtime·mach_semdestroy(uint32); +void runtime·mach_semrelease(uint32); +void runtime·mach_semreset(uint32); +uint32 runtime·mach_task_self(void); +uint32 runtime·mach_task_self(void); +uint32 runtime·mach_thread_self(void); +uint32 runtime·mach_thread_self(void); + +struct Sigaction; +void runtime·sigaction(uintptr, struct Sigaction*, struct Sigaction*); + +struct StackT; +void runtime·sigaltstack(struct StackT*, struct StackT*); +void runtime·sigtramp(void); +void runtime·sigpanic(void); +void runtime·setitimer(int32, Itimerval*, Itimerval*); + +void runtime·raisesigpipe(void); |