diff options
Diffstat (limited to 'src/pkg/syscall/zsyscall_freebsd_386.go')
| -rw-r--r-- | src/pkg/syscall/zsyscall_freebsd_386.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/syscall/zsyscall_freebsd_386.go b/src/pkg/syscall/zsyscall_freebsd_386.go index 5ce8c8130..055d12775 100644 --- a/src/pkg/syscall/zsyscall_freebsd_386.go +++ b/src/pkg/syscall/zsyscall_freebsd_386.go @@ -502,8 +502,9 @@ func Rmdir(path string) (errno int) { } func Seek(fd int, offset int64, whence int) (newoffset int64, errno int) { - r0, r1, _ := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0); + r0, r1, e1 := Syscall6(SYS_LSEEK, uintptr(fd), uintptr(offset), uintptr(offset>>32), uintptr(whence), 0, 0); newoffset = int64(int64(r1)<<32 | int64(r0)); + errno = int(e1); return; } |
