search for: fb565144

Displaying 2 results from an estimated 2 matches for "fb565144".

Did you mean: f4565d44
2020 Jul 25
0
[klibc:master] stdio: Add extern definition of clearerr()
...ek.o stdio/ftell.o stdio/rewind.o \ - stdio/fileno.o stdio/feof.o stdio/ferror.o + stdio/fileno.o stdio/feof.o stdio/ferror.o stdio/clearerr.o klib-$(CONFIG_KLIBC_ERRLIST) += errlist.o diff --git a/usr/klibc/stdio/clearerr.c b/usr/klibc/stdio/clearerr.c new file mode 100644 index 00000000..fb565144 --- /dev/null +++ b/usr/klibc/stdio/clearerr.c @@ -0,0 +1,8 @@ +#define __NO_STDIO_INLINES +#include "stdioint.h" + +void clearerr(FILE *__f) +{ + __f->_IO_error = 0; + __f->_IO_eof = 0; +}
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...c @@ -11,3 +11,5 @@ size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE * f) { return _fwrite(ptr, size * nmemb, f) / size; } +__ALIAS(size_t, fwrite_unlocked, (const void *, size_t, size_t, FILE *), + fwrite) diff --git a/usr/klibc/stdio/clearerr.c b/usr/klibc/stdio/clearerr.c index fb565144..ebdd22de 100644 --- a/usr/klibc/stdio/clearerr.c +++ b/usr/klibc/stdio/clearerr.c @@ -6,3 +6,4 @@ void clearerr(FILE *__f) __f->_IO_error = 0; __f->_IO_eof = 0; } +__ALIAS(void, clearerr_unlocked, (FILE *), clearerr) diff --git a/usr/klibc/stdio/feof.c b/usr/klibc/stdio/feof.c index 590...