* cygwin.din (updwtmpx): Export.

* syscalls.cc (updwtmpx): New function.
	* include/utmpx.h (updwtmpx): Declare.
	* include/cygwin/version.h: Bump API minor number to 153.
This commit is contained in:
Corinna Vinschen
2006-02-02 22:46:37 +00:00
parent 6577c186c9
commit c0b0336f36
5 changed files with 18 additions and 1 deletions

View File

@@ -2878,6 +2878,13 @@ pututxline (const struct utmpx *utmpx)
return copy_ut_to_utx (pututline ((struct utmp *) utmpx), &utx);
}
extern "C" void
updwtmpx (const char *wtmpx_file, const struct utmpx *utmpx)
{
((struct utmpx *)utmpx)->ut_time = utmpx->ut_tv.tv_sec;
updwtmp (wtmpx_file, (const struct utmp *) utmpx);
}
extern "C"
long gethostid (void)
{