mirror of
https://gogs.blitter.com/RLabs/goutmp
synced 2024-08-14 19:26:41 +00:00
FreeBSD 12 support
This commit is contained in:
parent
2b9cd1bafd
commit
c076bc0153
4 changed files with 154 additions and 0 deletions
17
main/test_bsd.go
Normal file
17
main/test_bsd.go
Normal 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)
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
// +build linux
|
||||
package main
|
||||
|
||||
import (
|
Loading…
Add table
Add a link
Reference in a new issue