[freebsd]host: change freebsd struct for 386 and arm.

pull/712/head
WAKAYAMA shirou 6 years ago
parent 2fd3f03f84
commit 669b2710bf

@ -1,4 +1,4 @@
// Created by cgo -godefs - DO NOT EDIT // Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs types_freebsd.go // cgo -godefs types_freebsd.go
package host package host
@ -9,7 +9,7 @@ const (
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x4 sizeofLong = 0x4
sizeofLongLong = 0x8 sizeofLongLong = 0x8
sizeOfUtmpx = 197 // TODO why should 197 sizeOfUtmpx = 0xc5
) )
type ( type (
@ -27,17 +27,11 @@ type Utmp struct {
} }
type Utmpx struct { type Utmpx struct {
Type int16 Type uint8
Tv Timeval Tv uint64
Id [8]int8 Id [8]int8
Pid int32 Pid uint32
User [32]int8 User [32]int8
Line [16]int8 Line [16]int8
Host [125]int8 Host [128]int8
// X__ut_spare [64]int8
}
type Timeval struct {
Sec [4]byte
Usec [3]byte
} }

@ -1,4 +1,4 @@
// Created by cgo -godefs - DO NOT EDIT // Code generated by cmd/cgo -godefs; DO NOT EDIT.
// cgo -godefs types_freebsd.go // cgo -godefs types_freebsd.go
package host package host
@ -9,7 +9,7 @@ const (
sizeofInt = 0x4 sizeofInt = 0x4
sizeofLong = 0x8 sizeofLong = 0x8
sizeofLongLong = 0x8 sizeofLongLong = 0x8
sizeOfUtmpx = 197 // TODO: why should 197, not 0x118 sizeOfUtmpx = 0xc5
) )
type ( type (
@ -27,18 +27,11 @@ type Utmp struct {
} }
type Utmpx struct { type Utmpx struct {
Type int16 Type uint8
Tv Timeval Tv uint64
Id [8]int8 Id [8]int8
Pid int32 Pid uint32
User [32]int8 User [32]int8
Line [16]int8 Line [16]int8
Host [125]int8 Host [128]int8
// Host [128]int8
// X__ut_spare [64]int8
}
type Timeval struct {
Sec [4]byte
Usec [3]byte
} }

Loading…
Cancel
Save