| Linux Standard Base PDA Specification 3.0RC3 | ||
|---|---|---|
| <<< Previous | Next >>> | |
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.
On success, the logout() function shall return non-zero. Zero is returned if there was no entry to remove, or if the utmp file could not be opened or updated.
| <<< Previous | Home | Next >>> |
| login_tty | Up | logwtmp |