Add include files for msys-crypto-0.9.8.dll
[msysgit.git] / include / sys / utmp.h
blob7ba33b45010862ae3e53bccc9cb06ff46689be6e
1 /* sys/utmp.h
3 Copyright 2001 Red Hat, Inc.
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. */
9 #ifndef UTMP_H
10 #define UTMP_H
12 #include <sys/types.h>
13 #include <time.h>
14 #include <paths.h>
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
20 #define UT_LINESIZE 16
21 #define UT_NAMESIZE 16
22 #define UT_HOSTSIZE 256
23 #define ut_name ut_user
25 struct utmp
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;
37 #define INIT_PROCESS 5
38 #define LOGIN_PROCESS 6
39 #define USER_PROCESS 7
40 #define DEAD_PROCESS 8
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 *);
51 void login (struct utmp *);
52 int logout (char *);
54 #ifdef __cplusplus
56 #endif
57 #endif /* UTMP_H */