From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3513 invoked by alias); 3 Sep 2017 12:35:39 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 2736 invoked by uid 89); 3 Sep 2017 12:35:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix rtld's strtoul_internal use through hurdlookup Date: Sun, 03 Sep 2017 12:35:00 -0000 Message-Id: <20170903123530.21067-1-samuel.thibault@ens-lyon.org> X-SW-Source: 2017-09/txt/msg00142.txt.bz2 * sysdeps/mach/hurd/dl-sysdep.c (__strtoul_internal): New function. --- ChangeLog | 4 ++-- sysdeps/mach/hurd/dl-sysdep.c | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 25ea83f601..4802f7c428 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,8 +18,8 @@ Fix inclusion. * sysdeps/posix/pwritev2.c: Include . * sysdeps/posix/pwritev64v2.c: Include . - * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk): New - functions. + * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk, + __strtoul_internal): New functions. * sysdeps/posix/pause.c: Include . * sysdeps/posix/system.c: Include . * sysdeps/mach/hurd/i386/Makefile diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index fd2f3d52cb..517e4d62cc 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -602,6 +602,15 @@ __sbrk (intptr_t increment) return (void *) addr; } +unsigned long int +weak_function +__strtoul_internal (const char *nptr, char **endptr, int base, int group) +{ + assert (base == 0 || base == 10); + assert (group == 0); + return _dl_strtoul (nptr, endptr); +} + void weak_function attribute_hidden _exit (int status) { -- 2.14.1