| 24 |
#include "file_loader.h" |
#include "file_loader.h" |
| 25 |
#include <fcntl.h> |
#include <fcntl.h> |
| 26 |
#include <ctype.h> |
#include <ctype.h> |
| 27 |
|
#include <string.h> |
| 28 |
#include <unistd.h> |
#include <unistd.h> |
| 29 |
#include <stdlib.h> |
#include <stdlib.h> |
| 30 |
#include <errno.h> |
#include <errno.h> |
| 33 |
#include <sys/param.h> |
#include <sys/param.h> |
| 34 |
#include <sys/shm.h> |
#include <sys/shm.h> |
| 35 |
|
|
|
#define _POSIX_C_SOURCE 200809L |
|
|
#include <string.h> |
|
|
|
|
| 36 |
#define ACTIVE_BOARD_HEIGHT 8 |
#define ACTIVE_BOARD_HEIGHT 8 |
| 37 |
|
|
| 38 |
#define STR_TOP_LEFT_MAX_LEN 40 |
#define STR_TOP_LEFT_MAX_LEN 40 |
| 429 |
break; |
break; |
| 430 |
} |
} |
| 431 |
|
|
| 432 |
BBS_last_access_tm = time(0); |
BBS_last_access_tm = time(NULL); |
| 433 |
} |
} |
| 434 |
|
|
| 435 |
continue; |
continue; |
| 563 |
|
|
| 564 |
len_username = (int)strnlen(BBS_username, sizeof(BBS_username)); |
len_username = (int)strnlen(BBS_username, sizeof(BBS_username)); |
| 565 |
|
|
| 566 |
time_online = time(0) - BBS_login_tm; |
time_online = time(NULL) - BBS_login_tm; |
| 567 |
tm_online = gmtime(&time_online); |
tm_online = gmtime(&time_online); |
| 568 |
if (tm_online->tm_mday > 1) |
if (tm_online->tm_mday > 1) |
| 569 |
{ |
{ |
| 610 |
} |
} |
| 611 |
} |
} |
| 612 |
|
|
| 613 |
if (time(0) - t_last_show >= 10) |
if (time(NULL) - t_last_show >= 10) |
| 614 |
{ |
{ |
| 615 |
line_last = line_current; |
line_last = line_current; |
| 616 |
t_last_show = time(0); |
t_last_show = time(NULL); |
| 617 |
} |
} |
| 618 |
else |
else |
| 619 |
{ |
{ |