Convert utmp{x}name to int, return useful value. Define _PATH_UTMPX

* syscalls.cc (utmpname): Convert to int.  Return 0 if strdup
	worked, -1 otherwise.
	* include/utmpx.h (_PATH_UTMPX): Define as _PATH_UTMP.
	(utmpxname): Declare as int function.
	* include/sys/utmp.h (utmpname): Ditto.
	* include/cygwin/version.h: Bump API minor version.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2016-01-07 15:40:40 +01:00
parent b8f9d8de2c
commit 80a800978b
6 changed files with 21 additions and 8 deletions

View File

@@ -42,6 +42,9 @@ What changed:
- Fix (numeric and monetary) decimal point and thousands separator in
fa_IR and ps_AF locales to be aligned with Linux.
- utmpname/utmpxname are now defined as int functions as on Linux.
Addresses: https://cygwin.com/ml/cygwin/2015-12/msg00320.html
Bug Fixes
---------