1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Keith Packard
698abbaa04 sys/picolibc_syscalls_default: Fix read/write return for picolibc >= 1.8
Picolibc switched to standard posix types for read/write return in
version 1.8.

Signed-off-by: Keith Packard <keithp@keithp.com>
2023-03-03 12:04:48 -08:00
b651b29751 sys/picolibc_syscalls_default: make stdin and stderr strong refs 2021-10-20 11:21:57 +02:00
27b9c6da06 sys/picolibc_syscalls_default: support new picolibc stdio globals 2021-10-18 12:02:33 +02:00
benpicco
819dc7de90
Merge pull request #14843 from benpicco/picolibc_stdio_offset
picolibc: enable read()/write() with !VFS, implement missing fs functions
2020-09-11 18:04:01 +02:00
Leandro Lanzieri
81cb769cad
makefiles: avoid building archives when compiling 2020-09-04 15:01:10 +02:00
benpicco
61334d55d6
Merge pull request #14840 from benpicco/picolibc_unbuffered
picolibc: only enable stdout buffering for CDC ACM, ethos, semihosting & SLIP
2020-09-01 15:15:01 +02:00
Benjamin Valentin
c0397668ca picolibc: fix build for fe310
We need to include `irq.h` for `irq_disable()`.
2020-08-31 12:56:56 +02:00
Benjamin Valentin
3f35564b36 picolibc: implement rmdir(), remove() & rewind()
Those are used by `tests/pkg_fatfs_vfs`.
2020-08-25 08:26:25 +02:00
Benjamin Valentin
eb00ca816f picolibc: enable read/write etc. functions without VFS
The read()/write() functions still work without VFS when
reading/writing to stdin, stdout or stderr.

Provide dummy functions for the remaining fs functions so
linking does not fail with !VFS.
2020-08-25 08:26:25 +02:00
Benjamin Valentin
28d40eae6f picolibc: enable multiple heaps
We can simply re-use the same code from newlib.
2020-08-24 20:45:05 +02:00
Benjamin Valentin
ea27064d21 picolibc: make stdout buffering optional 2020-08-24 18:49:36 +02:00
Keith Packard
fda68c4149 picolibc: Add stdout buffering [v2]
Add buffering so that USB back-ends get some batching for stdout

Signed-off-by: Keith Packard <keithp@keithp.com>

----

v2:
	Replace tabs with spaces.
2020-08-24 08:26:41 -07:00
79d733a1af picolibc: glue sbrk to heap start/end [v2]
---
v2:
	Squash fixes in
2020-08-24 08:26:16 -07:00
b64f8a22a3 picolibc: Add default syscall implementations [v2]
picolibc: Use thread_getpid for getpid() in picolibc_syscalls_default

Instead of directly accessing the sched_active_pid variable (which
isn't defined in this context), use the existing wrapper function
to get that value.

Signed-off-by: Keith Packard <keithp@keithp.com>

---
v2:
	Squash a couple of fixes in

	* fixup! picolibc: Use thread_getpid for getpid() in
          picolibc_syscalls_default

	* squashme: Add `times` to picolibc syscalls

	* Add __noreturn__ attribute to _exit

	* Add VFS syscall wrappers. This provides the POSIX api used
          by picolibc stdio
2020-08-23 12:43:51 -07:00