summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/stdio.h
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@redhat.com>2002-05-08 00:12:49 +0000
committerThomas Fitzsimmons <fitzsim@redhat.com>2002-05-08 00:12:49 +0000
commite71372faea4af670215b087a69c2b7432181a852 (patch)
tree5adf28cd89c62937515cb7362e878ec45b51d190 /newlib/libc/include/sys/stdio.h
parent735bb7e7d7c52aedc7099411ef235fee206e7240 (diff)
downloadcygnal-e71372faea4af670215b087a69c2b7432181a852.tar.gz
cygnal-e71372faea4af670215b087a69c2b7432181a852.tar.bz2
cygnal-e71372faea4af670215b087a69c2b7432181a852.zip
* libc/include/sys/stdio.h: New file.
* libc/sys/linux/sys/stdio.h: New file. * libc/include/stdio.h: Add declarations for flockfile, ftrylockfile, and funlockfile. Include <sys/stdio.h>. * libc/stdio/clearerr.c: Add file locking. * libc/stdio/fclose.c: Likewise. * libc/stdio/feof.c: Likewise. * libc/stdio/ferror.c: Likewise. * libc/stdio/fflush.c: Likewise. * libc/stdio/fgetc.c: Likewise. * libc/stdio/fgetpos.c: Likewise. * libc/stdio/fgets.c: Likewise. * libc/stdio/fileno.c: Likewise. * libc/stdio/fputc.c: Likewise. * libc/stdio/fputs.c: Likewise. * libc/stdio/fread.c: Likewise. * libc/stdio/freopen.c: Likewise. * libc/stdio/fseek.c: Likewise. * libc/stdio/ftell.c: Likewise. * libc/stdio/fwrite.c: Likewise. * libc/stdio/getc.c: Likewise. * libc/stdio/putc.c: Likewise. * libc/stdio/setvbuf.c: Likewise. * libc/stdio/ungetc.c: Likewise. * libc/stdio/vfprintf.c: Likewise.
Diffstat (limited to 'newlib/libc/include/sys/stdio.h')
-rw-r--r--newlib/libc/include/sys/stdio.h14
1 files changed, 14 insertions, 0 deletions
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 */