From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10435 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Sabogal Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] add missing *_unlocked and wcsftime_l prototypes to wchar.h Date: Fri, 9 Sep 2016 21:23:17 -0400 Message-ID: <20160910012317.28558-1-dsabogalcc@gmail.com> References: <20160910010115.GV15995@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1473470700 1187 195.159.176.226 (10 Sep 2016 01:25:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 10 Sep 2016 01:25:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10448-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 10 03:24:56 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1biX2G-0007Qt-4I for gllmg-musl@m.gmane.org; Sat, 10 Sep 2016 03:24:48 +0200 Original-Received: (qmail 5896 invoked by uid 550); 10 Sep 2016 01:24:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5868 invoked from network); 10 Sep 2016 01:24:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=bxb371FhrsFi9hC3T29DSXyxw7ZEmjoEE0smy82JOxE=; b=wVCEnBqTbXJFpQU+R0fXBp1fkHKwpwdaPx7aNEpnHAr27t6JLVVYi5MqLZ9gSrobNE KWvj+5vgfm6qh3ktXVyopHP3TEU36GnZmCLcEjfopQTRUMC7ZGGEs/Vj4ick34rvlE4j I6lsbN1HisDDX6GUE1R5+PlV2kmyQ5TzomEniAqUMCeXJYzrkNaqRxNfu7znp0cNV30l yMdStEXvPA4CW4W6C7djlzTSPPH1E7aI4aKdhGtIBkP4Lur4LPy84Uo3T8kbX6RaI6ZT X3q+sMkV7x6UqFideABuFkcbIgAlgpurg5UVu+cY1lzg6bHFJN+qyhWxDPf+gYFJOnuG ZBSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=bxb371FhrsFi9hC3T29DSXyxw7ZEmjoEE0smy82JOxE=; b=YueJ5wILwmbjk7t6BqchM5PB7oQcu7Fd3hf5d37EtaOVQieu0oBlLq4dG8PSgI8o4M rhZthgOxIbkHk6bjJNRXr88No+gFrWHcQCxYNlGYDhj4UGXm2lONWbmzBJx/mfjGHNni xB5GsBfdA0+DhuFhDWlyEQ6aN6yvAymU/YzOpgUG1Ga6MZsWZLibx40UiRcsCuZVU6yE 085YCC2chh3BcpR6GuTyjx5xCGmmtmul81ugchpFM6h9zHEGYpOwNt4xQML2Umcaw2kz 9FudtIuO9dLw4/mE6eSFRdigZANrbB8W4u6p0jj/uiPzC9RNPgQK/K11Z+PIg9wDsDXS JkOQ== X-Gm-Message-State: AE9vXwNL21afFxnIZYcmpTVPeS/XIMwzkD6zCClPqOOzE78R/1WLtnx5D4x8ZBvgBX/siQ== X-Received: by 10.157.49.81 with SMTP id v17mr8896086otd.134.1473470674874; Fri, 09 Sep 2016 18:24:34 -0700 (PDT) X-Mailer: git-send-email 2.10.0 In-Reply-To: <20160910010115.GV15995@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10435 Archived-At: these functions had been implemented, but prototypes were not made available --- include/wchar.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/wchar.h b/include/wchar.h index 0167dce..3e6db5f 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -136,6 +136,21 @@ size_t wcsftime (wchar_t *__restrict, size_t, const wchar_t *__restrict, const s #undef iswdigit +#if defined(_GNU_SOURCE) +wint_t fgetwc_unlocked (FILE *); +wint_t getwc_unlocked (FILE *); +wint_t getwchar_unlocked (void); +wint_t fputwc_unlocked (wchar_t, FILE *); +wint_t putwc_unlocked (wchar_t, FILE *); +wint_t putwchar_unlocked (wchar_t); +wchar_t *fgetws_unlocked (wchar_t *__restrict, int, FILE *__restrict); +int fputws_unlocked (const wchar_t *__restrict, FILE *__restrict); +#endif + +#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +size_t wcsftime_l (wchar_t *__restrict, size_t, const wchar_t *__restrict, const struct tm *__restrict, locale_t); +#endif + #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \ || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) FILE *open_wmemstream(wchar_t **, size_t *); -- 2.10.0