OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [newlib/] [newlib/] [libc/] [sys/] [sparc64/] [sys/] [utmp.h] - Blame information for rev 1765

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
#ifndef _UTMP_H
2
# define _UTMP_H
3
 
4
#include <sys/types.h>
5
 
6
# define UTMP_FILE "/etc/utmp"
7
# define WTMP_FILE "/etc/wtmp"
8
 
9
struct utmp {
10
        char    ut_user[8];     /* how limited */
11
        char    ut_id[4];       /* ditto */
12
        char    ut_line[12];    /* I'm repeating myself */
13
        short   ut_pid;
14
        short   ut_type;
15
        struct exit_status {
16
                short e_termination;
17
                short e_exit;
18
        } ut_exit;              /* for DEAD_PROCESS processes */
19
        time_t  ut_time;
20
};
21
 
22
/* Definitions for ut_type fields */
23
 
24
# define        EMPTY   0
25
# define        RUN_LVL 1
26
# define        BOOT_TIME       2
27
# define        OLD_TIME        3
28
# define        NEW_TIME        4
29
# define        INIT_PROCESS    5
30
# define        LOGIN_PROCESS   6
31
# define        USER_PROCESS    7
32
# define        DEAD_PROCESS    8
33
# define        ACCOUNTING      9
34
# define        UTMAXTYPE       ACCOUNTING
35
 
36
# define        RUNLVL_MSG      "run-level %c"
37
# define        BOOT_MSG        "system boot"
38
# define        OTIME_MSG       "old time"
39
# define        NTIME_MSG       "new time"
40
 
41
#endif  /* _UTMP_H */
42
 
43
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.