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.

package syscall

import 

func (,  int64) Timespec {
	return Timespec{Sec: , Nsec: }
}

func (,  int64) Timeval {
	return Timeval{Sec: , Usec: int32()}
}
sys Fstat(fd int, stat *Stat_t) (err error) = SYS_fstat64sys Fstatfs(fd int, stat *Statfs_t) (err error) = SYS_fstatfs64sysnb Gettimeofday(tp *Timeval) (err error)sys Lstat(path string, stat *Stat_t) (err error) = SYS_lstat64sys Stat(path string, stat *Stat_t) (err error) = SYS_stat64sys Statfs(path string, stat *Statfs_t) (err error) = SYS_statfs64sys fstatat(fd int, path string, stat *Stat_t, flags int) (err error) = SYS_fstatat64sys ptrace1(request int, pid int, addr uintptr, data uintptr) (err error) = SYS_ptrace

func ( *Kevent_t, , ,  int) {
	.Ident = uint64()
	.Filter = int16()
	.Flags = uint16()
}

func ( *Iovec) ( int) {
	.Len = uint64()
}

func ( *Msghdr) ( int) {
	.Controllen = uint32()
}

func ( *Cmsghdr) ( int) {
	.Len = uint32()
}

func ( int,  int,  *int64,  int) ( int,  error) {
	var  = uint64()

	, ,  := syscall6(funcPC(libc_sendfile_trampoline), uintptr(), uintptr(), uintptr(*), uintptr(unsafe.Pointer(&)), 0, 0)

	 = int()

	if  != 0 {
		 = 
	}
	return
}

func ()
go:linkname libc_sendfile libc_sendfilego:cgo_import_dynamic libc_sendfile sendfile "/usr/lib/libSystem.B.dylib"
Implemented in the runtime package (runtime/sys_darwin_64.go)
func (, , ,  uintptr) (,  uintptr,  Errno)