mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: use 64-bit file size for truncation on Linux
Truncate and Ftruncate for 32-bit Linux should use 64-bit offset system calls. R=rsc CC=golang-dev, royger https://golang.org/cl/2943041
This commit is contained in:
parent
6101788972
commit
fa7341aafd
7 changed files with 54 additions and 50 deletions
|
|
@ -623,7 +623,6 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0)
|
|||
//sys fcntl(fd int, cmd int, arg int) (val int, errno int)
|
||||
//sys Fdatasync(fd int) (errno int)
|
||||
//sys Fsync(fd int) (errno int)
|
||||
//sys Ftruncate(fd int, length int64) (errno int)
|
||||
//sys Getdents(fd int, buf []byte) (n int, errno int) = SYS_GETDENTS64
|
||||
//sys Getpgid(pid int) (pgid int, errno int)
|
||||
//sys Getpgrp() (pid int)
|
||||
|
|
@ -665,7 +664,6 @@ func PtraceDetach(pid int) (errno int) { return ptrace(PTRACE_DETACH, pid, 0, 0)
|
|||
//sys Tee(rfd int, wfd int, len int, flags int) (n int64, errno int)
|
||||
//sys Tgkill(tgid int, tid int, sig int) (errno int)
|
||||
//sys Times(tms *Tms) (ticks uintptr, errno int)
|
||||
//sys Truncate(path string, length int64) (errno int)
|
||||
//sys Umask(mask int) (oldmask int)
|
||||
//sys Uname(buf *Utsname) (errno int)
|
||||
//sys Unlink(path string) (errno int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue