|
̾??utmp , wtmp ,
lastlog —
??????????Ͽ
????<sys/types.h>
<utmp.h>
????<utmp.h>
?ե??????ϡ? utmp
?ե??????Ǥθ??ߤΥ桼???ˤĤ??Ƥξ?????
wtmp
?ե????????ǤΥ??????????????????Ȥξ?????
lastlog
?ե????????Ǥκǽ??????????????ε?Ͽ?Τ????˻Ȥ????빽¤?Τ?
???????Ƥ??ޤ???
???????ѹ??䥷???åȥ??????ӥ??֡??ȤΥ????ॹ?????פϡ?Ʊ???褦??
wtmp ?ե??????˵?Ͽ?????ޤ???
#define _PATH_UTMP "/var/run/utmp" #define _PATH_WTMP "/var/log/wtmp" #define _PATH_LASTLOG "/var/log/lastlog" #define UT_NAMESIZE 16 #define UT_LINESIZE 8 #define UT_HOSTSIZE 16 struct lastlog { int32_t ll_time; /* ?桼?????????????????? */ char ll_line[UT_LINESIZE]; /* ü????̾ */ char ll_host[UT_HOSTSIZE]; /* ?桼???νпȥۥ??? */ }; struct utmp { char ut_line[UT_LINESIZE]; /* ü????̾ */ char ut_name[UT_NAMESIZE]; /* ?桼???Υ???????̾ */ char ut_host[UT_HOSTSIZE]; /* ?桼???νпȥۥ??? */ int32_t ut_time; /* ?桼?????????????????? */ };
?ǥե????ȤǤϡ??桼???????????뤿?Ӥˡ?
pam_lastlog(8)
?ץ????????? ?????? lastlog
?ؤε?Ͽ???Ф??줿???ǡ?
???ˡ?
pam_lastlog(8)
?ץ????????? ?????ѹ??䥷???åȥ??????֡??Ȥκݤˤϡ?
?ʲ??ι??ܤ?
??wtmp
?ե??????ϡ?˻?????????ƥ??Ǥϵ?®???礭???ʤ??ޤ??Τǡ?
?????⤷?????轵?????ơ??????뤳?Ȥ??侩???ޤ???
???Υե??????ϡ?
newsyslog(8)
?ˤ??äƴ????????ޤ???
???????Υե????뤬¸?ߤ??ʤ????硢 pam_lastlog(8) ?Ϥ??????????????ޤ????? ???????Υե??????ϡ???ư?Ǻ???????ɬ?פ??????ޤ???
??Ϣ?ե?????
??Ϣ????last(1), w(1), who(1), login(3), logout(3), logwtmp(3), ttyslot(3), ac(8), init(8), pam_lastlog(8)????utmp ?? wtmp
?ե??????? Version 6 AT&T
UNIX ?????о줷?ޤ?????
lastlog ?ե???????
3.0BSD ?????о줷?ޤ?????
Visit the GSP FreeBSD Man Page Interface. |