diff options
Diffstat (limited to 'winsup/cygwin')
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/cygwin.din | 1 | ||||
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/include/utmpx.h | 1 | ||||
-rw-r--r-- | winsup/cygwin/syscalls.cc | 7 |
5 files changed, 18 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8e50fd686..90c538ecb 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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. diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din index 770923d54..8880c7b0b 100644 --- a/winsup/cygwin/cygwin.din +++ b/winsup/cygwin/cygwin.din @@ -887,6 +887,7 @@ login_tty SIGFE logout SIGFE logwtmp SIGFE updwtmp SIGFE +updwtmpx SIGFE longjmp NOSIGFE _longjmp = longjmp NOSIGFE lrand48 NOSIGFE diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index f37d7cee3..33a59ecd3 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -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 diff --git a/winsup/cygwin/include/utmpx.h b/winsup/cygwin/include/utmpx.h index 8029f763c..2239a6353 100644 --- a/winsup/cygwin/include/utmpx.h +++ b/winsup/cygwin/include/utmpx.h @@ -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 } diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 9c938d572..62ebf639f 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -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) { |