Given the device line,
the logout
function shall search
the user accounting database which is read by getutent
for an entry with the corresponding line,
and with the type of USER_PROCESS
.
If a corresponding entry is located, it shall be updated as follows:
The ut_name field shall be set to zeroes
(UT_NAMESIZE
NUL bytes).
The ut_host field shall be set to zeroes
(UT_HOSTSIZE
NUL bytes).
The ut_tv shall be set to the current time of day.
The ut_type field shall be set to
DEAD_PROCESS
.