zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.61k stars 6.5k forks source link

libc: implement `fopen()` #66939

Open ycsin opened 9 months ago

ycsin commented 9 months ago

This was originally added as a ticket under POSIX, but fopen() is not a POSIX function. It is from C89.

https://en.cppreference.com/w/c/io/fopen

The expectation from the POSIX API is that this function is implemented as part of whatever C library is in use.

cfriedt commented 9 months ago

Implementing this should fix #66132

cc @carlescufi

RAJAGOPALAN-GANGADHARAN commented 4 months ago

Hi @cfriedt , I would like to implement this as well (and bunch of other posix methods like fclose, foef, ferror, and modifying fwrite) since I'm already working on implementing the fread. Thanks!