/external/ltp/include/old/ |
old_module.h | 45 * In case of failure, test'll call cleanup_fn and exit with TCONF return value. 47 void tst_module_exist(void (cleanup_fn)(void), const char *mod_name, 58 * In case of insmod failure, test will call cleanup_fn and exit with TBROK 61 void tst_module_load(void (cleanup_fn)(void), 66 * cleanup_fn and exit with TBROK return value. 70 void tst_module_unload(void (cleanup_fn)(void), const char *mod_name);
|
old_checkpoint.h | 40 #define TST_CHECKPOINT_INIT(cleanup_fn) \ 41 tst_checkpoint_init(__FILE__, __LINE__, cleanup_fn) 43 #define TST_SAFE_CHECKPOINT_WAIT(cleanup_fn, id) \ 44 tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, 0); 46 #define TST_SAFE_CHECKPOINT_WAIT2(cleanup_fn, id, msec_timeout) \ 47 tst_safe_checkpoint_wait(__FILE__, __LINE__, cleanup_fn, id, msec_timeout); 49 #define TST_SAFE_CHECKPOINT_WAKE(cleanup_fn, id) \ 50 tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, 1); 52 #define TST_SAFE_CHECKPOINT_WAKE2(cleanup_fn, id, nr_wake) \ 53 tst_safe_checkpoint_wake(__FILE__, __LINE__, cleanup_fn, id, nr_wake) [all...] |
old_device.h | 45 const char *tst_acquire_device_(void (cleanup_fn)(void), unsigned int size); 49 static inline const char *tst_acquire_device(void (cleanup_fn)(void)) 51 return tst_acquire_device_(cleanup_fn, 0);
|
old_resource.h | 47 #define TST_RESOURCE_COPY(cleanup_fn, filename, dest) \ 48 tst_resource_copy(__FILE__, __LINE__, (cleanup_fn), \ 52 void (*cleanup_fn)(void),
|
old_safe_stdio.h | 25 #define SAFE_FOPEN(cleanup_fn, path, mode) \ 26 safe_fopen(__FILE__, __LINE__, cleanup_fn, path, mode) 28 #define SAFE_FCLOSE(cleanup_fn, f) \ 29 safe_fclose(__FILE__, __LINE__, cleanup_fn, f) 31 #define SAFE_ASPRINTF(cleanup_fn, strp, fmt, ...) \ 32 safe_asprintf(__FILE__, __LINE__, cleanup_fn, strp, fmt, __VA_ARGS__) 34 #define SAFE_POPEN(cleanup_fn, command, type) \ 35 safe_popen(__FILE__, __LINE__, cleanup_fn, command, type)
|
safe_macros.h | 23 #define SAFE_BASENAME(cleanup_fn, path) \ 24 safe_basename(__FILE__, __LINE__, (cleanup_fn), (path)) 26 #define SAFE_CHDIR(cleanup_fn, path) \ 27 safe_chdir(__FILE__, __LINE__, (cleanup_fn), (path)) 29 #define SAFE_CLOSE(cleanup_fn, fd) ({ \ 30 int ret = safe_close(__FILE__, __LINE__, (cleanup_fn), (fd)); \ 35 #define SAFE_CREAT(cleanup_fn, pathname, mode) \ 36 safe_creat(__FILE__, __LINE__, cleanup_fn, (pathname), (mode)) 38 #define SAFE_DIRNAME(cleanup_fn, path) \ 39 safe_dirname(__FILE__, __LINE__, (cleanup_fn), (path) [all...] |
old_safe_net.h | 30 #define SAFE_SOCKET(cleanup_fn, domain, type, protocol) \ 31 safe_socket(__FILE__, __LINE__, (cleanup_fn), domain, type, protocol) 33 #define SAFE_BIND(cleanup_fn, socket, address, address_len) \ 34 safe_bind(__FILE__, __LINE__, (cleanup_fn), socket, address, \ 37 #define SAFE_LISTEN(cleanup_fn, socket, backlog) \ 38 safe_listen(__FILE__, __LINE__, (cleanup_fn), socket, backlog) 40 #define SAFE_CONNECT(cleanup_fn, sockfd, addr, addrlen) \ 41 safe_connect(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, addrlen) 43 #define SAFE_GETSOCKNAME(cleanup_fn, sockfd, addr, addrlen) \ 44 safe_getsockname(__FILE__, __LINE__, (cleanup_fn), sockfd, addr, [all...] |
old_safe_file_ops.h | 37 #define SAFE_FILE_SCANF(cleanup_fn, path, fmt, ...) \ 38 safe_file_scanf(__FILE__, __LINE__, (cleanup_fn), \ 41 #define FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ 42 file_lines_scanf(__FILE__, __LINE__, (cleanup_fn), 0, \ 45 #define SAFE_FILE_LINES_SCANF(cleanup_fn, path, fmt, ...) \ 46 file_lines_scanf(__FILE__, __LINE__, (cleanup_fn), 1, \ 53 #define SAFE_FILE_PRINTF(cleanup_fn, path, fmt, ...) \ 54 safe_file_printf(__FILE__, __LINE__, (cleanup_fn), \ 57 #define SAFE_CP(cleanup_fn, src, dst) \ 58 safe_cp(__FILE__, __LINE__, (cleanup_fn), (src), (dst) [all...] |
/external/ltp/include/ |
tst_get_bad_addr.h | 23 void *tst_get_bad_addr(void (*cleanup_fn) (void));
|
tst_pid.h | 26 pid_t tst_get_unused_pid_(void (*cleanup_fn)(void)); 32 int tst_get_free_pids_(void (*cleanup_fn)(void)); 45 static inline pid_t tst_get_unused_pid(void (*cleanup_fn)(void)) 47 return tst_get_unused_pid_(cleanup_fn); 50 static inline int tst_get_free_pids(void (*cleanup_fn)(void)) 52 return tst_get_free_pids_(cleanup_fn);
|
safe_stdio_fn.h | 23 FILE *safe_fopen(const char *file, const int lineno, void (cleanup_fn)(void), 26 int safe_fclose(const char *file, const int lineno, void (cleanup_fn)(void), 29 int safe_asprintf(const char *file, const int lineno, void (cleanup_fn)(void), 32 FILE *safe_popen(const char *file, const int lineno, void (cleanup_fn)(void),
|
safe_macros_fn.h | 28 void (*cleanup_fn)(void), char *path); 31 void (*cleanup_fn)(void), const char *path); 34 void (*cleanup_fn)(void), int fildes); 37 void (*cleanup_fn)(void), const char *pathname, mode_t mode); 40 void (*cleanup_fn)(void), char *path); 43 void (*cleanup_fn)(void), char *buf, size_t size); 46 void (*cleanup_fn)(void), const char *name); 49 void (*cleanup_fn)(void), int who, struct rusage *usage); 52 void (*cleanup_fn)(void), size_t size); 55 void (*cleanup_fn)(void), const char *pathname, mode_t mode) [all...] |
tst_checkpoint_fn.h | 27 void (*cleanup_fn)(void)); 48 void (*cleanup_fn)(void), unsigned int id, 52 void (*cleanup_fn)(void), unsigned int id,
|
tst_cmd.h | 31 * exit code, otherwise it will call cleanup_fn() if the program 34 int tst_run_cmd_fds_(void (cleanup_fn)(void), 46 * exit code, otherwise it will call cleanup_fn() if the program 49 int tst_run_cmd_(void (cleanup_fn)(void), 74 static inline int tst_run_cmd_fds(void (cleanup_fn)(void), 80 return tst_run_cmd_fds_(cleanup_fn, argv, 84 static inline int tst_run_cmd(void (cleanup_fn)(void), 90 return tst_run_cmd_(cleanup_fn, argv,
|
tst_process_state.h | 63 # define TST_PROCESS_STATE_WAIT(cleanup_fn, pid, state) \ 64 tst_process_state_wait(__FILE__, __LINE__, (cleanup_fn), \ 69 void (*cleanup_fn)(void),
|
tst_path_has_mnt_flags.h | 26 int tst_path_has_mnt_flags_(void (*cleanup_fn)(void),
|
safe_file_ops_fn.h | 34 void (*cleanup_fn)(void), 39 void (*cleanup_fn)(void), int strict, 51 void (*cleanup_fn)(void), 59 void (*cleanup_fn)(void), 75 void (*cleanup_fn)(void),
|
/external/ltp/lib/ |
tst_get_bad_addr.c | 22 void *tst_get_bad_addr(void (*cleanup_fn) (void)) 28 tst_brkm(TBROK, cleanup_fn, "mmap() failed to get bad address");
|
tst_dir_is_empty.c | 28 int tst_dir_is_empty_(void (cleanup_fn)(void), const char *name, int verbose) 31 DIR *dir = SAFE_OPENDIR(cleanup_fn, name); 34 while ((entry = SAFE_READDIR(cleanup_fn, dir)) != NULL) { 46 SAFE_CLOSEDIR(cleanup_fn, dir);
|
tst_checkpoint.c | 40 void (*cleanup_fn)(void)) 46 tst_brkm(TBROK, cleanup_fn, 63 if (cleanup_fn && !tst_tmpdir_created()) { 64 tst_brkm(TBROK, cleanup_fn, 72 fd = SAFE_OPEN(cleanup_fn, "checkpoint_futex_base_file", 75 SAFE_FTRUNCATE(cleanup_fn, fd, page_size); 77 tst_futexes = SAFE_MMAP(cleanup_fn, NULL, page_size, 82 SAFE_CLOSE(cleanup_fn, fd); 131 void (*cleanup_fn)(void), unsigned int id, 142 tst_brkm(TBROK | TERRNO, cleanup_fn, [all...] |
safe_stdio.c | 26 FILE *safe_fopen(const char *file, const int lineno, void (cleanup_fn)(void), 32 tst_brkm(TBROK | TERRNO, cleanup_fn, 40 int safe_fclose(const char *file, const int lineno, void (cleanup_fn)(void), 48 tst_brkm(TBROK | TERRNO, cleanup_fn, 55 int safe_asprintf(const char *file, const int lineno, void (cleanup_fn)(void), 66 tst_brkm(TBROK | TERRNO, cleanup_fn, 73 FILE *safe_popen(const char *file, const int lineno, void (cleanup_fn)(void), 84 tst_brkm(TBROK | TERRNO, cleanup_fn, 88 tst_brkm(TBROK, cleanup_fn,
|
tst_mkfs.c | 25 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void), 36 tst_brkm(TBROK, cleanup_fn, 42 tst_brkm(TBROK, cleanup_fn, 54 tst_brkm(TBROK, cleanup_fn, 73 tst_brkm(TBROK, cleanup_fn, 87 tst_brkm(TBROK, cleanup_fn, "tst_clear_device() failed"); 91 ret = tst_run_cmd(cleanup_fn, argv, "/dev/null", NULL, 1); 97 tst_brkm(TCONF, cleanup_fn, 100 tst_brkm(TBROK, cleanup_fn,
|
tst_pid.c | 30 pid_t tst_get_unused_pid_(void (*cleanup_fn) (void)) 34 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); 39 int tst_get_free_pids_(void (*cleanup_fn) (void)) 58 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids);
|
tst_module.c | 31 void tst_module_exists(void (cleanup_fn)(void), 47 tst_brkm(TBROK | TERRNO, cleanup_fn, 59 tst_brkm(TBROK | TERRNO, cleanup_fn, 69 tst_brkm(TCONF, cleanup_fn, "Failed to find module '%s'", 80 void tst_module_load(void (cleanup_fn)(void), 84 tst_module_exists(cleanup_fn, mod_name, &mod_path); 100 tst_run_cmd(cleanup_fn, mod_argv, NULL, NULL, 0); 104 void tst_module_unload(void (cleanup_fn)(void), const char *mod_name) 120 tst_brkm(TBROK, cleanup_fn,
|
tst_resource.c | 83 void (*cleanup_fn)(void), const char *path, 95 safe_cp(file, lineno, cleanup_fn, buf, dest); 101 void (*cleanup_fn)(void), 105 tst_brkm(TBROK, cleanup_fn, 119 if (file_copy(file, lineno, cleanup_fn, dataroot, filename, dest)) 127 if (file_copy(file, lineno, cleanup_fn, buf, filename, dest)) 133 if (file_copy(file, lineno, cleanup_fn, startwd, filename, dest)) 136 tst_brkm(TBROK, cleanup_fn, "Failed to copy resource '%s' at %s:%d",
|