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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [cygwin/] [sys/] [utmp.h] - Blame information for rev 1773

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

Line No. Rev Author Line
1 1010 ivang
/* sys/utmp.h
2
 
3
   Copyright 2001 Red Hat, Inc.
4
 
5
   This software is a copyrighted work licensed under the terms of the
6
   Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
7
   details. */
8
 
9
#ifndef UTMP_H
10
#define UTMP_H
11
 
12
#include <sys/types.h>
13
#include <time.h>
14
#include <paths.h>
15
 
16
#ifdef __cplusplus
17
extern "C" {
18
#endif
19
 
20
#define UT_LINESIZE     16
21
#define UT_NAMESIZE     16
22
#define UT_HOSTSIZE     256
23
#define ut_name ut_user
24
 
25
struct utmp
26
{
27
 short  ut_type;
28
 pid_t  ut_pid;
29
 char   ut_line[UT_LINESIZE];
30
 char   ut_id[2];
31
 time_t ut_time;
32
 char   ut_user[UT_NAMESIZE];
33
 char   ut_host[UT_HOSTSIZE];
34
 long   ut_addr;
35
};
36
 
37
#define INIT_PROCESS    5
38
#define LOGIN_PROCESS   6
39
#define USER_PROCESS    7
40
#define DEAD_PROCESS    8
41
 
42
extern struct utmp *_getutline (struct utmp *);
43
extern struct utmp *getutent (void);
44
extern struct utmp *getutid (struct utmp *);
45
extern struct utmp *getutline (struct utmp *);
46
extern void endutent (void);
47
extern void pututline (struct utmp *);
48
extern void setutent (void);
49
extern void utmpname (const char *);
50
 
51
void login (struct utmp *);
52
int logout (char *);
53
int login_tty (int);
54
void logwtmp (char *, char *, char *);
55
 
56
#ifdef __cplusplus
57
}
58
#endif
59
#endif /* UTMP_H */

powered by: WebSVN 2.1.0

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