FreeBSD 12 support

This commit is contained in:
Russ Magee 2020-04-26 00:50:02 +00:00
parent 2b9cd1bafd
commit c076bc0153
4 changed files with 154 additions and 0 deletions

17
main/test_bsd.go Normal file
View file

@ -0,0 +1,17 @@
// +build bsd
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)
}

View file

@ -1,3 +1,4 @@
// +build linux
package main
import (