2014-04-23 09:35:27 +08:00
|
|
|
// +build freebsd
|
|
|
|
// +build amd64
|
|
|
|
|
2014-12-30 21:09:05 +08:00
|
|
|
package host
|
2014-04-23 09:35:27 +08:00
|
|
|
|
|
|
|
const (
|
2014-08-16 02:05:26 +08:00
|
|
|
UTNameSize = 16 /* see MAXLOGNAME in <sys/param.h> */
|
|
|
|
UTLineSize = 8
|
|
|
|
UTHostSize = 16
|
2014-04-23 09:35:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type utmp struct {
|
2014-08-16 02:05:26 +08:00
|
|
|
UtLine [UTLineSize]byte
|
|
|
|
UtName [UTNameSize]byte
|
|
|
|
UtHost [UTHostSize]byte
|
2014-04-30 15:16:07 +08:00
|
|
|
UtTime int32
|
2014-04-23 09:35:27 +08:00
|
|
|
}
|