File: makeconst.c

package info (click to toggle)
python-utmp 0.8%2Bnmu1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 192 kB
  • ctags: 194
  • sloc: python: 796; ansic: 583; makefile: 41; sh: 2
file content (33 lines) | stat: -rwxr-xr-x 572 bytes parent folder | download | duplicates (6)
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;
}