summaryrefslogtreecommitdiff
path: root/packages/picolibc/1.5.1
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
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')
-rw-r--r--packages/picolibc/1.5.1/0000-libc-Remove-include-sys-select.h-from-sys-types.h.patch (renamed from packages/picolibc/1.5.1/0001-libc-Remove-include-sys-select.h-from-sys-types.h.patch)9
-rw-r--r--packages/picolibc/1.5.1/0001-tinystdio-Fix-snprintf-buf-0-.-to-not-smash-buffer.patch (renamed from packages/picolibc/1.5.1/0002-tinystdio-Fix-snprintf-buf-0-.-to-not-smash-buffer.patch)15
-rw-r--r--packages/picolibc/1.5.1/0002-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch (renamed from packages/picolibc/1.5.1/0003-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch)21
3 files changed, 14 insertions, 31 deletions
diff --git a/packages/picolibc/1.5.1/0001-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
index 5536cd4..658d2e4 100644
--- a/packages/picolibc/1.5.1/0001-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
@@ -10,14 +10,12 @@ sys/types.h which haven't yet been defined.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
- newlib/libc/include/sys/types.h | 1 -
+ newlib/libc/include/sys/types.h | 1 -
1 file changed, 1 deletion(-)
-diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h
-index ea25222c2..1a0abcb83 100644
--- a/newlib/libc/include/sys/types.h
+++ b/newlib/libc/include/sys/types.h
-@@ -75,7 +75,6 @@ typedef __intptr_t register_t;
+@@ -75,7 +75,6 @@
#if __BSD_VISIBLE
#include <machine/endian.h>
@@ -25,6 +23,3 @@ index ea25222c2..1a0abcb83 100644
# define physadr physadr_t
# define quad quad_t
---
-2.30.0
-
diff --git a/packages/picolibc/1.5.1/0002-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
index 754957e..911788a 100644
--- a/packages/picolibc/1.5.1/0002-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
@@ -13,15 +13,13 @@ correctly.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
- newlib/libc/tinystdio/snprintf.c | 2 +-
- test/printf_scanf.c | 31 +++++++++++++++++++++++++++++++
+ newlib/libc/tinystdio/snprintf.c | 2 +-
+ test/printf_scanf.c | 31 +++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
-diff --git a/newlib/libc/tinystdio/snprintf.c b/newlib/libc/tinystdio/snprintf.c
-index 52d2f84d3..1052c9338 100644
--- a/newlib/libc/tinystdio/snprintf.c
+++ b/newlib/libc/tinystdio/snprintf.c
-@@ -56,7 +56,7 @@ snprintf(char *s, size_t n, const char *fmt, ...)
+@@ -56,7 +56,7 @@
i = vfprintf(&f.file, fmt, ap);
va_end(ap);
@@ -30,11 +28,9 @@ index 52d2f84d3..1052c9338 100644
s[i < n ? i : n] = 0;
return i;
-diff --git a/test/printf_scanf.c b/test/printf_scanf.c
-index 2bc83e1d0..f89f46e4f 100644
--- a/test/printf_scanf.c
+++ b/test/printf_scanf.c
-@@ -96,6 +96,37 @@ main(int argc, char **argv)
+@@ -96,6 +96,37 @@
fflush(stdout);
}
#endif
@@ -72,6 +68,3 @@ index 2bc83e1d0..f89f46e4f 100644
for (x = 0; x < 32; x++) {
unsigned int v = 0x12345678 >> x;
unsigned int r;
---
-2.30.0
-
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/0002-libc-Expose-wchar-stdio-prototypes-even-for-TINY_STD.patch
index 5e1c5a8..a3e0544 100644
--- a/packages/picolibc/1.5.1/0003-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
@@ -8,14 +8,12 @@ aren't actually available for appplications.
Signed-off-by: Keith Packard <keithp@keithp.com>
---
- newlib/libc/include/wchar.h | 39 +++++++++++++++++++------------------
+ 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);
+@@ -217,8 +217,6 @@
long double wcstold_l (const wchar_t *, wchar_t **, locale_t);
#endif
@@ -24,7 +22,7 @@ index 8a9c4b0fe..5dc3af93c 100644
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 *);
+@@ -232,6 +230,8 @@
wint_t putwchar (wchar_t);
wint_t ungetwc (wint_t wc, __FILE *);
@@ -33,7 +31,7 @@ index 8a9c4b0fe..5dc3af93c 100644
struct _reent;
wint_t _fgetwc_r (struct _reent *, __FILE *);
-@@ -253,6 +253,24 @@ wint_t _putwchar_r (struct _reent *, wchar_t);
+@@ -253,6 +253,24 @@
wint_t _putwchar_unlocked_r (struct _reent *, wchar_t);
wint_t _ungetwc_r (struct _reent *, wint_t wc, __FILE *);
@@ -58,7 +56,7 @@ index 8a9c4b0fe..5dc3af93c 100644
#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);
+@@ -267,7 +285,6 @@
#if __POSIX_VISIBLE >= 200809
__FILE *open_wmemstream (wchar_t **, size_t *);
#endif
@@ -66,7 +64,7 @@ index 8a9c4b0fe..5dc3af93c 100644
#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);
+@@ -281,13 +298,6 @@
int wprintf (const wchar_t *__restrict, ...);
#endif
@@ -80,7 +78,7 @@ index 8a9c4b0fe..5dc3af93c 100644
#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);
+@@ -300,13 +310,6 @@
int wscanf (const wchar_t *__restrict, ...);
#endif
@@ -94,7 +92,7 @@ index 8a9c4b0fe..5dc3af93c 100644
#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 *, ...);
+@@ -319,8 +322,6 @@
#define putwchar_unlocked(wc) fputwc_unlocked((wc), stdout)
#endif
@@ -103,6 +101,3 @@ index 8a9c4b0fe..5dc3af93c 100644
_END_STD_C
#if __SSP_FORTIFY_LEVEL > 0
---
-2.30.0
-