mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: fix arm build (fix bugs in generator, to add O_LARGEFILE)
R=r CC=golang-dev https://golang.org/cl/1021043
This commit is contained in:
parent
b3901dc1d8
commit
23bf408d41
10 changed files with 670 additions and 450 deletions
|
|
@ -4,6 +4,15 @@
|
|||
|
||||
package syscall
|
||||
|
||||
// These seem not to be defined in our gcc's ARM headers
|
||||
// and are thus missing from zerrors_linux_arm.go.
|
||||
const (
|
||||
WSTOPPED = 0x7f
|
||||
O_CLOEXEC = 0
|
||||
EPOLLRDHUP = EPOLLHUP
|
||||
EPOLLONESHOT = 0x40000000
|
||||
)
|
||||
|
||||
func Getpagesize() int { return 4096 }
|
||||
|
||||
func TimespecToNsec(ts Timespec) int64 { return int64(ts.Sec)*1e9 + int64(ts.Nsec) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue