diff options
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/cygwin/version.h | 3 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/utmp.h | 2 | ||||
-rw-r--r-- | winsup/cygwin/include/utmpx.h | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index c5b75eede..5d79cc3a8 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -474,13 +474,14 @@ details. */ 290: Add sysconf cache handling. 291: Export aligned_alloc, at_quick_exit, quick_exit. 292: Export rpmatch. + 293: Convert utmpname/utmpxname to int. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull, sigaltstack, sethostname. */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 292 +#define CYGWIN_VERSION_API_MINOR 293 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/sys/utmp.h b/winsup/cygwin/include/sys/utmp.h index 8a63b348b..b14fc0847 100644 --- a/winsup/cygwin/include/sys/utmp.h +++ b/winsup/cygwin/include/sys/utmp.h @@ -40,7 +40,7 @@ extern struct utmp *getutline (const struct utmp *); extern struct utmp *pututline (const struct utmp *); extern void endutent (void); extern void setutent (void); -extern void utmpname (const char *); +extern int utmpname (const char *); void login (const struct utmp *); int logout (const char *); diff --git a/winsup/cygwin/include/utmpx.h b/winsup/cygwin/include/utmpx.h index 548ad80a3..53b04eda8 100644 --- a/winsup/cygwin/include/utmpx.h +++ b/winsup/cygwin/include/utmpx.h @@ -12,6 +12,7 @@ #include <cygwin/utmp.h> #include <sys/time.h> +#define _PATH_UTMPX _PATH_UTMP #define UTMPX_FILE _PATH_UTMP #ifdef __cplusplus @@ -46,7 +47,7 @@ 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); +extern int utmpxname (const char *file); extern void updwtmpx (const char *file, const struct utmpx *utmpx); #ifdef __cplusplus |