From 6a844df675b81d6b9057db066446943792ba89fc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 31 Jan 1998 16:00:06 +0000 Subject: Update. 1998-02-01 00:53 Ulrich Drepper * grp/Makefile: Define USE_NSCD in CFLAGS for getgrnam_r.c and getgrgid_r.c if thread package is available. * pwd/Makefile: Likewise. * grp/getgrnam_r.c: Remove USE_NSCD definition. * grp/getgrgid_r.c: Likewise. * pwd/getpwnam_r.c: Likewise. * pwd/getpwuid_r.c: Likewise. 1998-01-31 23:46 Ulrich Drepper * nss/getXXbyYY_r.c: If NSS function reports too small buffer return with error to allow user intervention. * nss/getXXent_r.c: Likewise. * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: New file. --- pwd/Makefile | 10 +++++++++- pwd/getpwnam_r.c | 1 - pwd/getpwuid_r.c | 1 - 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'pwd') diff --git a/pwd/Makefile b/pwd/Makefile index 6b3eeab61a..a5d0d5c15b 100644 --- a/pwd/Makefile +++ b/pwd/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1991, 1996, 1997, 1998 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -27,3 +27,11 @@ routines := fgetpwent getpw putpwent \ getpwent_r getpwnam_r getpwuid_r fgetpwent_r include ../Rules + +# We can later add the names of other thread packages here. +ifeq (,$(findstring linuxthreads,$(add-ons))) + +CFLAGS-getpwuid_r.c = -DUSE_NSCD=1 +CFLAGS-getpwnam_r.c = -DUSE_NSCD=1 + +endif diff --git a/pwd/getpwnam_r.c b/pwd/getpwnam_r.c index 429d3c47b0..328c3055f8 100644 --- a/pwd/getpwnam_r.c +++ b/pwd/getpwnam_r.c @@ -26,6 +26,5 @@ #define ADD_PARAMS const char *name #define ADD_VARIABLES name #define BUFLEN NSS_BUFLEN_PASSWD -#define USE_NSCD 1 #include diff --git a/pwd/getpwuid_r.c b/pwd/getpwuid_r.c index 18b925b794..91bd802d61 100644 --- a/pwd/getpwuid_r.c +++ b/pwd/getpwuid_r.c @@ -26,6 +26,5 @@ #define ADD_PARAMS uid_t uid #define ADD_VARIABLES uid #define BUFLEN NSS_BUFLEN_PASSWD -#define USE_NSCD 1 #include -- cgit 1.4.1