Skip to content

Commit bd031c3

Browse files
committed
Update README.md and COPYING.picolibc for upcoming release
And stick the full 3-clause BSD license into a file that had only the SPDX header. Signed-off-by: Keith Packard <[email protected]>
1 parent 0ce9a3e commit bd031c3

File tree

3 files changed

+74
-19
lines changed

3 files changed

+74
-19
lines changed

COPYING.picolibc

+12-17
Original file line numberDiff line numberDiff line change
@@ -797,6 +797,7 @@ Files: cmake/TC-rx.ld
797797
newlib/libc/picolib/machine/or1k/meson.build
798798
newlib/libc/picolib/machine/or1k/tls.c
799799
newlib/libc/picolib/machine/powerpc/CMakeLists.txt
800+
newlib/libc/picolib/machine/powerpc/hwcap.c
800801
newlib/libc/picolib/machine/powerpc/meson.build
801802
newlib/libc/picolib/machine/powerpc/tls.c
802803
newlib/libc/picolib/machine/sh/tls.c
@@ -809,6 +810,7 @@ Files: cmake/TC-rx.ld
809810
semihost/machine/lm32/lm32_errno.c
810811
semihost/machine/rx/rx_iob.c
811812
semihost/machine/rx/rx_semihost.h
813+
semihost/machine/sh/sh_syscall.c
812814
test/test-scmpu.c
813815
test/test-wcase.c
814816
test/test-wctomb.c
@@ -817,7 +819,6 @@ License: BSD3-1
817819

818820
Files: doc/printf-sample/Makefile
819821
doc/printf-sample/printf.c
820-
dummyhost/exit.c
821822
newlib/libc/machine/arm/machine/fenv-fp.h
822823
newlib/libc/machine/m68k/CMakeLists.txt
823824
newlib/libc/machine/m68k/machine/fenv-fp.h
@@ -885,9 +886,7 @@ Files: doc/printf-sample/Makefile
885886
Copyright: 2023 Keith Packard
886887
License: BSD3-1
887888

888-
Files: dummyhost/iob.c
889-
dummyhost/meson.build
890-
hello-world/Makefile
889+
Files: hello-world/Makefile
891890
hello-world/hello-world.c
892891
hello-world/printf.c
893892
hello-world/run-aarch64
@@ -1527,6 +1526,10 @@ Copyright: 2024, Synopsys Inc.
15271526
2024, Solid Sands B.V.
15281527
License: BSD3-1
15291528

1529+
Files: test/test-strncpy.c
1530+
Copyright: 2025 Fredrik Gihl
1531+
License: BSD3-1
1532+
15301533
Files: test/test-tmpnam.c
15311534
Copyright: 2024 Mostafa Salmaan
15321535
License: BSD3-1
@@ -2333,8 +2336,6 @@ Files: newlib/libc/machine/spu/fdopen.c
23332336
newlib/libm/common/copysignl.c
23342337
newlib/libm/common/fabsl.c
23352338
newlib/libm/common/frexpl.c
2336-
newlib/libm/common/isinfl.c
2337-
newlib/libm/common/isnanl.c
23382339
newlib/libm/common/nanl.c
23392340
newlib/libm/common/scalbnl.c
23402341
newlib/libm/ld/s_isinfl.c
@@ -3412,7 +3413,6 @@ Files: newlib/libc/stdlib/abort.c
34123413
newlib/libc/stdlib/mbstowcs.c
34133414
newlib/libc/stdlib/mbtowc.c
34143415
newlib/libc/stdlib/mbtowc_r.c
3415-
newlib/libc/stdlib/mstats.c
34163416
newlib/libc/stdlib/on_exit.c
34173417
newlib/libc/stdlib/rand.c
34183418
newlib/libc/stdlib/rand_r.c
@@ -3750,12 +3750,6 @@ Files: newlib/libc/string/explicit_bzero.c
37503750
Copyright: 2014 Ted Unangst
37513751
License: Other-2
37523752

3753-
Files: newlib/libc/include/elf.h
3754-
newlib/libc/string/strverscmp.c
3755-
newlib/libm/common/nexttowardf.c
3756-
Copyright: 2005-2014 Rich Felker, et al.
3757-
License: Other-3
3758-
37593753
Files: newlib/libc/include/ftw.h
37603754
Copyright: 2005-2020 Rich Felker, et al.
37613755
License: Other-3
@@ -3787,6 +3781,11 @@ Files: newlib/libc/machine/xtensa/xtensa-asm.h
37873781
Copyright: 2006 Tensilica Inc.
37883782
License: Other-3
37893783

