From abe7b661ff7a361c9fe11789bab068e44de849b0 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 16 Oct 2002 03:03:00 +0000 Subject: Jakub Jelinek * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Take code from sparc/Makefile to produce a bi-arch file as needed. That's now parameterized by the variable $(64bit-predefine). Use LC_ALL=C for `comm' commands in that rule. No longer conditional on [$(no_syscall_list_h)]. * sysdeps/unix/sysv/linux/sparc/Makefile: Remove replacement rules. (64bit-predefine): New variable. * sysdeps/unix/sysv/linux/x86_64/Makefile: Likewise. * sysdeps/unix/sysv/linux/s390/Makefile: New file. * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine): New variable. 2002-10-15 Roland McGrath * sysdeps/unix/sysv/linux/Makefile ($(objpfx)syscall-%.h $(objpfx)syscall-%.d) * login/utmp-private.h: Declare __libc_utmp_lock. * sysdeps/unix/getlogin_r.c (getlogin_r): Take __libc_utmp_lock once call __libc_utmp_jump_table functions directly, instead of using __setutent et al. * sysdeps/unix/sysv/linux/configure.in: Use case instead of if. * sysdeps/unix/sysv/linux/configure: Regenerated. --- login/utmp-private.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'login') diff --git a/login/utmp-private.h b/login/utmp-private.h index 14b52b08c8..82c84348a6 100644 --- a/login/utmp-private.h +++ b/login/utmp-private.h @@ -23,6 +23,7 @@ #define _UTMP_PRIVATE_H 1 #include +#include /* The structure describing the functions in a backend. */ struct utfuncs @@ -46,4 +47,8 @@ extern struct utfuncs *__libc_utmp_jump_table attribute_hidden; /* Current file name. */ extern const char *__libc_utmp_file_name attribute_hidden; +/* Locks access to the global data. */ +__libc_lock_define (extern, __libc_utmp_lock attribute_hidden) + + #endif /* utmp-private.h */ -- cgit v1.2.3