Handbook
Glossary
utmpx>utmpx-record ( utmpx -- utmpx-record )
Vocabulary
unix
.
utmpx
Inputs
utmpx
an
object
Outputs
utmpx-record
an
object
Definition
USING:
system
;
IN:
unix.utmpx
HOOK:
utmpx>utmpx-record
os
( utmpx -- utmpx-record )
Methods
USING:
accessors
calendar.unix
combinators
kernel
system
unix.ffi
unix.utmpx
;
M:
macos
utmpx>utmpx-record
[
new-utmpx-record
]
dip
{
[
ut_user>>
_UTX_USERSIZE
memory>string
>>user
]
[
ut_id>>
_UTX_IDSIZE
memory>string
>>id
]
[
ut_line>>
_UTX_LINESIZE
memory>string
>>line
]
[
ut_pid>>
>>pid
]
[
ut_type>>
>>type
]
[
ut_tv>>
timeval>unix-time
>>timestamp
]
[
ut_host>>
_UTX_HOSTSIZE
memory>string
>>host
]
}
cleave
;