* cygwin.din: Add utmpx symbols.

* syscalls.cc: Include utmpx.h.  Implement utmpx functions as stubs
	to utmp functions.
	(copy_ut_to_utx): New static function.
	(pututline): Change from void to struct utmp * as on Linux.
	(setutxent): New function.
	(endutxent): New function.
	(getutxent): New function.
	(getutxid): New function.
	(getutxline): New function.
	(pututxline): New function.
	* include/utmpx.h: New file.
	* include/cygwin/utmp.h: New file.
	* include/cygwin/version.h: Bump API minor number.
	* include/sys/utmp.h: Include cygwin/utmp.h.  Move stuff common with
	utmpx functionality there.
	(pututline): Declare struct utmp *.
This commit is contained in:
Corinna Vinschen
2004-12-15 17:29:01 +00:00
parent 4931fc2b3a
commit 2ef89b220a
7 changed files with 184 additions and 24 deletions

View File

@@ -404,6 +404,7 @@ endpwent NOSIGFE
_endpwent = endpwent NOSIGFE
endutent SIGFE
_endutent = endutent SIGFE
endutxent SIGFE
envz_add SIGFE
__envz_add = envz_add SIGFE
envz_entry NOSIGFE
@@ -682,6 +683,9 @@ getutid SIGFE
_getutid = getutid SIGFE
getutline SIGFE
_getutline = getutline SIGFE
getutxent SIGFE
getutxid SIGFE
getutxline SIGFE
getw SIGFE
_getw = getw SIGFE
getwd SIGFE
@@ -1067,6 +1071,7 @@ puts SIGFE
_puts = puts SIGFE
pututline SIGFE
_pututline = pututline SIGFE
pututxline SIGFE
putw SIGFE
_putw = putw SIGFE
qsort NOSIGFE
@@ -1215,6 +1220,7 @@ _setuid = setuid SIGFE
_setuid32 = setuid32 SIGFE
setutent SIGFE
_setutent = setutent SIGFE
setutxent SIGFE
setvbuf SIGFE
_setvbuf = setvbuf SIGFE
sexecl = sexecve_is_bad SIGFE