]> sourceware.org Git - newlib-cygwin.git/commitdiff
* cygwin.din (utmpxname): Export.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Mar 2005 22:08:12 +0000 (22:08 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 3 Mar 2005 22:08:12 +0000 (22:08 +0000)
* syscalls.cc (utmpxname): Create export alias to utmpname.
* include/utmpx.h: Define ut_name and ut_xtime if not already defined.
(utmpxname): Add prototype.
* include/sys/utmp.h: Only define ut_name if not already defined.
* include/cygwin/version.h: Bump API minor version.

winsup/cygwin/ChangeLog
winsup/cygwin/cygwin.din
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/include/sys/utmp.h
winsup/cygwin/include/utmpx.h
winsup/cygwin/syscalls.cc

index 0ddf15893a59b1ac1b92c2d37984b6070cf9a55f..811acb9652155fd324396a6d119fe926ee201b5b 100644 (file)
@@ -1,3 +1,12 @@
+2005-03-03  Corinna Vinschen  <corinna@vinschen.de>
+
+       * cygwin.din (utmpxname): Export.
+       * syscalls.cc (utmpxname): Create export alias to utmpname.
+       * include/utmpx.h: Define ut_name and ut_xtime if not already defined.
+       (utmpxname): Add prototype.
+       * include/sys/utmp.h: Only define ut_name if not already defined.
+       * include/cygwin/version.h: Bump API minor version.
+
 2005-03-03  Christopher Faylor  <cgf@timesys.com>
 
        * cygthread.cc (cygthread::detach): Use a slightly higher priority when
index 594f114e761254bfb5f399ad9d756c8083215eb3..8a0585de6271de23dff981483bf19ed307ded237 100644 (file)
@@ -1489,6 +1489,7 @@ utimes SIGFE
 _utimes = utimes SIGFE
 utmpname SIGFE
 _utmpname = utmpname SIGFE
+utmpxname SIGFE
 valloc SIGFE
 vasprintf SIGFE
 _vasprintf = vasprintf SIGFE
index 9128505ef748c42cbbd94db04c6bff7d3b91e2fb..6d965fdff85cb5545c708792f751a38384c9d822 100644 (file)
@@ -249,12 +249,13 @@ details. */
       119: Export fdatasync.
       120: Export basename, dirname.
       122: Export statvfs, fstatvfs.
+      123: Export utmpxname.
      */
 
      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 122
+#define CYGWIN_VERSION_API_MINOR 123
 
      /* There is also a compatibity version number associated with the
        shared memory regions.  It is incremented when incompatible
index ebc70b9bc582784ecc658610d4bdf3131a3aeda0..435891b18942d9cc97aa423b876823ab51e47178 100644 (file)
 extern "C" {
 #endif
 
-#define ut_name ut_user
+#ifndef ut_name
+#define ut_name                ut_user
+#endif
+
 
 struct utmp 
 {
index 395c7a09adfe816e2b3f133da338c0b4a8fad1ec..0e24ce884473da8eca0de48793a9f5710efad582 100644 (file)
@@ -32,12 +32,21 @@ struct utmpx
  struct timeval ut_tv;
 };
 
+#ifndef ut_name
+#define ut_name                ut_user
+#endif
+
+#ifndef ut_xtime
+#define ut_xtime       ut_tv.tv_sec
+#endif
+
 extern void endutxent (void);
 extern struct utmpx *getutxent (void);
 extern struct utmpx *getutxid (const struct utmpx *id);
 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);
 
 #ifdef __cplusplus
 }
index 4eda42bee290a225293b4c72de330873da34ab02..180a2e808abd090f2897710d2dfffcb0920f5b35 100644 (file)
@@ -2597,6 +2597,7 @@ utmpname (const char *file)
   utmp_file = strdup (file);
   debug_printf ("New UTMP file: %s", utmp_file);
 }
+EXPORT_ALIAS (utmpname, utmpxname)
 
 /* Note: do not make NO_COPY */
 static struct utmp utmp_data_buf[16];
This page took 0.036921 seconds and 5 git commands to generate.