Displaying 2 results from an estimated 2 matches for "_stdio_h".
Did you mean:
stdio_h
2009 Dec 10
1
[PATCH] [RFC] lib: add a hex dump lib function
...om32/include/stdio.h b/com32/include/stdio.h
index f37bdd9..731ebe8 100644
--- a/com32/include/stdio.h
+++ b/com32/include/stdio.h
@@ -114,4 +114,6 @@ __extern void perror(const char *);
__extern int rename(const char *, const char *);
+__extern void hexdump(const void *, int, int);
+
#endif /* _STDIO_H */
diff --git a/com32/lib/Makefile b/com32/lib/Makefile
index c5b1981..50fd07f 100644
--- a/com32/lib/Makefile
+++ b/com32/lib/Makefile
@@ -25,7 +25,7 @@ LIBOBJS = \
strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
aspri...
2020 Jul 25
0
[klibc:master] stdio: Define all the _unlocked functions and macros
...e ferror_unlocked(f) ferror(f)
__extern_inline int feof(FILE *__f)
{
return __f->_IO_eof;
}
+#define feof_unlocked(f) feof(f)
__extern_inline void clearerr(FILE *__f)
{
__f->_IO_error = 0;
__f->_IO_eof = 0;
}
+#define clearerr_unlocked(f) clearerr(f)
#endif
#endif /* _STDIO_H */
diff --git a/usr/klibc/fgets.c b/usr/klibc/fgets.c
index dbf742c6..b6e6f3ea 100644
--- a/usr/klibc/fgets.c
+++ b/usr/klibc/fgets.c
@@ -25,3 +25,4 @@ char *fgets(char *s, int n, FILE *f)
return s;
}
+__ALIAS(char *, fgets_unlocked, (char *, int, FILE *), fgets)
diff --git a/usr/klibc/fputc.c...