3 Copyright 2001, 2003, 2004, 2005, 2008 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 <cygwin/utmp.h>
14 #define UTMP_FILE _PATH_UTMP
21 #define ut_name ut_user
29 char ut_line[UT_LINESIZE];
32 char ut_user[UT_NAMESIZE];
33 char ut_host[UT_HOSTSIZE];
37 extern struct utmp *getutent (void);
38 extern struct utmp *getutid (const struct utmp *);
39 extern struct utmp *getutline (const struct utmp *);
40 extern struct utmp *pututline (const struct utmp *);
41 extern void endutent (void);
42 extern void setutent (void);
43 extern void utmpname (const char *);
45 void login (const struct utmp *);
46 int logout (const char *);
48 void updwtmp (const char *, const struct utmp *);
49 void logwtmp (const char *, const char *, const char *);