X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Futmp.h;h=b145a11d146eec4e6765f86f5dbbc0075bae0032;hp=ff3e45e155f9e12070c2dcf18eac98d5427b5d53;hb=a660180c6a93681c6efb54fb5826c08d4df60208;hpb=eee150f39c294883841d4f3ad9ce290ea1529a9e diff --git a/include/utmp.h b/include/utmp.h index ff3e45e1..b145a11d 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -7,6 +7,16 @@ extern "C" { #include +#define ACCOUNTING 9 +#define UT_NAMESIZE 32 +#define UT_HOSTSIZE 256 + +struct lastlog { + time_t ll_time; + char ll_line[UT_LINESIZE]; + char ll_host[UT_HOSTSIZE]; +}; + #define ut_time ut_tv.tv_sec #define ut_name ut_user #define ut_exit __ut_exit @@ -22,6 +32,8 @@ struct utmp *getutline(const struct utmp *); struct utmp *pututline(const struct utmp *); void setutent(void); +void updwtmp(const char *, const struct utmp *); + #define _PATH_UTMP "/dev/null" #define _PATH_WTMP "/dev/null"