summaryrefslogtreecommitdiff
path: root/packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2022-02-11 02:00:59 (GMT)
committerAlexey Neyman <stilor@att.net>2022-02-11 08:47:51 (GMT)
commit86c2982568de1ad4d4cc12a65b19231331484405 (patch)
tree2e0b3fb78c30877c0c152d59d0e0fff817b73822 /packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch
parent1210b0c2f45e32ef0867ca00e16b6aadb6a81bf9 (diff)
Run patches thru `manage-packages -P`
This refreshes the line numbers, removes any fuzz (which would make any future forward ports easier) and standardizes the patch/file headers (which makes them easier to read). Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch')
-rw-r--r--packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch108
1 files changed, 0 insertions, 108 deletions
diff --git a/packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch b/packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch
deleted file mode 100644
index 5e1c5a8..0000000
--- a/packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-From f0c62653bbcf68291a7dd621db367a9fef666183 Mon Sep 17 00:00:00 2001
-From: Keith Packard <keithp@keithp.com>
-Date: Sun, 24 Jan 2021 15:27:14 -0800
-Subject: [PATCH 3/3] libc: Expose wchar stdio prototypes even for TINY_STDIO
-
-This makes libstdc++ happy when wrapping these names, even though they
-aren't actually available for appplications.
-
-Signed-off-by: Keith Packard <keithp@keithp.com>
----
- newlib/libc/include/wchar.h | 39 +++++++++++++++++++------------------
- 1 file changed, 20 insertions(+), 19 deletions(-)
-
-diff --git a/newlib/libc/include/wchar.h b/newlib/libc/include/wchar.h
-index 8a9c4b0fe..5dc3af93c 100644
---- a/newlib/libc/include/wchar.h
-+++ b/newlib/libc/include/wchar.h
-@@ -217,8 +217,6 @@ float wcstof_l (const wchar_t *, wchar_t **, locale_t);
- long double wcstold_l (const wchar_t *, wchar_t **, locale_t);
- #endif
-
--#ifndef TINY_STDIO
--
- wint_t fgetwc (__FILE *);
- wchar_t *fgetws (wchar_t *__restrict, int, __FILE *__restrict);
- wint_t fputwc (wchar_t, __FILE *);
-@@ -232,6 +230,8 @@ wint_t putwc (wchar_t, __FILE *);
- wint_t putwchar (wchar_t);
- wint_t ungetwc (wint_t wc, __FILE *);
-
-+#ifndef TINY_STDIO
-+
- struct _reent;
-
- wint_t _fgetwc_r (struct _reent *, __FILE *);
-@@ -253,6 +253,24 @@ wint_t _putwchar_r (struct _reent *, wchar_t);
- wint_t _putwchar_unlocked_r (struct _reent *, wchar_t);
- wint_t _ungetwc_r (struct _reent *, wint_t wc, __FILE *);
-
-+int _fwprintf_r (struct _reent *, __FILE *, const wchar_t *, ...);
-+int _swprintf_r (struct _reent *, wchar_t *, size_t, const wchar_t *, ...);
-+int _vfwprintf_r (struct _reent *, __FILE *, const wchar_t *, va_list);
-+int _vswprintf_r (struct _reent *, wchar_t *, size_t, const wchar_t *, va_list);
-+int _vwprintf_r (struct _reent *, const wchar_t *, va_list);
-+int _wprintf_r (struct _reent *, const wchar_t *, ...);
-+
-+int _fwscanf_r (struct _reent *, __FILE *, const wchar_t *, ...);
-+int _swscanf_r (struct _reent *, const wchar_t *, const wchar_t *, ...);
-+int _vfwscanf_r (struct _reent *, __FILE *, const wchar_t *, va_list);
-+int _vswscanf_r (struct _reent *, const wchar_t *, const wchar_t *, va_list);
-+int _vwscanf_r (struct _reent *, const wchar_t *, va_list);
-+int _wscanf_r (struct _reent *, const wchar_t *, ...);
-+
-+__FILE *_open_wmemstream_r (struct _reent *, wchar_t **, size_t *);
-+
-+#endif
-+
- #if __GNU_VISIBLE
- wint_t fgetwc_unlocked (__FILE *);
- wchar_t *fgetws_unlocked (wchar_t *__restrict, int, __FILE *__restrict);
-@@ -267,7 +285,6 @@ wint_t putwchar_unlocked (wchar_t);
- #if __POSIX_VISIBLE >= 200809
- __FILE *open_wmemstream (wchar_t **, size_t *);
- #endif
--__FILE *_open_wmemstream_r (struct _reent *, wchar_t **, size_t *);
-
- #if __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE >= 500
- int fwprintf (__FILE *__restrict, const wchar_t *__restrict, ...);
-@@ -281,13 +298,6 @@ int vwprintf (const wchar_t *__restrict, va_list);
- int wprintf (const wchar_t *__restrict, ...);
- #endif
-
--int _fwprintf_r (struct _reent *, __FILE *, const wchar_t *, ...);
--int _swprintf_r (struct _reent *, wchar_t *, size_t, const wchar_t *, ...);
--int _vfwprintf_r (struct _reent *, __FILE *, const wchar_t *, va_list);
--int _vswprintf_r (struct _reent *, wchar_t *, size_t, const wchar_t *, va_list);
--int _vwprintf_r (struct _reent *, const wchar_t *, va_list);
--int _wprintf_r (struct _reent *, const wchar_t *, ...);
--
- #if __ISO_C_VISIBLE >= 1999 || __XSI_VISIBLE >= 500
- int fwscanf (__FILE *__restrict, const wchar_t *__restrict, ...);
- int swscanf (const wchar_t *__restrict,
-@@ -300,13 +310,6 @@ int vwscanf (const wchar_t *__restrict, va_list);
- int wscanf (const wchar_t *__restrict, ...);
- #endif
-
--int _fwscanf_r (struct _reent *, __FILE *, const wchar_t *, ...);
--int _swscanf_r (struct _reent *, const wchar_t *, const wchar_t *, ...);
--int _vfwscanf_r (struct _reent *, __FILE *, const wchar_t *, va_list);
--int _vswscanf_r (struct _reent *, const wchar_t *, const wchar_t *, va_list);
--int _vwscanf_r (struct _reent *, const wchar_t *, va_list);
--int _wscanf_r (struct _reent *, const wchar_t *, ...);
--
- #define getwc(fp) fgetwc(fp)
- #define putwc(wc,fp) fputwc((wc), (fp))
- #define getwchar() fgetwc(stdin)
-@@ -319,8 +322,6 @@ int _wscanf_r (struct _reent *, const wchar_t *, ...);
- #define putwchar_unlocked(wc) fputwc_unlocked((wc), stdout)
- #endif
-
--#endif /* !TINY_STDIO */
--
- _END_STD_C
-
- #if __SSP_FORTIFY_LEVEL > 0
---
-2.30.0
-