[haiku-development] [PATCH] Trac hates me, stdio_ext.h patch here
- From: "Urias McCullough" <umccullough@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Sat, 19 Jul 2008 12:59:01 -0700
Somehow Trac has gotten into a bad state where I can no longer attach
files to ticket #2078. I tried to update the patch, and now I get
failure messages:
Trac detected an internal error:
Exception: Failed to create unique name:
/var/trac/dev.haiku-os.org/attachments/ticket/2078/stdio_ext.100.patch
In any case, the patch is attached to this email instead.
- Urias
Index: headers/posix/stdio_ext.h
===================================================================
--- headers/posix/stdio_ext.h (revision 0)
+++ headers/posix/stdio_ext.h (revision 0)
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2008, Haiku Inc. All Rights Reserved.
+ * Distributed under the terms of the MIT License.
+ */
+#ifndef _STDIO_EXT_H_
+#define _STDIO_EXT_H_
+
+#include <stdio.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define FSETLOCKING_QUERY 0
+#define FSETLOCKING_INTERNAL 1
+#define FSETLOCKING_BYCALLER 2
+
+/* stdio extensions */
+extern size_t __fufsize(FILE *stream);
+extern int __freading(FILE *stream);
+extern int __fwriting(FILE *stream);
+extern int __freadable(FILE *stream);
+extern int __fwritable(FILE *stream);
+extern int __flbf(FILE *stream);
+extern void __fpurge(FILE *stream);
+extern size_t __fpending(FILE *stream);
+extern void _flushlbf(void);
+extern int __fsetlocking(FILE *stream, int type);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _STDIO_EXT_H_ */
+
- Follow-Ups:
- [haiku-development] Re: [PATCH] Trac hates me, stdio_ext.h patch here
- From: Urias McCullough
Other related posts:
- » [haiku-development] [PATCH] Trac hates me, stdio_ext.h patch here
- » [haiku-development] Re: [PATCH] Trac hates me, stdio_ext.h patch here
- [haiku-development] Re: [PATCH] Trac hates me, stdio_ext.h patch here
- From: Urias McCullough