goutmp/main/test_bsd.go
Russ Magee c3193d4a77 More fixes to +build constraints (oops, freebsd not bsd)
Signed-off-by: Russ Magee <rmagee@gmail.com>
2020-04-25 19:42:32 -07:00

18 lines
304 B
Go

// +build freebsd
package main
import (
"time"
"blitter.com/go/goutmp"
)
func main() {
user := "bin"
host := "test.example.com"
utmp := goutmp.Put_utmp(user, "/dev/pts0", host)
goutmp.Put_lastlog_entry("hkexsh", user, "/dev/pts0", host)
time.Sleep(10 * time.Second)
goutmp.Unput_utmp(utmp)
}