xref: /minix/minix/tests/common.h (revision 83133719)
1 
2 #include <errno.h>
3 #include <stdlib.h>
4 #include <string.h>
5 #include <unistd.h>
6 #include <stdio.h>
7 #include <time.h>
8 #include <sys/statvfs.h>
9 
10 #define e(errn) e_f(__FILE__, __LINE__, (errn))
11 #define em(errn,msg) do { fprintf(stderr, "%s\n", msg); e(errn); } while(0)
12 
13 #define BIGVARNAME "BIGTEST"
14 
15 void printprogress(char *msg, int i, int max);
16 void cleanup(void);
17 int does_fs_truncate(void);
18 void e_f(char *file, int lineno, int n);
19 int name_max(char *path);
20 void quit(void);
21 void rm_rf_dir(int test_nr);
22 void rm_rf_ppdir(int test_nr);
23 void start(int test_nr);
24 void getmem(u32_t *total, u32_t *free, u32_t *cached);
25 
26 extern int common_test_nr, errct, subtest;
27