Matches Darwin and the BSDs. This means leveldb-go, kv,
Camlistore, etc can stop defining these structs on Linux by
hand.
Update #7059
R=golang-codereviews, dave, iant
CC=golang-codereviews
https://golang.org/cl/
53350043
_ int = syscall.TCOFLUSH
)
}
+
+func _() {
+ _ = syscall.Flock_t{
+ Type: int16(0),
+ Whence: int16(0),
+ Start: 0,
+ Len: 0,
+ Pid: int32(0),
+ }
+}
type Fsid C.fsid_t
+type Flock_t C.struct_flock
+
// Sockets
type RawSockaddrInet4 C.struct_sockaddr_in
X__val [2]int32
}
+type Flock_t struct {
+ Type int16
+ Whence int16
+ Start int64
+ Len int64
+ Pid int32
+}
+
type RawSockaddrInet4 struct {
Family uint16
Port uint16
X__val [2]int32
}
+type Flock_t struct {
+ Type int16
+ Whence int16
+ Pad_cgo_0 [4]byte
+ Start int64
+ Len int64
+ Pid int32
+ Pad_cgo_1 [4]byte
+}
+
type RawSockaddrInet4 struct {
Family uint16
Port uint16
X__val [2]int32
}
+type Flock_t struct {
+ Type int16
+ Whence int16
+ Start int64
+ Len int64
+ Pid int32
+}
+
type RawSockaddrInet4 struct {
Family uint16
Port uint16