From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21792 invoked by alias); 24 Jul 2017 19:33:45 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 20867 invoked by uid 89); 24 Jul 2017 19:33:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pg0-f65.google.com Received: from mail-pg0-f65.google.com (HELO mail-pg0-f65.google.com) (74.125.83.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Jul 2017 19:33:41 +0000 Received: by mail-pg0-f65.google.com with SMTP id g14so7883642pgu.4 for ; Mon, 24 Jul 2017 12:33:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rT91YBnYjagShDtZdCPnC1X6D7a0iWe1m9Rvu+1AcIk=; b=XbQLsL7Y7YcTLZH2uOxz5ycK4LK8Afz3RmLMBBcmgDiohFASdgiUkNqcQegvN6hwwZ BbGuJH9oYEmwRS/bYhvtXXis+NfT55vb1oSJ2qBzyLVRL7wFjrCPuI+CCeHVyL7sIP6j L57CxuIu8d01k1/i21vZEeV3HVlAnYwDeJ6qefrR8TtXPQdVQhb8HAom37lERYUHut22 IKCQcLbJZM1opcjSxu5zH4iBc81hcVKJgIJsRqQNnr98tCUWk8ziwKEdq5KgaX6dzB1G dgHEopRZoke8L7pip8pu/mJxHbhDTD8lOyxfroocqUlOvtryNpQTojYbApKsUDnxmBU/ wtRA== X-Gm-Message-State: AIVw110TLBesAWgn3+j5qLzpoQZK47Zm1zs7ue3MX92osNHN2chv5GNE 4+ToxUdLTyh5O8oS X-Received: by 10.99.96.216 with SMTP id u207mr12185892pgb.423.1500924819642; Mon, 24 Jul 2017 12:33:39 -0700 (PDT) Received: from localhost.localdomain ([203.192.233.164]) by smtp.gmail.com with ESMTPSA id g7sm22992999pfj.29.2017.07.24.12.33.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Jul 2017 12:33:39 -0700 (PDT) From: Aditya Upadhyay To: newlib@sourceware.org Cc: Aditya Upadhyay Subject: [PATCH 1/7] Adding declaration of reentrant version of inttypes methods. Date: Mon, 24 Jul 2017 19:33:00 -0000 Message-Id: <20170724193328.16893-1-aadit0402@gmail.com> X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00623.txt.bz2 --- newlib/libc/include/inttypes.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/newlib/libc/include/inttypes.h b/newlib/libc/include/inttypes.h index 25c6e99fa..c2a0483fb 100644 --- a/newlib/libc/include/inttypes.h +++ b/newlib/libc/include/inttypes.h @@ -16,10 +16,16 @@ #include #include #include +#include "_ansi.h" +#include #include #define __need_wchar_t #include +#if __POSIX_VISIBLE >= 200809 +#include +#endif + #define __STRINGIFY(a) #a /* 8-bit types */ @@ -315,9 +321,17 @@ extern "C" { extern intmax_t imaxabs(intmax_t j); extern imaxdiv_t imaxdiv(intmax_t numer, intmax_t denomer); +extern intmax_t strtoimax_l(const char *__restrict, char **_restrict, int, locale_t); +extern intmax_t _strtoimax_r(struct _reent *, const char *__restrict, char **__restrict, int, locale_t); extern intmax_t strtoimax(const char *__restrict, char **__restrict, int); +extern uintmax_t strtoumax_l(const char *__restrict, char **_restrict, int, locale_t); +extern uintmax_t _strtoumax_r(struct _reent *, const char *__restrict, char **__restrict, int, locale_t); extern uintmax_t strtoumax(const char *__restrict, char **__restrict, int); +extern intmax_t wcstoimax_l(const wchar_t *__restrict, wchar_t **_restrict, int, locale_t); +extern intmax_t _wcstoimax_r(struct _reent *, const wchar_t *__restrict, wchar_t **__restrict, int, locale_t); extern intmax_t wcstoimax(const wchar_t *__restrict, wchar_t **__restrict, int); +extern uintmax_t wcstoumax_l(const wchar_t *__restrict, wchar_t **_restrict, int, locale_t); +extern uintmax_t _wcstoumax_r(struct _reent *, const wchar_t *__restrict, wchar_t **__restrict, int, locale_t); extern uintmax_t wcstoumax(const wchar_t *__restrict, wchar_t **__restrict, int); #ifdef __cplusplus -- 2.13.0