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:
Ian Lance Taylor 2010-09-21 06:49:56 -07:00
parent 4659f6de38
commit 7d03d0ec6b
8 changed files with 172 additions and 152 deletions

View file

@ -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