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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [sys/] [linux/] [sys/] [utmp.h] - Blame information for rev 148

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

Line No. Rev Author Line
1 148 jeremybenn
/* libc/sys/linux/sys/utmp.h - utmp structure */
2
 
3
/* Written 2000 by Werner Almesberger */
4
 
5
 
6
/* Some things copied from glibc's /usr/include/bits/utmp.h */
7
 
8
 
9
#ifndef _SYS_UTMP_H
10
#define _SYS_UTMP_H
11
 
12
 
13
#include <sys/types.h>
14
 
15
 
16
#define UTMP_FILE "/var/run/utmp"
17
 
18
#define UT_LINESIZE     32
19
#define UT_NAMESIZE     32
20
#define UT_HOSTSIZE     256
21
 
22
struct utmp {
23
    short int ut_type;
24
    pid_t ut_pid;
25
    char ut_line[UT_LINESIZE];
26
    char ut_id[4];
27
    char ut_user[UT_NAMESIZE];
28
    char ut_host[UT_HOSTSIZE];
29
    char __filler[52];
30
};
31
 
32
#define RUN_LVL         1
33
#define BOOT_TIME       2
34
#define NEW_TIME        3
35
#define OLD_TIME        4
36
 
37
#define INIT_PROCESS    5
38
#define LOGIN_PROCESS   6
39
#define USER_PROCESS    7
40
#define DEAD_PROCESS    8
41
 
42
 
43
/* --- redundant, from sys/cygwin/sys/utmp.h --- */
44
 
45
struct utmp *_getutline (struct utmp *);
46
struct utmp *getutent (void);
47
struct utmp *getutid (struct utmp *);
48
struct utmp *getutline (struct utmp *);
49
void endutent (void);
50
void pututline (struct utmp *);
51
void setutent (void);
52
void utmpname (const char *);
53
 
54
#endif

powered by: WebSVN 2.1.0

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