From 6eb857c78875a3640508f19f2afb2fc28c5829f2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 13 May 1999 19:51:20 +0000 Subject: Update 1999-05-13 H.J. Lu * 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. --- sysdeps/gnu/Makefile | 2 +- sysdeps/gnu/utmpx.h | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'sysdeps/gnu') 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 -- cgit v1.2.3