mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: Use vsyscall for syscall.Gettimeofday and .Time on linux amd64.
Regenerate zsyscall_linux_*.go files with recent changes to mksyscall.sh. Add socketpair to syscall_linux_amd64.go; for some reason it was in the generated file but not in the source file. R=rsc, r2 CC=golang-dev https://golang.org/cl/2190044
This commit is contained in:
parent
4659f6de38
commit
7d03d0ec6b
8 changed files with 172 additions and 152 deletions
|
|
@ -55,6 +55,10 @@ func NsecToTimeval(nsec int64) (tv Timeval) {
|
|||
// Implemented in assembly to avoid allocation.
|
||||
func Seek(fd int, offset int64, whence int) (newoffset int64, errno int)
|
||||
|
||||
// Vsyscalls on amd64.
|
||||
//sys Gettimeofday(tv *Timeval) (errno int)
|
||||
//sys Time(t *Time_t) (tt Time_t, errno int)
|
||||
|
||||
// On x86 Linux, all the socket calls go through an extra indirection,
|
||||
// I think because the 5-register system call interface can't handle
|
||||
// the 6-argument calls like sendto and recvfrom. Instead the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue