[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'.
From: |
Samuel Thibault |
Subject: |
[hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'. |
Date: |
Sun, 09 Nov 2014 11:04:59 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch upstream
in repository hurd.
commit a5ca1de1eb575294dbc865a2c4ff643efc117ef4
Author: Ludovic Courtès <address@hidden>
Date: Sun May 25 01:06:50 2014 +0200
build: Remove checks for 'getgrouplist' and 'uselocale'.
GNU libc has had them for a long time.
* configure.ac: Remove checks for 'getgrouplist' and 'uselocale'.
* libshouldbeinlibc/idvec-impgids.c (_merge_implied_gids): Remove #ifdef
HAVE_GETGROUPLIST and remove #else arm.
* libthreads/cthreads.c: Remove #ifdef HAVE_USELOCALE, keeping its
bodies.
---
configure.ac | 3 ---
libshouldbeinlibc/idvec-impgids.c | 14 +-------------
libthreads/cthreads.c | 9 +++------
3 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/configure.ac b/configure.ac
index cf8590b..f8856db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -163,9 +163,6 @@ else
fi
AC_SUBST(VERSIONING)
-# Check if libc contains getgrouplist and/or uselocale.
-AC_CHECK_FUNCS(getgrouplist uselocale)
-
# From glibc HEAD, 2007-11-07.
AC_CACHE_CHECK(for -fgnu89-inline, libc_cv_gnu89_inline, [dnl
diff --git a/libshouldbeinlibc/idvec-impgids.c
b/libshouldbeinlibc/idvec-impgids.c
index 74d3cc1..d89f487 100644
--- a/libshouldbeinlibc/idvec-impgids.c
+++ b/libshouldbeinlibc/idvec-impgids.c
@@ -1,6 +1,6 @@
/* Add gids implied by a user
- Copyright (C) 1997, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1997, 2001, 2014 Free Software Foundation, Inc.
Written by Miles Bader <address@hidden>
@@ -56,7 +56,6 @@ _merge_implied_gids (struct idvec *implied_gids, uid_t uid)
else
{
struct idvec *cache = make_idvec ();
-#ifdef HAVE_GETGROUPLIST
gid_t _gids[NUM_STATIC_GIDS], *gids = _gids;
int maxgids = NUM_STATIC_GIDS;
int ngids = getgrouplist (pw->pw_name, pw->pw_gid, gids, &maxgids);
@@ -79,17 +78,6 @@ _merge_implied_gids (struct idvec *implied_gids, uid_t uid)
if (gids != _gids)
free (gids);
}
-#else
-#warning "getgrouplist() not available; supplementary group IDs unsupported."
- if (! cache)
- err = ENOMEM;
- else
- {
- err = idvec_add_new (cache, pw->pw_gid);
- if (err)
- idvec_free (cache);
- }
-#endif
if (! err)
{
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index aef20be..1361b8b 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -150,10 +150,7 @@
#include <cthreads.h>
#include <mach/mig_support.h>
#include "cthread_internals.h"
-
-#ifdef HAVE_USELOCALE
-# include <locale.h>
-#endif
+#include <locale.h>
/*
* Thread status bits.
@@ -292,11 +289,11 @@ cthread_body(cproc_t self)
/*
* Execute the fork request.
*/
-#ifdef HAVE_USELOCALE
+
/* A fresh thread needs to be bound to the
global locale. */
uselocale (LC_GLOBAL_LOCALE);
-#endif
+
t->result = (*(t->func))(t->arg);
}
/*
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/hurd.git
- [hurd] 69/87: procfs: do not test whether /hurd/mtab exists, (continued)
- [hurd] 69/87: procfs: do not test whether /hurd/mtab exists, Samuel Thibault, 2014/11/09
- [hurd] 16/87: libnetfs: fix memory leak, Samuel Thibault, 2014/11/09
- [hurd] 13/87: Fix buffer allocation on io_read, Samuel Thibault, 2014/11/09
- [hurd] 77/87: pfinet: fix path in comment, Samuel Thibault, 2014/11/09
- [hurd] 76/87: libports: lock-less reference counting for port_info objects, Samuel Thibault, 2014/11/09
- [hurd] 81/87: Fix unlocking translator list, Samuel Thibault, 2014/11/09
- [hurd] 63/87: Update NEWS file, Samuel Thibault, 2014/11/09
- [hurd] 09/87: Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd, Samuel Thibault, 2014/11/09
- [hurd] 85/87: mach-defpager: use protected payloads for object lookups, Samuel Thibault, 2014/11/09
- [hurd] 87/87: Merge remote-tracking branch 'upstream/master' into upstream, Samuel Thibault, 2014/11/09
- [hurd] 12/87: build: Remove checks for 'getgrouplist' and 'uselocale'.,
Samuel Thibault <=
- [hurd] 10/87: libstore: provide function declaration until available upstream, Samuel Thibault, 2014/11/09
- [hurd] 01/87: Do not include the terminating zero in /proc/slabinfo, Samuel Thibault, 2014/11/09
- [hurd] 06/87: libdiskfs: remove the statistics code from the name cache, Samuel Thibault, 2014/11/09
- [hurd] 84/87: Fix optional definitions in static binaries, Samuel Thibault, 2014/11/09
- [hurd] 03/87: libnetfs: add netfs_make_node_alloc to allocate fat nodes, Samuel Thibault, 2014/11/09
- [hurd] 72/87: libports: use a global hash table for the lookups, Samuel Thibault, 2014/11/09
- [hurd] 08/87: Disable linking when cross-compiling, Samuel Thibault, 2014/11/09
- [hurd] 04/87: trans/fakeroot: use fat nodes to simplify the node cache, Samuel Thibault, 2014/11/09
- [hurd] 11/87: Merge branch 'master' of git://git.sv.gnu.org/hurd/hurd, Samuel Thibault, 2014/11/09
- [hurd] 07/87: libdiskfs: use a hash table for the name cache, Samuel Thibault, 2014/11/09