about summary refs log tree commit diff
path: root/sysdeps/gnu
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-05-13 19:51:20 +0000
committerUlrich Drepper <drepper@redhat.com>1999-05-13 19:51:20 +0000
commit6eb857c78875a3640508f19f2afb2fc28c5829f2 (patch)
tree15335686a7d16e21dd6fb53983aba48a1833f436 /sysdeps/gnu
parent71377958c8b059e0b49ad927a5a4575b40545cd8 (diff)
downloadglibc-6eb857c78875a3640508f19f2afb2fc28c5829f2.tar.gz
glibc-6eb857c78875a3640508f19f2afb2fc28c5829f2.tar.xz
glibc-6eb857c78875a3640508f19f2afb2fc28c5829f2.zip
Update
1999-05-13  H.J. Lu  <hjl@gnu.org>

	* login/Versions (getutmpx): Added to GLIBC_2.1.1.
	(getutmp): Likewise.

	* sysdeps/gnu/Makefile (sysdep_routines): Add getutmp and
	getutmpx for login.

	* sysdeps/gnu/utmpx.h (getutmp): Added.
	(getutmpx): Likewise.

	* sysdeps/generic/getutmp.c: New file.

	* sysdeps/generic/getutmpx.c: New file.
Diffstat (limited to 'sysdeps/gnu')
-rw-r--r--sysdeps/gnu/Makefile2
-rw-r--r--sysdeps/gnu/utmpx.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile
index 14a190acf6..4e814d93cd 100644
--- a/sysdeps/gnu/Makefile
+++ b/sysdeps/gnu/Makefile
@@ -31,7 +31,7 @@ endif
 
 ifeq ($(subdir),login)
 sysdep_routines += setutxent getutxent endutxent getutxid getutxline \
-                   pututxline utmpxname updwtmpx
+                   pututxline utmpxname updwtmpx getutmpx getutmp
 
 sysdep_headers += utmpx.h bits/utmpx.h
 endif
diff --git a/sysdeps/gnu/utmpx.h b/sysdeps/gnu/utmpx.h
index e9f2389b75..64fac6292c 100644
--- a/sysdeps/gnu/utmpx.h
+++ b/sysdeps/gnu/utmpx.h
@@ -60,6 +60,14 @@ extern int utmpxname __P ((__const char *__file));
 /* Append entry UTMP to the wtmpx-like file WTMPX_FILE.  */
 extern void updwtmpx __P ((__const char *__wtmpx_file,
 			   __const struct utmpx *__utmpx));
+
+/* Copy the information in UTMPX to UTMP. */
+extern void getutmp __P ((__const struct utmpx *__utmpx,
+			  struct utmp *__utmp));
+
+/* Copy the information in UTMP to UTMPX. */
+extern void getutmpx __P ((__const struct utmp *__utmp,
+			   struct utmpx *__utmpx));
 #endif
 
 __END_DECLS