1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#include <time.h>
#include <stdio.h>
#include "constants.h"
#define PRL(s) printf(#s" = %i\n", s);
#define PRLS(s) printf(#s" = \"%s\"\n", s);
int main(void)
{
PRL(EMPTY);
PRL(RUN_LVL);
PRL(BOOT_TIME);
PRL(NEW_TIME);
PRL(OLD_TIME);
PRL(INIT_PROCESS);
PRL(LOGIN_PROCESS);
PRL(USER_PROCESS);
PRL(DEAD_PROCESS);
PRL(ACCOUNTING);
PRL(UT_UNKNOWN);
printf("\n");
PRL(UT_LINESIZE);
PRL(UT_NAMESIZE);
PRL(UT_HOSTSIZE);
PRL(UT_IDSIZE);
printf("\n");
PRLS(UTMP_FILE);
PRLS(WTMP_FILE);
return 0;
}
|