summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/stdio_ext.h
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2014-12-15 18:22:56 +0000
committerYaakov Selkowitz <yselkowi@redhat.com>2014-12-15 18:22:56 +0000
commit6485fc66f2fada39e681ad316352f60a17ac1367 (patch)
treeff01497d054390325e76ac7adb0307279a4bf9e1 /newlib/libc/include/stdio_ext.h
parentf5ce72dffc738d43213e566d8ae082d7428f8be9 (diff)
downloadcygnal-6485fc66f2fada39e681ad316352f60a17ac1367.tar.gz
cygnal-6485fc66f2fada39e681ad316352f60a17ac1367.tar.bz2
cygnal-6485fc66f2fada39e681ad316352f60a17ac1367.zip
* libc/include/stdio.h (__SNLK): Define.
* libc/include/stdio_ext.h (FSETLOCKING_QUERY, FSETLOCKING_INTERNAL, FSETLOCKING_BYCALLER): Define. (__fsetlocking): Declare. * libc/stdio/Makefile.am: Build fsetlocking.c. * libc/stdio/Makefile.in: Regenerate. * libc/stdio/fsetlocking.c: New file. * libc/stdio/local.h (_newlib_flockfile_start): Make _flockfile call dependent on __SNLK flag. (_newlib_flockfile_exit, _newlib_flockfile_end): Ditto for _funlockfile calls. Define all locking macros as empty if __SINGLE_THREAD__. * libc/stdio/stdio.tex: Include fsetlocking.def.
Diffstat (limited to 'newlib/libc/include/stdio_ext.h')
-rw-r--r--newlib/libc/include/stdio_ext.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/newlib/libc/include/stdio_ext.h b/newlib/libc/include/stdio_ext.h
index 4b6f8ae36..029ab0253 100644
--- a/newlib/libc/include/stdio_ext.h
+++ b/newlib/libc/include/stdio_ext.h
@@ -13,14 +13,18 @@
#include <stdio.h>
+#define FSETLOCKING_QUERY 0
+#define FSETLOCKING_INTERNAL 1
+#define FSETLOCKING_BYCALLER 2
+
_BEGIN_STD_C
void _EXFUN(__fpurge,(FILE *));
+int _EXFUN(__fsetlocking,(FILE *, int));
/* TODO:
void _flushlbf (void);
- int __fsetlocking (FILE *__fp, int __type);
*/
#ifdef __GNUC__