Handbook
Glossary
utmpx
Vocabulary
unix
.
ffi
Definition
USING:
alien.c-types
classes.struct
unix.time
unix.types
;
IN:
unix.ffi
STRUCT:
utmpx
{
ut_user char[_UTX_USERSIZE]
}
{
ut_id char[_UTX_IDSIZE]
}
{
ut_line char[_UTX_LINESIZE]
}
{
ut_pid
pid_t
initial:
0
}
{
ut_type
short
initial:
0
}
{
ut_tv
timeval
initial:
S{
timeval
{
sec 0
}
{
usec 0
}
}
}
{
ut_host char[_UTX_HOSTSIZE]
}
{
ut_pad uint[16]
}
;
Methods
USING:
classes.struct
classes.struct.private
kernel
unix.ffi
;
M:
utmpx
clone
clone-underlying
\
utmpx
memory>struct
;
inline
USING:
accessors
classes.struct
combinators.smart
unix.ffi
;
M:
utmpx
struct-slot-values
{
[
ut_user>>
]
[
ut_id>>
]
[
ut_line>>
]
[
ut_pid>>
]
[
ut_type>>
]
[
ut_tv>>
]
[
ut_host>>
]
[
ut_pad>>
]
}
cleave>array
;
inline