summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include')
-rw-r--r--newlib/libc/include/stdio.h5
-rw-r--r--newlib/libc/include/sys/stdio.h14
2 files changed, 19 insertions, 0 deletions
diff --git a/newlib/libc/include/stdio.h b/newlib/libc/include/stdio.h
index 9fb9451e4..767438fac 100644
--- a/newlib/libc/include/stdio.h
+++ b/newlib/libc/include/stdio.h
@@ -47,6 +47,8 @@ extern "C" {
#include <sys/reent.h>
+#include <sys/stdio.h>
+
typedef _fpos_t fpos_t;
typedef struct __sFILE FILE;
@@ -220,6 +222,9 @@ FILE * _EXFUN(popen, (const char *, const char *));
int _EXFUN(putw, (int, FILE *));
void _EXFUN(setbuffer, (FILE *, char *, int));
int _EXFUN(setlinebuf, (FILE *));
+void _EXFUN(flockfile, (FILE *));
+int _EXFUN(ftrylockfile, (FILE *));
+void _EXFUN(funlockfile, (FILE *));
#endif
/*
diff --git a/newlib/libc/include/sys/stdio.h b/newlib/libc/include/sys/stdio.h
new file mode 100644
index 000000000..8177322a0
--- /dev/null
+++ b/newlib/libc/include/sys/stdio.h
@@ -0,0 +1,14 @@
+#ifndef _NEWLIB_STDIO_H
+#define _NEWLIB_STDIO_H
+
+/* Internal locking macros, used to protect stdio functions. In the
+ general case, expand to nothing. */
+#if !defined(_flockfile)
+# define _flockfile(fp)
+#endif
+
+#if !defined(_funlockfile)
+# define _funlockfile(fp)
+#endif
+
+#endif /* _NEWLIB_STDIO_H */