* 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

@ -1,3 +1,10 @@
2006-02-02 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (updwtmpx): Export.
* syscalls.cc (updwtmpx): New function.
* include/utmpx.h (updwtmpx): Declare.
* include/cygwin/version.h: Bump API minor number to 153.
2006-02-02 Christopher Faylor <cgf@timesys.com>
* external.cc (setup_winenv): New function.

View File

@ -887,6 +887,7 @@ login_tty SIGFE
logout SIGFE
logwtmp SIGFE
updwtmp SIGFE
updwtmpx SIGFE
longjmp NOSIGFE
_longjmp = longjmp NOSIGFE
lrand48 NOSIGFE

View File

@ -285,12 +285,13 @@ details. */
150: Export getsubopt.
151: Export __opendir_with_d_ino
152: Revert to having d_ino in dirent unconditionally.
153: Export updwtmpx.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
#define CYGWIN_VERSION_API_MINOR 152
#define CYGWIN_VERSION_API_MINOR 153
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible

View File

@ -47,6 +47,7 @@ extern struct utmpx *getutxline (const struct utmpx *line);
extern struct utmpx *pututxline (const struct utmpx *utmpx);
extern void setutxent (void);
extern void utmpxname (const char *file);
extern void updwtmpx (const char *file, const struct utmpx *utmpx);
#ifdef __cplusplus
}

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)
{