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

@ -58,6 +58,10 @@ func NsecToTimeval(nsec int64) (tv Timeval) {
//sys Stat(path string, stat *Stat_t) (errno int) = SYS_STAT64
//sys Statfs(path string, buf *Statfs_t) (errno int) = SYS_STATFS64
// Vsyscalls on amd64.
//sys Gettimeofday(tv *Timeval) (errno int)
//sys Time(t *Time_t) (tt Time_t, errno int)
// TODO(kaib): add support for tracing
func (r *PtraceRegs) PC() uint64 { return 0 }