Home
last modified time | relevance | path

Searched refs:cleanup_fn (Results 1 - 25 of 39) sorted by relevance

12

/third_party/ltp/include/old/
H A Dsafe_macros.h23 #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), (pat
163 safe_mmap(const char *file, const int lineno, void (*cleanup_fn)(void), void *addr, size_t length, int prot, int flags, int fd, off_t offset) safe_mmap() argument
217 safe_stat(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, struct stat *buf) safe_stat() argument
234 safe_fstat(const char *file, const int lineno, void (cleanup_fn)(void), int fd, struct stat *buf) safe_fstat() argument
251 safe_lstat(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, struct stat *buf) safe_lstat() argument
268 safe_lseek(const char *file, const int lineno, void (cleanup_fn)(void), int fd, off_t offset, int whence) safe_lseek() argument
286 safe_getrlimit(const char *file, const int lineno, void (cleanup_fn)(void), int resource, struct rlimit *rlim) safe_getrlimit() argument
304 safe_setrlimit(const char *file, const int lineno, void (cleanup_fn)(void), int resource, const struct rlimit *rlim) safe_setrlimit() argument
[all...]
H A Dold_checkpoint.h40 #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, i
[all...]
H A Dold_safe_file_ops.h37 #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), (sr
[all...]
H A Dold_safe_net.h30 #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), sockf
[all...]
H A Dold_module.h37 void tst_module_exists_(void (cleanup_fn)(void), const char *mod_name,
40 void tst_module_load_(void (cleanup_fn)(void), const char *mod_name,
43 void tst_module_unload_(void (cleanup_fn)(void), const char *mod_name);
53 * In case of failure, test'll call cleanup_fn and exit with TCONF return value.
55 static inline void tst_module_exists(void (cleanup_fn)(void), in tst_module_exists() argument
58 tst_module_exists_(cleanup_fn, mod_name, mod_path); in tst_module_exists()
69 * In case of insmod failure, test will call cleanup_fn and exit with TBROK
72 static inline void tst_module_load(void (cleanup_fn)(void), in tst_module_load() argument
75 tst_module_load_(cleanup_fn, mod_name, argv); in tst_module_load()
80 * cleanup_fn an
84 tst_module_unload(void (cleanup_fn)(void), const char *mod_name) tst_module_unload() argument
[all...]
H A Dold_safe_stdio.h25 #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)
H A Dold_resource.h47 #define TST_RESOURCE_COPY(cleanup_fn, filename, dest) \
48 tst_resource_copy(__FILE__, __LINE__, (cleanup_fn), \
52 void (*cleanup_fn)(void),
H A Dold_device.h46 const char *tst_acquire_device_(void (cleanup_fn)(void), unsigned int size);
50 static inline const char *tst_acquire_device(void (cleanup_fn)(void)) in tst_acquire_device() argument
52 return tst_acquire_device_(cleanup_fn, 0); in tst_acquire_device()
/third_party/ltp/include/
H A Dsafe_macros_fn.h40 void (*cleanup_fn)(void), char *path);
43 void (*cleanup_fn)(void), const char *path);
46 void (*cleanup_fn)(void), int fildes);
49 void (*cleanup_fn)(void), const char *pathname, mode_t mode);
52 void (*cleanup_fn)(void), char *path);
55 void (*cleanup_fn)(void), char *buf, size_t size);
58 void (*cleanup_fn)(void), const char *name);
61 void (*cleanup_fn)(void), int who, struct rusage *usage);
64 void (*cleanup_fn)(void), size_t size);
67 void (*cleanup_fn)(voi
[all...]
H A Dtst_pid.h13 pid_t tst_get_unused_pid_(void (*cleanup_fn)(void));
21 int tst_get_free_pids_(void (*cleanup_fn)(void));
34 static inline pid_t tst_get_unused_pid(void (*cleanup_fn)(void)) in tst_get_unused_pid() argument
36 return tst_get_unused_pid_(cleanup_fn); in tst_get_unused_pid()
39 static inline int tst_get_free_pids(void (*cleanup_fn)(void)) in tst_get_free_pids() argument
41 return tst_get_free_pids_(cleanup_fn); in tst_get_free_pids()
H A Dtst_cmd.h10 * return the program exit code, otherwise it will call cleanup_fn() if the
30 int tst_cmd_fds_(void (cleanup_fn)(void),
43 int tst_cmd_(void (cleanup_fn)(void),
68 static inline int tst_cmd_fds(void (cleanup_fn)(void), in tst_cmd_fds() argument
74 return tst_cmd_fds_(cleanup_fn, argv, in tst_cmd_fds()
78 static inline int tst_cmd(void (cleanup_fn)(void), in tst_cmd() argument
84 return tst_cmd_(cleanup_fn, argv, in tst_cmd()
H A Dsafe_file_ops_fn.h44 void (*cleanup_fn)(void),
49 void (*cleanup_fn)(void), int strict,
61 void (*cleanup_fn)(void),
66 void (*cleanup_fn)(void), const char *path, const char *fmt, ...)
73 void (*cleanup_fn)(void),
89 void (*cleanup_fn)(void),
H A Dsafe_net_fn.h28 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void),
56 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void),
60 int safe_listen(const char *file, const int lineno, void (cleanup_fn)(void),
63 int safe_accept(const char *file, const int lineno, void (cleanup_fn)(void),
66 int safe_connect(const char *file, const int lineno, void (cleanup_fn)(void),
70 void (cleanup_fn)(void), int sockfd, struct sockaddr *addr,
82 void (cleanup_fn)(void), unsigned short family, int type);
H A Dsafe_stdio_fn.h23 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),
/third_party/ltp/lib/
H A Dsafe_macros.c29 void (*cleanup_fn) (void), char *path) in safe_basename()
36 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_basename()
44 safe_chdir(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_chdir()
52 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir()
55 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_chdir()
63 safe_close(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_close()
71 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close()
74 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_close()
82 safe_creat(const char *file, const int lineno, void (*cleanup_fn) (void), in safe_creat()
90 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_creat()
385 safe_getresuid(const char *file, const int lineno, void (*cleanup_fn)(void), uid_t *ruid, uid_t *euid, uid_t *suid) safe_getresuid() argument
404 safe_getresgid(const char *file, const int lineno, void (*cleanup_fn)(void), gid_t *rgid, gid_t *egid, gid_t *sgid) safe_getresgid() argument
442 safe_link(const char *file, const int lineno, void (cleanup_fn)(void), const char *oldpath, const char *newpath) safe_link() argument
462 safe_linkat(const char *file, const int lineno, void (cleanup_fn)(void), int olddirfd, const char *oldpath, int newdirfd, const char *newpath, int flags) safe_linkat() argument
483 safe_readlink(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, char *buf, size_t bufsize) safe_readlink() argument
510 safe_symlink(const char *file, const int lineno, void (cleanup_fn)(void), const char *oldpath, const char *newpath) safe_symlink() argument
690 safe_chmod(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, mode_t mode) safe_chmod() argument
709 safe_fchmod(const char *file, const int lineno, void (cleanup_fn)(void), int fd, mode_t mode) safe_fchmod() argument
728 safe_chown(const char *file, const int lineno, void (cleanup_fn)(void), const char *path, uid_t owner, gid_t group) safe_chown() argument
747 safe_fchown(const char *file, const int lineno, void (cleanup_fn)(void), int fd, uid_t owner, gid_t group) safe_fchown() argument
766 safe_wait(const char *file, const int lineno, void (cleanup_fn)(void), int *status) safe_wait() argument
784 safe_waitpid(const char *file, const int lineno, void (cleanup_fn)(void), pid_t pid, int *status, int opts) safe_waitpid() argument
818 safe_kill(const char *file, const int lineno, void (cleanup_fn)(void), pid_t pid, int sig) safe_kill() argument
837 safe_mkfifo(const char *file, const int lineno, void (*cleanup_fn)(void), const char *pathname, mode_t mode) safe_mkfifo() argument
856 safe_rename(const char *file, const int lineno, void (*cleanup_fn)(void), const char *oldpath, const char *newpath) safe_rename() argument
895 safe_mount(const char *file, const int lineno, void (*cleanup_fn)(void), const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data) safe_mount() argument
956 safe_umount(const char *file, const int lineno, void (*cleanup_fn)(void), const char *target) safe_umount() argument
982 safe_opendir(const char *file, const int lineno, void (cleanup_fn)(void), const char *name) safe_opendir() argument
997 safe_closedir(const char *file, const int lineno, void (cleanup_fn)(void), DIR *dirp) safe_closedir() argument
1015 safe_readdir(const char *file, const int lineno, void (cleanup_fn)(void), DIR *dirp) safe_readdir() argument
[all...]
H A Dsafe_file_ops.c121 void (*cleanup_fn) (void), in safe_file_scanf()
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf()
143 tst_brkm_(file, lineno, TBROK, cleanup_fn, in safe_file_scanf()
149 tst_brkm_(file, lineno, TBROK, cleanup_fn, in safe_file_scanf()
156 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_file_scanf()
169 void (*cleanup_fn)(void), int strict, in file_lines_scanf()
179 tst_brkm_(file, lineno, TBROK, cleanup_fn, "pattern is NULL"); in file_lines_scanf()
185 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in file_lines_scanf()
203 tst_brkm_(file, lineno, TBROK, cleanup_fn, in file_lines_scanf()
254 void (*cleanup_fn)(voi in safe_file_vprintf()
168 file_lines_scanf(const char *file, const int lineno, void (*cleanup_fn)(void), int strict, const char *path, const char *fmt, ...) file_lines_scanf() argument
253 safe_file_vprintf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, va_list va) safe_file_vprintf() argument
280 safe_file_printf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, ...) safe_file_printf() argument
290 safe_try_file_printf(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *fmt, ...) safe_try_file_printf() argument
344 safe_touch(const char *file, const int lineno, void (*cleanup_fn)(void), const char *pathname, mode_t mode, const struct timespec times[2]) safe_touch() argument
[all...]
H A Dtst_pid.c42 pid_t tst_get_unused_pid_(void (*cleanup_fn) (void)) in tst_get_unused_pid_()
46 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &pid); in tst_get_unused_pid_()
73 void (*cleanup_fn) (void)) in read_session_pids_limit()
88 SAFE_FILE_SCANF(cleanup_fn, path, "%s", max_pid_value); in read_session_pids_limit()
90 SAFE_FILE_SCANF(cleanup_fn, PID_MAX_PATH, "%d", &max_pids); in read_session_pids_limit()
100 static int get_session_pids_limit(void (*cleanup_fn) (void)) in get_session_pids_limit()
105 max_pids = read_session_pids_limit(CGROUPS_V2_SLICE_FMT, uid, cleanup_fn); in get_session_pids_limit()
108 cleanup_fn); in get_session_pids_limit()
116 static int get_used_pids(void (*cleanup_fn) (void)) in get_used_pids()
128 if (!FILE_LINES_SCANF(cleanup_fn, status_pat in get_used_pids()
[all...]
H A Dsafe_stdio.c26 FILE *safe_fopen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fopen() argument
32 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fopen()
39 int safe_fclose(const char *file, const int lineno, void (cleanup_fn)(void), in safe_fclose() argument
47 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fclose()
50 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_fclose()
57 int safe_asprintf(const char *file, const int lineno, void (cleanup_fn)(void), in safe_asprintf() argument
68 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_asprintf()
71 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_asprintf()
78 FILE *safe_popen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_popen() argument
89 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_popen()
[all...]
H A Dtst_checkpoint.c39 void (*cleanup_fn)(void)) in tst_checkpoint_init()
45 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_checkpoint_init()
61 if (cleanup_fn && !tst_tmpdir_created()) { in tst_checkpoint_init()
62 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_checkpoint_init()
70 fd = SAFE_OPEN(cleanup_fn, "checkpoint_futex_base_file", in tst_checkpoint_init()
73 SAFE_FTRUNCATE(cleanup_fn, fd, page_size); in tst_checkpoint_init()
75 tst_futexes = SAFE_MMAP(cleanup_fn, NULL, page_size, in tst_checkpoint_init()
80 SAFE_CLOSE(cleanup_fn, fd); in tst_checkpoint_init()
140 void (*cleanup_fn)(void), unsigned int id, in tst_safe_checkpoint_wait()
151 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in tst_safe_checkpoint_wait()
38 tst_checkpoint_init(const char *file, const int lineno, void (*cleanup_fn)(void)) tst_checkpoint_init() argument
139 tst_safe_checkpoint_wait(const char *file, const int lineno, void (*cleanup_fn)(void), unsigned int id, unsigned int msec_timeout) tst_safe_checkpoint_wait() argument
157 tst_safe_checkpoint_wake(const char *file, const int lineno, void (*cleanup_fn)(void), unsigned int id, unsigned int nr_wake) tst_safe_checkpoint_wake() argument
[all...]
H A Dtst_module.c31 void tst_module_exists_(void (cleanup_fn)(void), in tst_module_exists_() argument
47 tst_brkm(TBROK | TERRNO, cleanup_fn, in tst_module_exists_()
59 tst_brkm(TBROK | TERRNO, cleanup_fn, in tst_module_exists_()
69 tst_brkm(TCONF, cleanup_fn, "Failed to find module '%s'", in tst_module_exists_()
80 void tst_module_load_(void (cleanup_fn)(void), in tst_module_load_() argument
84 tst_module_exists_(cleanup_fn, mod_name, &mod_path); in tst_module_load_()
100 tst_cmd(cleanup_fn, mod_argv, NULL, NULL, 0); in tst_module_load_()
104 void tst_module_unload_(void (cleanup_fn)(void), const char *mod_name) in tst_module_unload_() argument
121 tst_brkm(TBROK, cleanup_fn, in tst_module_unload_()
H A Dtst_mkfs.c25 void tst_mkfs_(const char *file, const int lineno, void (cleanup_fn)(void), in tst_mkfs_() argument
36 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
42 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
60 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
78 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
92 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
99 ret = tst_cmd(cleanup_fn, argv, "/dev/null", NULL, TST_CMD_PASS_RETVAL | in tst_mkfs_()
106 tst_brkm_(file, lineno, TCONF, cleanup_fn, in tst_mkfs_()
110 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_mkfs_()
H A Dsafe_net.c108 int safe_socket(const char *file, const int lineno, void (cleanup_fn)(void), in safe_socket() argument
128 tst_brkm_(file, lineno, ttype | TERRNO, cleanup_fn, in safe_socket()
131 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_socket()
325 int safe_bind(const char *file, const int lineno, void (cleanup_fn)(void), in safe_bind() argument
339 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_bind()
345 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_bind()
360 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_bind()
367 int safe_listen(const char *file, const int lineno, void (cleanup_fn)(void), in safe_listen() argument
378 tst_brkm_(file, lineno, res | TERRNO, cleanup_fn, in safe_listen()
381 tst_brkm_(file, lineno, TBROK | TERRNO, cleanup_fn, in safe_listen()
389 safe_accept(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, struct sockaddr *addr, socklen_t *addrlen) safe_accept() argument
408 safe_connect(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, const struct sockaddr *addr, socklen_t addrlen) safe_connect() argument
431 safe_getsockname(const char *file, const int lineno, void (cleanup_fn)(void), int sockfd, struct sockaddr *addr, socklen_t *addrlen) safe_getsockname() argument
492 tst_get_unused_port(const char *file, const int lineno, void (cleanup_fn)(void), unsigned short family, int type) tst_get_unused_port() argument
[all...]
H A Dtst_resource.c83 void (*cleanup_fn)(void), const char *path, in file_copy()
95 safe_cp(file, lineno, cleanup_fn, buf, dest); in file_copy()
101 void (*cleanup_fn)(void), in tst_resource_copy()
105 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_resource_copy()
118 if (file_copy(file, lineno, cleanup_fn, dataroot, filename, dest)) in tst_resource_copy()
126 if (file_copy(file, lineno, cleanup_fn, buf, filename, dest)) in tst_resource_copy()
132 if (file_copy(file, lineno, cleanup_fn, startwd, filename, dest)) in tst_resource_copy()
135 tst_brkm_(file, lineno, TBROK, cleanup_fn, in tst_resource_copy()
82 file_copy(const char *file, const int lineno, void (*cleanup_fn)(void), const char *path, const char *filename, const char *dest) file_copy() argument
100 tst_resource_copy(const char *file, const int lineno, void (*cleanup_fn)(void), const char *filename, const char *dest) tst_resource_copy() argument
H A Dtst_cmd.c47 int tst_cmd_fds_(void (cleanup_fn)(void), in tst_cmd_fds_() argument
56 tst_brkm(TBROK, cleanup_fn, in tst_cmd_fds_()
75 tst_brkm(TCONF, cleanup_fn, "Couldn't find '%s' in $PATH at %s:%d", argv[0], in tst_cmd_fds_()
83 tst_brkm(TBROK | TERRNO, cleanup_fn, "vfork failed at %s:%d", in tst_cmd_fds_()
105 tst_brkm(TBROK | TERRNO, cleanup_fn, "waitpid failed at %s:%d", in tst_cmd_fds_()
113 tst_brkm(TBROK, cleanup_fn, "failed to exec cmd '%s' at %s:%d", in tst_cmd_fds_()
121 tst_brkm(TBROK, cleanup_fn, in tst_cmd_fds_()
130 int tst_cmd_(void (cleanup_fn)(void), in tst_cmd_() argument
160 rc = tst_cmd_fds(cleanup_fn, argv, stdout_fd, stderr_fd, flags); in tst_cmd_()
H A Dtst_dir_is_empty.c28 int tst_dir_is_empty_(void (cleanup_fn)(void), const char *name, int verbose) in tst_dir_is_empty_() argument
31 DIR *dir = SAFE_OPENDIR(cleanup_fn, name); in tst_dir_is_empty_()
34 while ((entry = SAFE_READDIR(cleanup_fn, dir)) != NULL) { in tst_dir_is_empty_()
46 SAFE_CLOSEDIR(cleanup_fn, dir); in tst_dir_is_empty_()

Completed in 9 milliseconds

12