1798 //sys Adjtimex(buf *Timex) (state int, err error) |
1798 //sys Adjtimex(buf *Timex) (state int, err error) |
1799 //sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) |
1799 //sysnb Capget(hdr *CapUserHeader, data *CapUserData) (err error) |
1800 //sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) |
1800 //sysnb Capset(hdr *CapUserHeader, data *CapUserData) (err error) |
1801 //sys Chdir(path string) (err error) |
1801 //sys Chdir(path string) (err error) |
1802 //sys Chroot(path string) (err error) |
1802 //sys Chroot(path string) (err error) |
|
1803 //sys ClockAdjtime(clockid int32, buf *Timex) (state int, err error) |
1803 //sys ClockGetres(clockid int32, res *Timespec) (err error) |
1804 //sys ClockGetres(clockid int32, res *Timespec) (err error) |
1804 //sys ClockGettime(clockid int32, time *Timespec) (err error) |
1805 //sys ClockGettime(clockid int32, time *Timespec) (err error) |
1805 //sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) |
1806 //sys ClockNanosleep(clockid int32, flags int, request *Timespec, remain *Timespec) (err error) |
1806 //sys Close(fd int) (err error) |
1807 //sys Close(fd int) (err error) |
1807 //sys CloseRange(first uint, last uint, flags uint) (err error) |
1808 //sys CloseRange(first uint, last uint, flags uint) (err error) |
1997 } |
1998 } |
1998 |
1999 |
1999 // offs2lohi splits offs into its low and high order bits. |
2000 // offs2lohi splits offs into its low and high order bits. |
2000 func offs2lohi(offs int64) (lo, hi uintptr) { |
2001 func offs2lohi(offs int64) (lo, hi uintptr) { |
2001 const longBits = SizeofLong * 8 |
2002 const longBits = SizeofLong * 8 |
2002 return uintptr(offs), uintptr(uint64(offs) >> longBits) |
2003 return uintptr(offs), uintptr(uint64(offs) >> (longBits - 1) >> 1) // two shifts to avoid false positive in vet |
2003 } |
2004 } |
2004 |
2005 |
2005 func Readv(fd int, iovs [][]byte) (n int, err error) { |
2006 func Readv(fd int, iovs [][]byte) (n int, err error) { |
2006 iovecs := make([]Iovec, 0, minIovec) |
2007 iovecs := make([]Iovec, 0, minIovec) |
2007 iovecs = appendBytes(iovecs, iovs) |
2008 iovecs = appendBytes(iovecs, iovs) |