diff options
Diffstat (limited to 'packages/picolibc/1.5.1')
5 files changed, 0 insertions, 203 deletions
diff --git a/packages/picolibc/1.5.1/0000-libc-Remove-include-sys-select.h-from-sys-types.h.patch b/packages/picolibc/1.5.1/0000-libc-Remove-include-sys-select.h-from-sys-types.h.patch deleted file mode 100644 index 658d2e4b..00000000 --- a/packages/picolibc/1.5.1/0000-libc-Remove-include-sys-select.h-from-sys-types.h.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 9d0640874425e9f3f265c9baff7a47139b25ea7d Mon Sep 17 00:00:00 2001 -From: Keith Packard <keithp@keithp.com> -Date: Thu, 14 Jan 2021 17:54:22 -0800 -Subject: [PATCH 1/2] libc: Remove #include <sys/select.h> from sys/types.h - -picolibc's sys/select.h is likely to be replaced by the underlying -operating system version (as it is on Zephyr). Don't include it from -sys/types.h as that version may depend on other definitions in -sys/types.h which haven't yet been defined. - -Signed-off-by: Keith Packard <keithp@keithp.com> ---- - newlib/libc/include/sys/types.h | 1 - - 1 file changed, 1 deletion(-) - ---- a/newlib/libc/include/sys/types.h -+++ b/newlib/libc/include/sys/types.h -@@ -75,7 +75,6 @@ - - #if __BSD_VISIBLE - #include <machine/endian.h> --#include <sys/select.h> - # define physadr physadr_t - # define quad quad_t - diff --git a/packages/picolibc/1.5.1/0001-tinystdio-Fix-snprintf-buf-0-.-to-not-smash-buffer.patch b/packages/picolibc/1.5.1/0001-tinystdio-Fix-snprintf-buf-0-.-to-not-smash-buffer.patch deleted file mode 100644 index 911788ae..00000000 --- a/packages/picolibc/1.5.1/0001-tinystdio-Fix-snprintf-buf-0-.-to-not-smash-buffer.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 9df2d784439720abbf67fa96c6515a5c4a9f230a Mon Sep 17 00:00:00 2001 -From: Keith Packard <keithp@keithp.com> -Date: Thu, 14 Jan 2021 18:48:44 -0800 -Subject: [PATCH 2/2] tinystdio: Fix snprintf(buf, 0, ...) to not smash buffer - -snprintf(buf, 0) should not write anything to the destination, not -even a trailing '\0'. The tinystdio implementation had a signed -comparison bug where this case would cause a null to be placed in the -output buffer at the size of the data that would have been written. - -Add a test to make sure snprintf respects the 'len' parameter -correctly. - -Signed-off-by: Keith Packard <keithp@keithp.com> ---- - newlib/libc/tinystdio/snprintf.c | 2 +- - test/printf_scanf.c | 31 +++++++++++++++++++++++++++++++ - 2 files changed, 32 insertions(+), 1 deletion(-) - ---- a/newlib/libc/tinystdio/snprintf.c -+++ b/newlib/libc/tinystdio/snprintf.c -@@ -56,7 +56,7 @@ - i = vfprintf(&f.file, fmt, ap); - va_end(ap); - -- if (n >= 0 && i >= 0) -+ if ((int) n >= 0 && i >= 0) - s[i < n ? i : n] = 0; - - return i; ---- a/test/printf_scanf.c -+++ b/test/printf_scanf.c -@@ -96,6 +96,37 @@ - fflush(stdout); - } - #endif -+ -+ /* -+ * test snprintf to make sure it doesn't overwrite the specified buffer -+ * length (even if that is zero) -+ */ -+ for (x = 0; x <= 6; x++) { -+ char tbuf[10] = "xxxxxxxxx"; -+ const char ref[10] = "xxxxxxxxx"; -+ int i = snprintf(tbuf, x, "%s", "123"); -+ int y = x <= 4 ? x : 4; -+ if (i != 3) { -+ printf("snprintf(tbuf, %d, \"%%s\", \"123\") return %d instead of %d\n", -+ x, i, 3); -+ errors++; -+ } -+ int l = strlen(tbuf); -+ if (y > 0 && l != y - 1) { -+ printf("returned buffer len want %d got %d\n", y - 1, l); -+ errors++; -+ } -+ if (y > 0 && strncmp(tbuf, "123", y - 1) != 0) { -+ strncpy(buf, "123", y - 1); -+ buf[y-1] = '\0'; -+ printf("returned buffer want %s got %s\n", buf, tbuf); -+ errors++; -+ } -+ if (memcmp(tbuf + y, ref + y, sizeof(tbuf) - y) != 0) { -+ printf("tail of buf mangled %s\n", tbuf + y); -+ errors++; -+ } -+ } - for (x = 0; x < 32; x++) { - unsigned int v = 0x12345678 >> x; - unsigned int r; diff --git a/packages/picolibc/1.5.1/0002-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch b/packages/picolibc/1.5.1/0002-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch deleted file mode 100644 index a3e05447..00000000 --- a/packages/picolibc/1.5.1/0002-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch +++ /dev/null @@ -1,103 +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(-) - ---- a/newlib/libc/include/wchar.h -+++ b/newlib/libc/include/wchar.h -@@ -217,8 +217,6 @@ - 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 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_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 @@ - #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 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 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 @@ - #define putwchar_unlocked(wc) fputwc_unlocked((wc), stdout) - #endif - --#endif /* !TINY_STDIO */ -- - _END_STD_C - - #if __SSP_FORTIFY_LEVEL > 0 diff --git a/packages/picolibc/1.5.1/chksum b/packages/picolibc/1.5.1/chksum deleted file mode 100644 index 01fb1450..00000000 --- a/packages/picolibc/1.5.1/chksum +++ /dev/null @@ -1,4 +0,0 @@ -md5 picolibc-1.5.1.tar.xz e2221b038181ae0c9f7b0bd3b1353d9e -sha1 picolibc-1.5.1.tar.xz ad86b3f02fa7fc62563984f2c1a20ee8b4e566b9 -sha256 picolibc-1.5.1.tar.xz 06b34f34af4cef1be16e7d2e6de9f0c3aa9980dd7fd86c8b1b78331efbfa9db6 -sha512 picolibc-1.5.1.tar.xz 882ad8a20ab6dd8816a8b468834c3fcd66dd57f668f9fcb53e92b99c643377e15df2c37e80f6212c82d4ec63320575e0f7158c071edf5d8f66bb58aa4eecfd24 diff --git a/packages/picolibc/1.5.1/version.desc b/packages/picolibc/1.5.1/version.desc deleted file mode 100644 index fcfe3891..00000000 --- a/packages/picolibc/1.5.1/version.desc +++ /dev/null @@ -1 +0,0 @@ -obsolete='yes' |