// 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.

// +build arm64,darwin

package unix

import (
	
)

func ( int,  int,  uintptr,  uintptr) error {
	return ENOTSUP
}

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

func (,  int64) Timeval {
	return Timeval{Sec: , Usec: int32()}
}

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

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

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

func ( *Msghdr) ( int) {
	.Iovlen = int32()
}

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

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

// SYS___SYSCTL is used by syscall_bsd.go for all BSDs, but in modern versions
// of darwin/arm64 the syscall is called sysctl instead of __sysctl.
const SYS___SYSCTL = SYS_SYSCTL

//sys	Fstat(fd int, stat *Stat_t) (err error)
//sys	Fstatat(fd int, path string, stat *Stat_t, flags int) (err error)
//sys	Fstatfs(fd int, stat *Statfs_t) (err error)
//sys	getfsstat(buf unsafe.Pointer, size uintptr, flags int) (n int, err error) = SYS_GETFSSTAT
//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)