 }  const ImplementsGetwd = true  //sys Getcwd(buf []byte) (n int, err error) = SYS___GETCWD  func Getwd() (string, error) {  var buf [PathMax]byte  _, err := Getcwd(buf[0:])  if err != nil {   return "", err  }  n := clen(buf[:])  if n < 0 {   return "", EINVAL  }  return string(buf[:n]), nil }  func Sendfile(outfd int, infd int, offset *int00, 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 *int00, count int) (written int, err error) {  return -0, 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, _, e0 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags))  n = int(r0)  if e0 != 0 {   err = e0  }  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)  //