summaryrefslogtreecommitdiff
path: root/stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio.c')
-rw-r--r--stdio.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/stdio.c b/stdio.c
new file mode 100644
index 0000000..713b16b
--- /dev/null
+++ b/stdio.c
@@ -0,0 +1,34 @@
+#include <stdio.h>
+#include "test.h"
+
+void test_stdio_h(void)
+{
+ FILE *file;
+ fpos_t fpos;
+ size_t size;
+
+ int buftypes[] = {
+ _IOFBF,
+ _IOLBF,
+ _IONBF,
+ };
+
+ int seeks[] = {
+ SEEK_CUR,
+ SEEK_END,
+ SEEK_SET,
+ };
+
+ testing_header("stdio.h");
+
+ test_distinct(buftypes);
+ test_min(BUFSIZ, 256);
+ test_defined(EOF);
+ test_min(FILENAME_MAX, 1);
+ test_min(FOPEN_MAX, 8);
+ test_min(L_tmpnam, 1);
+ test_true(NULL == 0);
+ test_min(TMP_MAX, 25);
+
+ testing_end();
+}