3784+
Files: newlib/libc/string/strverscmp.c
3785+
newlib/libm/common/nexttowardf.c
3786+
Copyright: 2005-2014 Rich Felker, et al.
3787+
License: Other-3
3788+
37903789
Files: test/libc-testsuite/basename.c
37913790
test/libc-testsuite/dirname.c
37923791
test/libc-testsuite/fnmatch.c
@@ -4293,9 +4292,7 @@ Files: newlib/libm/common/fdlibm.h
42934292
newlib/libm/common/s_ilogb.c
42944293
newlib/libm/common/s_infinity.c
42954294
newlib/libm/common/s_isinf.c
4296-
newlib/libm/common/s_isinfd.c
42974295
newlib/libm/common/s_isnan.c
4298-
newlib/libm/common/s_isnand.c
42994296
newlib/libm/common/s_llrint.c
43004297
newlib/libm/common/s_llround.c
43014298
newlib/libm/common/s_log1p.c
@@ -4321,9 +4318,7 @@ Files: newlib/libm/common/fdlibm.h
43214318
newlib/libm/common/sf_ilogb.c
43224319
newlib/libm/common/sf_infinity.c
43234320
newlib/libm/common/sf_isinf.c
4324-
newlib/libm/common/sf_isinff.c
43254321
newlib/libm/common/sf_isnan.c
4326-
newlib/libm/common/sf_isnanf.c
43274322
newlib/libm/common/sf_llrint.c
43284323
newlib/libm/common/sf_llround.c
43294324
newlib/libm/common/sf_log1p.c

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,37 @@ use Picolibc:
162162
* Add TLS support and testing on loongarch, m68k, or1k, powerpc and
163163
superh.
164164

165+
* Fix a couple of strncpy bugs in ARC assembly code.
166+
167+
* Clean up preprocessor symbols: remove unused symbols, rename
168+
picolibc.h symbols to use a __ prefix and not include PICOLIBC or
169+
NEWLIB in the names.
170+
171+
* Detect compiler attributes and builtins at compile time rather than
172+
configure time where possible. Delete attributes and builtins not
173+
used within the library implementation.
174+
175+
* Remove non-standard elf.h and mstats API.
176+
177+
* Clean up float predicates to make sure we provide implementations
178+
of isinf, isnan and finite for all three types, both with and
179+
without __ prefixes. Use symbol aliases to share the same function
180+
implementation. Use the __ versions for the type generic macros
181+
instead of fpclassify. Switch users of these within the math
182+
library to use the type-generic versions.
183+
184+
* Start SuperH FPU in single mode when required.
185+
186+
* Test sh1 and sh2 targets using the binutils simulator.
187+
188+
* Initialize PowerPC IPLT table at startup.
189+
190+
* Switch printf/scanf aliases to prefer --printf=/--scanf= compiler
191+
options
192+
193+
* Control UCS-2 and UCS-4 locales with mb-ucs-charsets configuration
194+
option.
195+
165196
### Picolibc release 1.8.9
166197

167198
* Use common clang/gcc feature detection macros on arm.

test/test-strncpy.c

+31-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,36 @@
11
/*
2-
* Copyright (c) 2025 Fredrik Gihl
3-
*
42
* SPDX-License-Identifier: BSD-3-Clause
3+
*
4+
* Copyright © 2025 Fredrik Gihl
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions
8+
* are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright
11+
* notice, this list of conditions and the following disclaimer.
12+
*
13+
* 2. Redistributions in binary form must reproduce the above
14+
* copyright notice, this list of conditions and the following
15+
* disclaimer in the documentation and/or other materials provided
16+
* with the distribution.
17+
*
18+
* 3. Neither the name of the copyright holder nor the names of its
19+
* contributors may be used to endorse or promote products derived
20+
* from this software without specific prior written permission.
21+
*
22+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25+
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26+
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
27+
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
29+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
31+
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32+
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
33+
* OF THE POSSIBILITY OF SUCH DAMAGE.
534
*/
635

736
#include <stdio.h>

0 commit comments

Comments
 (0)