| // 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. |
| * System structs for Darwin, amd64 |
| struct stat { // really a stat64 |
| struct timespec st_atimespec; |
| struct timespec st_mtimespec; |
| struct timespec st_ctimespec; |
| struct timespec st_birthtimespec; |
| void bsdthread_create(void*, M*, G*, void(*)(void)); |
| void bsdthread_register(void); |
| typedef int32 kern_return_t; |
| typedef uint32 mach_port_t; |
| mach_port_t semcreate(void); |
| void semacquire(mach_port_t); |
| void semrelease(mach_port_t); |
| void semreset(mach_port_t); |
| void semdestroy(mach_port_t); |