// Copyright 2015 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	Fstatfs(fd int, stat *Statfs_t) (err error)
//sysnb	Gettimeofday(tp *Timeval) (err error)
//sys	Lstat(path string, stat *Stat_t) (err error)
//sys	Stat(path string, stat *Stat_t) (err error)
//sys	Statfs(path string, stat *Statfs_t) (err error)
//sys	fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys	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_sendfile
//go: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)

func (, , , , , , , , ,  uintptr) (,  uintptr,  Errno) // sic