/third_party/ltp/testcases/kernel/syscalls/utils/ |
D | compat_16.h | 46 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \ argument 50 tst_brkm(TCONF, cleanup, \ 55 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \ argument 56 (void) cleanup; \ 60 #define UID16_CHECK(uid, sys_name, cleanup) \ argument 62 tst_brkm(TBROK, cleanup, \ 67 #define GID16_CHECK(gid, sys_name, cleanup) \ argument 69 tst_brkm(TBROK, cleanup, \ 75 int SETGROUPS(void (cleanup)(void), size_t gidsetsize, GID_T *list) in SETGROUPS() 77 LTP_CREATE_SYSCALL(setgroups, cleanup, gidsetsize, list); in SETGROUPS() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/open/ |
D | open14.c | 38 static void cleanup(void) in cleanup() function 55 tst_brkm(TCONF, cleanup, "O_TMPFILE not supported"); in setup() 57 tst_brkm(TBROK | TERRNO, cleanup, "open() failed"); in setup() 60 SAFE_CLOSE(cleanup, fd); in setup() 68 SAFE_WRITE(cleanup, 1, fd, buf, size); in write_file() 77 fd = SAFE_OPEN(cleanup, ".", O_TMPFILE | O_RDWR, 0600); in test01() 82 SAFE_FSTAT(cleanup, fd, &st); in test01() 88 SAFE_CLOSE(cleanup, fd); in test01() 93 if (!tst_dir_is_empty(cleanup, ".", 1)) in test01() 94 tst_brkm(TFAIL, cleanup, "found a file, this is not expected"); in test01() [all …]
|
D | open12.c | 48 static void cleanup(void); 74 cleanup(); in main() 84 tst_sig(FORK, DEF_HANDLER, cleanup); in setup() 88 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup() 90 if (tst_path_has_mnt_flags(cleanup, NULL, mount_flags)) { in setup() 102 device = tst_acquire_device(cleanup); in setup() 110 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 112 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_STRICTATIME, NULL); in setup() 117 SAFE_FILE_PRINTF(cleanup, TEST_FILE, TEST_FILE); in setup() 131 len1 = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in test_append() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/openat/ |
D | openat03.c | 39 static void cleanup(void) in cleanup() function 56 tst_brkm(TCONF, cleanup, "O_TMPFILE not supported"); in setup() 58 tst_brkm(TBROK | TERRNO, cleanup, "openat() failed"); in setup() 61 SAFE_CLOSE(cleanup, fd); in setup() 71 tst_brkm(TBROK | TERRNO, cleanup, "openat() failed"); in openat_tmp() 79 SAFE_WRITE(cleanup, 1, fd, buf, size); in write_file() 93 SAFE_FSTAT(cleanup, fd, &st); in test01() 99 SAFE_CLOSE(cleanup, fd); in test01() 104 if (!tst_dir_is_empty(cleanup, ".", 1)) in test01() 105 tst_brkm(TFAIL, cleanup, "found a file, this is not expected"); in test01() [all …]
|
D | openat02.c | 62 static void cleanup(void); 99 cleanup(); in main() 107 tst_sig(FORK, DEF_HANDLER, cleanup); in setup() 111 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup() 113 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); in setup() 120 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append() 129 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append() 131 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append() 138 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append() 165 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); in testfunc_cloexec() [all …]
|
/third_party/node/test/parallel/ |
D | test-tls-client-auth.js | 45 }, function(err, pair, cleanup) { argument 47 return cleanup(); 61 }, function(err, pair, cleanup) { argument 63 return cleanup(); 79 }, function(err, pair, cleanup) { argument 83 return cleanup(); 98 }, function(err, pair, cleanup) { argument 108 cleanup(); 127 }, function(err, pair, cleanup) { argument 129 return cleanup(); [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mlock/ |
D | mlock02.c | 49 static void cleanup(void); 77 cleanup(); in main() 85 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 89 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); in setup() 93 SAFE_GETRLIMIT(cleanup, RLIMIT_MEMLOCK, &original); in setup() 116 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem1() 119 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, in test_enomem1() 122 SAFE_MUNMAP(cleanup, addr, len); in test_enomem1() 141 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); in test_enomem2() 143 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, in test_enomem2() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/rename/ |
D | rename11.c | 60 static void cleanup(void); 85 cleanup(); in main() 93 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 102 device = tst_acquire_device(cleanup); in setup() 105 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup() 107 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 109 SAFE_MKDIR(cleanup, MNTPOINT, 0755); in setup() 110 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in setup() 112 SAFE_TOUCH(cleanup, TEST_EROFS, 0644, NULL); in setup() 114 SAFE_MKDIR(cleanup, TEST_EMLINK, 0755); in setup() [all …]
|
/third_party/ltp/testcases/kernel/containers/userns/ |
D | userns06.c | 93 static void cleanup(void) in cleanup() function 103 TST_RESOURCE_COPY(cleanup, "userns06_capcheck", NULL); in setup() 128 tst_brkm(TBROK | TERRNO, cleanup, in main() 134 tst_brkm(TBROK | TERRNO, cleanup, in main() 139 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 140 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main() 141 SAFE_CLOSE(cleanup, fd); in main() 144 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 145 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main() 146 SAFE_CLOSE(cleanup, fd); in main() [all …]
|
D | userns03.c | 149 static void cleanup(void) in cleanup() function 181 tst_brkm(TBROK | TERRNO, cleanup, in main() 187 tst_brkm(TBROK | TERRNO, cleanup, in main() 192 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 193 SAFE_WRITE(cleanup, 1, fd, "deny", 4); in main() 194 SAFE_CLOSE(cleanup, fd); in main() 203 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); in main() 207 tst_brkm(TBROK | TERRNO, cleanup, in main() 210 tst_brkm(TBROK | TERRNO, cleanup, in main() 213 SAFE_CLOSE(cleanup, fd); in main() [all …]
|
/third_party/elfutils/src/ |
D | elfcompress.c | 307 goto cleanup; in process_file() 315 goto cleanup; in process_file() 326 goto cleanup; in process_file() 333 goto cleanup; in process_file() 340 goto cleanup; in process_file() 349 goto cleanup; in process_file() 357 goto cleanup; in process_file() 363 goto cleanup; in process_file() 372 goto cleanup; in process_file() 429 goto cleanup; in process_file() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/renameat/ |
D | renameat01.c | 105 static void cleanup(void); 126 cleanup(); in main() 144 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 149 device = tst_acquire_device(cleanup); in setup() 152 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup() 156 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup() 158 SAFE_TOUCH(cleanup, TESTFILE2, FILEMODE, NULL); in setup() 164 SAFE_MKDIR(cleanup, TESTDIR, DIRMODE); in setup() 165 SAFE_TOUCH(cleanup, TESTFILE3, FILEMODE, NULL); in setup() 166 SAFE_MKDIR(cleanup, NEW_TESTDIR, DIRMODE); in setup() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl31.c | 42 static void cleanup(void); 98 cleanup(); in main() 106 tst_sig(FORK, DEF_HANDLER, cleanup); in setup() 111 SAFE_PIPE(cleanup, pipe_fds); in setup() 114 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); in setup() 122 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); in setup() 126 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); in setup() 135 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 144 tst_brkm(TFAIL | TTERRNO, cleanup, in setup() 154 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask failed"); in setup() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mprotect/ |
D | mprotect02.c | 47 static void cleanup(void); 74 fd = SAFE_OPEN(cleanup, file1, O_RDWR | O_CREAT, 0777); in main() 83 SAFE_WRITE(cleanup, 1, fd, buf, bytes_to_write); in main() 88 addr = SAFE_MMAP(cleanup, 0, sizeof(buf), PROT_READ, in main() 92 tst_brkm(TBROK | TERRNO, cleanup, "fork #1 failed"); in main() 99 SAFE_WAITPID(cleanup, pid, &status, 0); in main() 101 tst_brkm(TBROK, cleanup, "child exited abnormally " in main() 105 tst_brkm(TBROK, cleanup, in main() 111 tst_brkm(TBROK, cleanup, "got unexpected signal: %d", in main() 121 tst_brkm(TBROK | TERRNO, cleanup, in main() [all …]
|
/third_party/ffmpeg/doc/examples/ |
D | transcode_aac.c | 171 goto cleanup; in open_output_file() 177 goto cleanup; in open_output_file() 183 goto cleanup; in open_output_file() 190 goto cleanup; in open_output_file() 197 goto cleanup; in open_output_file() 224 goto cleanup; in open_output_file() 230 goto cleanup; in open_output_file() 238 cleanup: in open_output_file() 391 goto cleanup; in decode_audio_frame() 400 goto cleanup; in decode_audio_frame() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap16.c | 43 static void cleanup(void); 89 cleanup(); in main() 99 SAFE_TOUCH(cleanup, "testfilep", 0644, NULL); in do_test() 100 SAFE_TOUCH(cleanup, "testfilec", 0644, NULL); in do_test() 105 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); in do_test() 109 parentfd = SAFE_OPEN(cleanup, "testfilep", O_RDWR); in do_test() 112 TST_SAFE_CHECKPOINT_WAIT(cleanup, 0); in do_test() 119 tst_brkm(TBROK | TERRNO, cleanup, in do_test() 124 SAFE_CLOSE(cleanup, parentfd); in do_test() 125 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); in do_test() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat02.c | 57 static void cleanup(void); 100 cleanup(); in main() 146 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 151 device = tst_acquire_device(cleanup); in setup() 154 tst_brkm(TCONF, cleanup, "Failed to acquire device"); in setup() 158 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); in setup() 160 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL); in setup() 164 SAFE_TOUCH(cleanup, TEST_EXIST, 0644, NULL); in setup() 166 SAFE_SYMLINK(cleanup, TEST_ELOOP, "test_file_eloop2"); in setup() 167 SAFE_SYMLINK(cleanup, "test_file_eloop2", TEST_ELOOP); in setup() [all …]
|
/third_party/openssl/demos/signature/ |
D | EVP_Signature_demo.c | 84 goto cleanup; in demo_sign() 93 goto cleanup; in demo_sign() 102 goto cleanup; in demo_sign() 110 goto cleanup; in demo_sign() 114 goto cleanup; in demo_sign() 119 goto cleanup; in demo_sign() 123 goto cleanup; in demo_sign() 128 goto cleanup; in demo_sign() 132 goto cleanup; in demo_sign() 141 cleanup: in demo_sign() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mount/ |
D | mount02.c | 50 static void cleanup(void); 82 void (*cleanup)(void); member 111 goto cleanup; in verify_mount() 118 goto cleanup; in verify_mount() 123 cleanup: in verify_mount() 124 if (tc->cleanup) in verify_mount() 125 tc->cleanup(); in verify_mount() 143 cleanup(); in main() 150 tst_brkm(TBROK | TERRNO, cleanup, "Failed to mount(mntpoint)"); in do_mount() 157 fd = SAFE_OPEN(cleanup, "mntpoint/file", O_CREAT | O_RDWR, S_IRWXU); in mount_open() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/umount2/ |
D | umount2_01.c | 34 static void cleanup(void); 63 cleanup(); in main() 76 device = tst_acquire_device(cleanup); in setup() 79 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup() 81 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup() 83 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup() 94 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, 0, NULL); in umount2_verify() 97 fd = SAFE_CREAT(cleanup, MNTPOINT "/file", FILE_MODE); in umount2_verify() 121 SAFE_WRITE(cleanup, 1, fd, str, strlen(str)); in umount2_verify() 123 SAFE_CLOSE(cleanup, fd); in umount2_verify() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/mknod/ |
D | mknod04.c | 103 void cleanup(); /* cleanup function for the test */ 175 SAFE_CHDIR(cleanup, ".."); in main() 181 cleanup(); in main() 203 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 212 tst_brkm(TBROK, cleanup, "chmod() failed"); in setup() 226 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); in setup() 239 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup() 240 SAFE_CHOWN(cleanup, DIR_TEMP, user1_uid, group2_gid); in setup() 241 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_SGID); in setup() 247 SAFE_STAT(cleanup, DIR_TEMP, &buf); in setup() [all …]
|
D | mknod03.c | 103 void cleanup(); /* cleanup function for the test */ 172 SAFE_CHDIR(cleanup, ".."); in main() 178 cleanup(); in main() 199 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup() 208 tst_brkm(TBROK, cleanup, "chmod() failed"); in setup() 221 tst_brkm(TBROK, cleanup, "%s not in /etc/passwd", LTPUSER); in setup() 234 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); in setup() 235 SAFE_CHOWN(cleanup, DIR_TEMP, user1_uid, group2_gid); in setup() 236 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_SGID); in setup() 242 SAFE_STAT(cleanup, DIR_TEMP, &buf); in setup() [all …]
|
/third_party/ltp/lib/ |
D | tst_fs_link_count.c | 43 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir) in tst_fs_fill_hardlinks_() 50 SAFE_MKDIR(cleanup, dir, 0744); in tst_fs_fill_hardlinks_() 52 SAFE_STAT(cleanup, dir, &s); in tst_fs_fill_hardlinks_() 54 tst_brkm(TBROK, cleanup, "%s is not directory", dir); in tst_fs_fill_hardlinks_() 59 SAFE_TOUCH(cleanup, base_filename, 0644, NULL); in tst_fs_fill_hardlinks_() 69 SAFE_STAT(cleanup, base_filename, &s); in tst_fs_fill_hardlinks_() 71 tst_brkm(TBROK, cleanup, "wrong number of " in tst_fs_fill_hardlinks_() 88 tst_brkm(TBROK, cleanup, "link(%s, %s) failed " in tst_fs_fill_hardlinks_() 100 SAFE_UNLINK(cleanup, link_filename); in tst_fs_fill_hardlinks_() 106 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir) in tst_fs_fill_subdirs_() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/renameat2/ |
D | renameat202.c | 51 static void cleanup(void); 75 cleanup(); in main() 88 fs_type = tst_fs_type(cleanup, "."); in setup() 90 SAFE_MKDIR(cleanup, TEST_DIR, 0700); in setup() 91 SAFE_MKDIR(cleanup, TEST_DIR2, 0700); in setup() 93 SAFE_TOUCH(cleanup, TEST_DIR TEST_FILE, 0600, NULL); in setup() 94 SAFE_TOUCH(cleanup, TEST_DIR2 TEST_FILE2, 0600, NULL); in setup() 96 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup() 97 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup() 99 SAFE_FILE_PRINTF(cleanup, TEST_DIR TEST_FILE, "%s", content); in setup() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/lchown/ |
D | lchown02.c | 78 static void cleanup(void); 118 UID16_CHECK(user_id, lchown, cleanup); in main() 120 GID16_CHECK(group_id, lchown, cleanup); in main() 134 TEST(LCHOWN(cleanup, file_name, user_id, group_id)); in main() 156 cleanup(); in main() 164 tst_sig(FORK, DEF_HANDLER, cleanup); in setup() 174 tst_brkm(TBROK, cleanup, "getpwnam failed"); in setup() 198 tst_brkm(TBROK | TERRNO, cleanup, "open failed"); in setup_eperm() 200 SAFE_CLOSE(cleanup, fd); in setup_eperm() 207 SAFE_SYMLINK(cleanup, TEST_FILE1, SFILE1); in setup_eperm() [all …]
|