Skip to content

Commit c200b10

Browse files
fd0bradfitz
authored andcommitted
unix: Add FADV_* constants for linux/arm
This is a followup commit for 9eef40a and adds the constants needed for fadvise() on Linux for ARM that were missing. Fixes golang/go#16816 Change-Id: Ib7409f48bc07511d7014cb5791a6cc117a9a471e Reviewed-on: https://go-review.googlesource.com/31641 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 002cbb5 commit c200b10

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

unix/ztypes_linux_arm.go

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// +build arm,linux
22
// Created by cgo -godefs - DO NOT EDIT
3-
// cgo -godefs types_linux.go
3+
// cgo -godefs types_linux.go | go run mkpost.go
44

55
package unix
66

@@ -155,6 +155,15 @@ type Flock_t struct {
155155
Pad_cgo_1 [4]byte
156156
}
157157

158+
const (
159+
FADV_NORMAL = 0x0
160+
FADV_RANDOM = 0x1
161+
FADV_SEQUENTIAL = 0x2
162+
FADV_WILLNEED = 0x3
163+
FADV_DONTNEED = 0x4
164+
FADV_NOREUSE = 0x5
165+
)
166+
158167
type RawSockaddrInet4 struct {
159168
Family uint16
160169
Port uint16

0 commit comments

Comments
 (0)