summaryrefslogtreecommitdiff
path: root/stdio.c
blob: cf5d6acf193206b4d7359beafb10f4e451c96138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#include "_stdio.h"
#include "test.h"

void test_stdio_h(void)
{
	FILE *file;
	fpos_t fpos;
	size_t size;
	(void)file;
	(void)fpos;
	(void)size;

	int buftypes[] = {
		_IOFBF,
		_IOLBF,
		_IONBF,
	};

	int seeks[] = {
		SEEK_CUR,
		SEEK_END,
		SEEK_SET,
	};

	testing_header("stdio.h");

	test_distinct(buftypes);
	test_distinct(seeks);

	test_min(BUFSIZ, 256);
	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();
}