5755898 [rkeene@sledge /home/rkeene/devel/cygwin-stuff/cyg-root/usr/include/sys]$ cat -n utmp.h
 1 #ifndef UTMP_H
 2 #define UTMP_H
 3 
 4 #include <sys/types.h>
 5 #include <time.h>
 6 #include <paths.h>
 7 
 8 #ifdef __cplusplus
 9 extern "C" {
10 #endif
11 
12 #define UT_LINESIZE 16
13 #define UT_NAMESIZE 16
14 #define UT_HOSTSIZE 256
15 #define ut_name ut_user
16 
17 struct utmp 
18 {
19  short  ut_type;    
20  pid_t  ut_pid;     
21  char   ut_line[UT_LINESIZE];
22  char   ut_id[2];
23  time_t ut_time;    
24  char   ut_user[UT_NAMESIZE];   
25  char   ut_host[UT_HOSTSIZE];   
26  long   ut_addr;    
27 };
28 
29 #define INIT_PROCESS    5
30 #define LOGIN_PROCESS   6
31 #define USER_PROCESS    7
32 #define DEAD_PROCESS    8
33 
34 extern struct utmp *_getutline (struct utmp *);
35 extern struct utmp *getutent (void);
36 extern struct utmp *getutid (struct utmp *);
37 extern struct utmp *getutline (struct utmp *);
38 extern void endutent (void);
39 extern void pututline (struct utmp *);
40 extern void setutent (void);
41 extern void utmpname (const char *);
42 
43 void login (struct utmp *);
44 int logout (char *);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 #endif /* UTMP_H */
5755899 [rkeene@sledge /home/rkeene/devel/cygwin-stuff/cyg-root/usr/include/sys]$

Click here to go back to the directory listing.
Click here to download this file.
last modified: 2001-01-31 15:09:06