Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r--newlib/libc/sys/linux/sys/stdio.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/sys/stdio.h b/newlib/libc/sys/linux/sys/stdio.h
new file mode 100644
index 000000000..859406f3f
--- /dev/null
+++ b/newlib/libc/sys/linux/sys/stdio.h
@@ -0,0 +1,16 @@
+#ifndef _NEWLIB_STDIO_H
+#define _NEWLIB_STDIO_H
+
+/* Internal locking macros, used to protect stdio functions. In the
+ linux case, expand to flockfile, and funlockfile, both defined in
+ LinuxThreads. */
+#if !defined(__SINGLE_THREAD__)
+# if !defined(_flockfile)
+# define _flockfile(fp) /* FIXME: Uncomment when LinuxThreads is in: flockfile(fp) */
+# endif
+# if !defined(_funlockfile)
+# define _funlockfile(fp) /* FIXME: Uncomment when LinuxThreads is in: funlockfile(fp) */
+# endif
+#endif /* __SINGLE_THREAD__ */
+
+#endif /* _NEWLIB_STDIO_H */