version 1.11, 2014/10/17 20:19:15 |
version 1.12, 2015/03/15 00:41:28 |
|
|
#include <sys/file.h> |
#include <sys/file.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/time.h> |
#include <sys/time.h> |
#include <tzfile.h> |
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <time.h> |
#include <time.h> |
|
|
tp = localtime(&w->loginat); |
tp = localtime(&w->loginat); |
t = asctime(tp); |
t = asctime(tp); |
tzn = tp->tm_zone; |
tzn = tp->tm_zone; |
if (now - w->loginat > SECSPERDAY * DAYSPERNYEAR / 2) |
if (now - w->loginat > SIXMONTHS) |
cpr = |
cpr = |
printf("Last login %.16s %.4s (%s) on %s", |
printf("Last login %.16s %.4s (%s) on %s", |
t, t + 20, tzn, w->tty); |
t, t + 20, tzn, w->tty); |