From de47eb59bb829423b1d0f47ba13099073999b3cb Mon Sep 17 00:00:00 2001 From: Nicolas Planel Date: Wed, 29 Oct 2003 16:07:11 +0000 Subject: Corporate Server 2.1.1 release --- mdk-stage1/dietlibc/include/utmp.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/dietlibc/include/utmp.h') diff --git a/mdk-stage1/dietlibc/include/utmp.h b/mdk-stage1/dietlibc/include/utmp.h index 2946be921..cc2adc9f6 100644 --- a/mdk-stage1/dietlibc/include/utmp.h +++ b/mdk-stage1/dietlibc/include/utmp.h @@ -11,6 +11,11 @@ #define _PATH_UTMP "/var/run/utmp" #define _PATH_WTMP "/var/log/wtmp" +#ifdef _BSD_SOURCE +/* die, BSD, die!!! */ +#define UTMP_FILE _PATH_UTMP +#define WTMP_FILE _PATH_WTMP +#endif /* The structure describing an entry in the database of previous logins. */ @@ -38,11 +43,13 @@ struct utmp char ut_id[4]; /* Inittab ID. */ char ut_user[UT_NAMESIZE]; /* Username. */ char ut_host[UT_HOSTSIZE]; /* Hostname for remote login. */ -#define ut_name ut_host +#define ut_name ut_user struct exit_status ut_exit; /* Exit status of a process marked as DEAD_PROCESS. */ long int ut_session; /* Session ID, used for windowing. */ +#define ut_time ut_tv.tv_sec struct timeval ut_tv; /* Time entry was made. */ +#define ut_addr ut_addr_v6[0] int32_t ut_addr_v6[4]; /* Internet address of remote host. */ char __unused[20]; /* Reserved for future use. */ }; @@ -70,4 +77,18 @@ struct utmp #define _HAVE_UT_TV 1 #define _HAVE_UT_HOST 1 +struct utmp *getutent(void) __THROW; +struct utmp *getutid(struct utmp *ut) __THROW; +struct utmp *getutline(struct utmp *ut) __THROW; + +void pututline(struct utmp *ut) __THROW; + +void setutent(void) __THROW; +void endutent(void) __THROW; + +void utmpname(const char *file) __THROW; + +void updwtmp(const char *wtmp_file, const struct utmp *ut); +void logwtmp(const char *line, const char *name, const char *host); + #endif -- cgit v1.2.1