tail head cat sleep
QR code linking to this page

manページ  — LOGOUT

名称

logout – utmpファイルからの登録の削除

内容

ライブラリ

System Utilities Library (libutil, -lutil)

書式

#include <sys/types.h>
#include <libutil.h>

logout(const char *line);

解説

関数 logout() は、引数 line で指定された (通常 tty 名で) スロットを探して utmp(5) ファイルを探索します。スロットがみつからない場合は、 name 及び hos フィールドが空のレコードで更新され、 タイムスタンプは最新時間に更新されます。

戻り値

関数 Logout() は引数 line で指定したスロットが見つからない場合、1 を返して更新し、 そうでない場合は 0 を返します。

関連項目

login(3), utmp(5), wtmp(5)

バグ

logout() の呼び出しインタフェースは login(3) のインタフェースと整合性がとれていません。

LOGOUT (3) December 29, 1996

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.”