Updated golang/x/net. Also updated golang.org/x/sys, as required by

hack/lint-dependencies.sh.
This commit is contained in:
Chao Xu
2020-10-31 16:21:08 -07:00
parent 24a9d07bf8
commit ec6e232126
225 changed files with 5186 additions and 8241 deletions

View File

@@ -141,23 +141,8 @@ func Getdirentries(fd int, buf []byte, basep *uintptr) (n int, err error) {
return
}
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 < 1 {
return "", EINVAL
}
return string(buf[:n]), nil
}
// TODO
func sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) {
return -1, ENOSYS