Re: [PATCH 0/2] nolibc: Add fread() and fseek()

From: Thomas Weißschuh
Date: Sun Jan 04 2026 - 04:11:28 EST


On 2026-01-04 17:38:35+0900, Daniel Palmer wrote:
> Using nolibc on nommu 68000, something I'm trying to build[0] wanted fread() and fseek()
> so I added them, they seem to work so I'm sharing them. Not sure if I need to add
> tests or something? Maybe there is a reason these weren't implemented in the first place...

Thanks! These look good in general, I'll reply inline with some comments.
Please also do add some tests.

> 0 - https://github.com/FrenkelS/Doom8088ST/issues/21
>
> Daniel Palmer (2):
> tools/nolibc: Add fread() to stdio.h
> tools/nolibc: Add fseek() to stdio.h
>
> tools/include/nolibc/stdio.h | 54 +++++++++++++++++++++++++++++++++++-
> 1 file changed, 53 insertions(+), 1 deletion(-)
>
> --
> 2.51.0
>