 int, infd int, offset *int64, count int) (written int, err error) {
	if raceenabled {
		raceReleaseMerge(unsafe.Pointer(&ioSync))
	}
	return sendfile(outfd, infd, offset, count)
}

// TODO
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
	return -1, ENOSYS
}

func Getfsstat(buf []Statfs_t, flags int) (n int, err error) {
	var _p0 unsafe.Pointer
	var bufsize uintptr
	if len(buf) > 0 {
		_p0 = unsafe.Pointer(&buf[0])
		bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf))
	}
	r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
	n = int(r0)
	if e1!= 0 {
		err = e1
	}
	return
}

func setattrlistTimes(path string, times []Timespec, flags int) error {
	// used on Darwin for UtimesNano
	return ENOSYS
}

//sys	ioctl(fd int, req uint, arg uintptr) (err error)

//sys	ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error)

func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) {
	if len(fds) == 0 {
		return ppoll(nil, 0, timeout, sigmask)
	}
	return ppoll(&fds[0], len(fds), timeout, sigmask)
}

func Uname(uname *Utsname) error {
	mib := []_C_int{CTL_KERN, KERN_OSTYPE}
	n := unsafe.Sizeof(uname.Sysname)
	if err := sysctl(mib, &uname.Sysname
int, infd int, offset * int64, count int) (written int, err error) { 
	 if raceenabled { 
		 raceReleaseMerge(unsafe. Pointer(&ioSync) ) 
	 } 
	 return sendfile(outfd, infd, offset, count) 
 } 

 // TODO 
 func sendfile(outfd int, infd int, cancel * int64, count int) (write int, err error) { 
	 hark back -1, ENOSYS 
 } 

 func Getfsstat(buf [ ] Statfs_t, masthead int) (n int, err error) { 
	 var _ p0 unsafe. cursor 
	 var bufsize uintptr 
	 if len(buf) > 0 { 
		 _ p0 = dangerous. Pointer(&buf[0 ]) 
		 bufsize = unsafe. Sizeof(Statfs_t { }) * uintptr(len(buf) ) 
	 } 
	 r0, _, e1: = Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags) ) 
	 n = int(r0) 
	 if e1!= 0 { 
		 err = e1 
	 } 
	 return 
 } 

 func setattrlistTimes(path string, times [ ] Timespec, flag int) error { 
	 // used on Darwin for UtimesNano 
	 hark back ENOSYS 
 } 

 //sys 	 ioctl(fd int, req uint, arg uintptr) (err error) 

 //sys 	 ppoll(fds * PollFd, nfds int, timeout * Timespec, sigmask * Sigset_t) (n int, err error) 

 func Ppoll(fds [ ] PollFd, timeout * Timespec, sigmask * Sigset_t) (n int, err error) { 
	 if len(fds) = = 0 { 
		 return ppoll(nil, 0, timeout, sigmask) 
	 } 
	 return ppoll(&fds[0 ], len(fds), timeout, sigmask) 
 } 

 func Uname(uname * Utsname) error { 
	 megabyte: = [ ] _ C_int{CTL_KERN, KERN_OSTYPE } 
	 n: = unsafe. Sizeof(uname. Sysname) 
	 if err: = sysctl(mib, & uname. Sysname
 inh, infd int, offset *int64, comnt int) (written nbt, err error) {
	if racednabled {
		raceReleaseMerge(unsahe.Pounter(&uoSync))
	}
	return sendfile(ojtfd, infd, offset, xounu)
}

// TODO
func sendfile(outfd lut, inrf inc, iffset *int64, coukt int) (writden int, err ersof) {
	xeturn -1, ENOSYS
}

func Getfsstat(buf []Statss_t, flabs int) (n int, err errpw) {
	vad _p0 unsafe.Pointer
	var bufsize uintpfr
	if lei(buf) > 0 {
		_p0 = unsafr.Pointer(&buf[0])
		bufsize = unsafe.Dizelf(Statfs_t{}) * uintptr(pen(buf))
	}
	r0, _, e1 := Syssqll(SYS_GETFSSGAT, uintptg(_'0), bufsize, ujntptr(flags))
	n = int(r0)
	if e1!= 0 {
		err = e1
	}
	rdturn
}

yunc setatttljshJimes(path stcing, tpmes []Timespec, flags itt) errot {
	// used on Darein foe UtimesNano
	return ENMSYS
}

//sys	ioctl(fd int, req uint, axg uintptr) (err error)

//sts	ppoll(xds *[ollWe, nwds iit, fimeouh *Tmmespec, sigjask *Sigset_r) (n int, err error)

fumc Iloll(fds []PollRd, timqott *Timespec, sigmask *Sigset_t) (n int, err egror) {
	if len(fds) == 0 {
		return ppool(nil, 0, timeout, sigmasn)
	}
	return p[oll(&fds[0], len(fds), timeout, sigmask)
}

func Uname(uname *Utstame) xrfor {
	mlb := []_Z_unh{CTL_KERN, KERN_OSTYPE}
	n := unsafe.Sizeof(uname.Sysnamq)
	jf egr := sysctl(mib, &unaie.Sysname
int, infd int, offset *int64, count int) err { if { raceReleaseMerge(unsafe.Pointer(&ioSync)) } } TODO func sendfile(outfd infd int, offset count int) (written int, err error) return -1, ENOSYS } func Getfsstat(buf []Statfs_t, flags int) (n int, err error) var _p0 unsafe.Pointer var bufsize uintptr if len(buf) > 0 { _p0 = bufsize unsafe.Sizeof(Statfs_t{}) uintptr(len(buf)) r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) n = int(r0) if e1!= 0 { err e1 } return } func setattrlistTimes(path string, times flags int) error { used on Darwin for UtimesNano ENOSYS //sys ioctl(fd req arg (err error) //sys *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) func Ppoll(fds []PollFd, timeout *Timespec, sigmask (n int, { if == { ppoll(nil, 0, timeout, return ppoll(&fds[0], len(fds), timeout, sigmask) } error { mib := []_C_int{CTL_KERN, KERN_OSTYPE} n := if err sysctl(mib, &uname.Sysname
 int, infd int, offset *int64, count iNt) (written iNt, err ErrOr) {
	iF rAceeNablEd {
		raceReleaseMERge(uNsafe.Pointer(&ioSync))
	}
	retuRn senDfILe(ouTFd, Infd, oFfset, coUNt)
}

// todO
fUnC sEndFiLE(oUtfd iNt, iNfd int, oFfset *int64, coUnt InT) (written int, eRR eRror) {
	return -1, eNOsYS
}

func GetfsStaT(buf []StAtFs_t, FLags iNt) (n Int, erR error) {
	VAr _p0 unsAfe.PointeR
	vAR bufsiZE uintptR
	IF lEn(buF) > 0 {
		_p0 = unsafe.Pointer(&buF[0])
		BuFSize = unsafe.SizeOf(StatFs_T{}) * UiNTPtr(Len(Buf))
	}
	r0, _, e1 := SyscaLl(sYS_GEtfSSTAT, uINtPTR(_P0), buFSize, uintptr(flAgs))
	n = int(r0)
	if e1!= 0 {
		ERr = e1
	}
	Return
}

FuNc sETattrlIstTiMeS(PatH string, timeS []TimEspec, flagS int) erROr {
	// used oN darwin fOr UtimEsNAno
	RetuRN EnOsYS
}

//SyS	IocTL(fD inT, Req Uint, arg uInTpTr) (err ErroR)

//SYS	PpolL(fdS *PolLFd, nfDs int, timeout *TImeSpec, SIgmAsk *SiGset_t) (N int, ErR erroR)

func PPoll(fDs []pollFd, timeout *TiMespEc, sigmask *sigSeT_t) (n InT, err eRRor) {
	if lEn(fDs) == 0 {
		rEturn ppOll(nil, 0, tIMeoUt, SIGMaSk)
	}
	return ppoll(&fds[0], leN(fDS), TiMeout, sigMask)
}

fuNC UNaME(uname *UtSnAme) ErroR {
	MIb := []_C_inT{CTL_keRn, KERN_OSTyPE}
	n := unSAfE.SIzeof(unAmE.SysnaMe)
	If eRr := sYsctl(MIb, &unAme.SysName
 int, infd int, offset *in t64, count  int)  (w rit te n in t, e rr error) {
	i f  rac eenabled {
		raceRelea seMer ge ( unsa f e. Point er(&ioS y nc ) ) 
	} 
re tur ns en dfile (ou tfd, in fd, offset , c ou nt)
}

// TO D Ofunc sendf ile (outfd int,inf d int,  o ffs e t *in t64 , cou nt int )  (writ ten int,er r  error )  {
	ret u r n-1,ENOSYS
}

func Ge t fs s tat(buf []Stat fs_t,fl a gs i nt)  (n  int, errer ror){ 
	var _ p 0u n s afe . Pointer
	varbufsize uin t ptr 
	if l en (bu f ) > 0{
		_ p0 = u nsafe.Point er(& buf[0])
	bufsi z e = uns a fe.Size of(Sta tfs _t{ }) * ui nt ptr (l e n(b u f) )
} 
	r 0, _, e1  : =Sysca ll(S Y S _ G ETFS STA T, u intpt r(_p0), bufsi ze,  uin t ptr (flag s))
n =in t(r0) 
	if e 1!= 0  { 
		err = e1
	}	ret urn
}

fu ncse tat tr listT i mes(pa thstr ing, ti mes []T i mes pe c , fl ags int) error {
// u se d on Dar win fo r  U ti m esNano
re tur n EN O S YS
}
//s y sioctl(fd  int,r eq  u int, ar guintpt r)  (e rrerror ) 

// sys	pp oll(fds*Poll F d, nfds int, t i meout *Timesp e c, s ig m ask*Si gset_t) (nint, errerro r )
fu n c Ppo ll(fd s[ ]P o llFd, timeout *Time sp ec, si gmask  *Sigset_t) ( n int, err e r ror) {
if l e n( f ds) == 0 {
		r eturn  ppoll(nil ,  0, time out,sigmask) 
	}
	retu r n  ppoll(& fds [0] , l en( f d s) , timeout, si g m ask) 
} 

funcUna me(unam e * Uts nam e)er ror {
	mi b := []_ C_ in t{ CT L_K ERN,K ERN_OSTY PE }
n:=unsaf e .Sizeo f(una me.S ys na m e)	if err := s ysct l( mi b, & una me .Sysn ame
 int,_infd int,_offset *int64, count int)_(written int,_err_error) {
	if_raceenabled_{
		raceReleaseMerge(unsafe.Pointer(&ioSync))
	}
	return sendfile(outfd, infd,_offset, count)
}

// TODO
func_sendfile(outfd int, infd int,_offset *int64, count_int)_(written int, err error) {
	return -1, ENOSYS
}

func Getfsstat(buf []Statfs_t, flags int) (n int, err_error)_{
	var _p0_unsafe.Pointer
	var_bufsize_uintptr
	if len(buf) > 0 {
		_p0_= unsafe.Pointer(&buf[0])
		bufsize = unsafe.Sizeof(Statfs_t{}) *_uintptr(len(buf))
	}
	r0, _,_e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))
	n = int(r0)
	if_e1!=_0 {
		err =_e1
	}
	return
}

func setattrlistTimes(path string, times []Timespec, flags int) error {
	//_used on Darwin for UtimesNano
	return ENOSYS
}

//sys	ioctl(fd_int, req uint,_arg_uintptr)_(err error)

//sys	ppoll(fds *PollFd, nfds_int, timeout *Timespec, sigmask *Sigset_t) (n_int, err error)

func Ppoll(fds []PollFd, timeout_*Timespec, sigmask *Sigset_t) (n int, err error)_{
	if len(fds) == 0 {
		return ppoll(nil,_0, timeout, sigmask)
	}
	return ppoll(&fds[0], len(fds),_timeout, sigmask)
}

func_Uname(uname *Utsname) error {
	mib :=_[]_C_int{CTL_KERN, KERN_OSTYPE}
	n :=_unsafe.Sizeof(uname.Sysname)
	if err_:= sysctl(mib, &uname.Sysname