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
12 #include <sys/types.h>
20 #define UT_LINESIZE 16
21 #define UT_NAMESIZE 16
22 #define UT_HOSTSIZE 256
23 #define ut_name ut_user
29 char ut_line
[UT_LINESIZE
];
32 char ut_user
[UT_NAMESIZE
];
33 char ut_host
[UT_HOSTSIZE
];
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
*);