Displaying 3 results from an estimated 3 matches for "__no_stdio_inlines".
2020 Jul 25
0
[klibc:master] stdio: Add extern definition of clearerr()
...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;
+}
2012 May 22
0
[klibc:master] include: [stdio.h] add clearerr() prototype
...ude/stdio.h b/usr/include/stdio.h
index f24ab69..21243cc 100644
--- a/usr/include/stdio.h
+++ b/usr/include/stdio.h
@@ -95,6 +95,7 @@ __extern off_t ftell(FILE *__f);
__extern int ferror(FILE * );
__extern int feof(FILE *);
__extern int fileno(FILE *);
+__extern void clearerr(FILE *);
#ifndef __NO_STDIO_INLINES
__extern_inline size_t
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...ftell
__extern int ferror(FILE * );
+__extern int ferror_unlocked(FILE * );
__extern int feof(FILE *);
+__extern int feof_unlocked(FILE *);
__extern int fileno(FILE *);
+__extern int fileno_unlocked(FILE *);
__extern void clearerr(FILE *);
+__extern void clearerr_unlocked(FILE *);
#ifndef __NO_STDIO_INLINES
__extern_inline size_t
@@ -104,33 +118,39 @@ fread(void *__p, size_t __s, size_t __n, FILE * __f)
{
return _fread(__p, __s * __n, __f) / __s;
}
+#define fread_unlocked(p, s, n, f) fread((p), (s), (n), (f))
__extern_inline size_t
fwrite(const void *__p, size_t __s, size_t __n, FILE * __f)...