1 2 #include <errno.h> 3 #include <stdlib.h> 4 #include <string.h> 5 #include <unistd.h> 6 #include <stdint.h> 7 #include <stdio.h> 8 #include <time.h> 9 #include <sys/statvfs.h> 10 11 #define e(errn) e_f(__FILE__, __LINE__, (errn)) 12 #define em(errn,msg) do { fprintf(stderr, "%s\n", msg); e(errn); } while(0) 13 #define efmt(...) fail_printf(__FILE__, __FUNCTION__, __LINE__, __VA_ARGS__) 14 15 #define BIGVARNAME "BIGTEST" 16 17 void printprogress(char *msg, int i, int max); 18 void cleanup(void); 19 int does_fs_truncate(void); 20 void e_f(char *file, int lineno, int n); 21 void fail_printf(const char *file, const char *func, int line, 22 const char *fmt, ...) __attribute__ ((format(printf, 4, 5))); 23 int name_max(char *path); 24 void quit(void); 25 void rm_rf_dir(int test_nr); 26 void rm_rf_ppdir(int test_nr); 27 void start(int test_nr); 28 void getmem(uint32_t *total, uint32_t *free, uint32_t *cached); 29 int get_setting_use_network(void); 30 31 extern int common_test_nr, errct, subtest; 32 int system_p(const char *command); 33