/external/e2fsprogs/lib/ext2fs/ |
symlink.c | 48 goto cleanup; 56 goto cleanup; 68 goto cleanup; 78 goto cleanup; 101 goto cleanup; 111 goto cleanup; 135 goto cleanup; 141 goto cleanup; 145 goto cleanup; 156 goto cleanup; [all...] |
/external/ltp/testcases/kernel/containers/mountns/ |
mountns01.c | 82 tst_brkm(TBROK | TERRNO, cleanup, "unshare failed"); 84 SAFE_MOUNT(cleanup, "none", "/", "none", MS_REC|MS_PRIVATE, NULL); 87 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); 90 SAFE_MOUNT(cleanup, "none", DIRA, "none", MS_SHARED, NULL); 93 tst_brkm(TBROK | TERRNO, cleanup, "clone failed"); 97 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL); 99 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0); 101 SAFE_UMOUNT(cleanup, DIRA); 103 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0); 110 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0) [all...] |
mountns02.c | 82 tst_brkm(TBROK | TERRNO, cleanup, "unshare failed"); 84 SAFE_MOUNT(cleanup, "none", "/", "none", MS_REC|MS_PRIVATE, NULL); 87 SAFE_MOUNT(cleanup, DIRA, DIRA, "none", MS_BIND, NULL); 90 SAFE_MOUNT(cleanup, "none", DIRA, "none", MS_PRIVATE, NULL); 93 tst_brkm(TBROK | TERRNO, cleanup, "clone failed"); 97 SAFE_MOUNT(cleanup, DIRB, DIRA, "none", MS_BIND, NULL); 99 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0); 101 SAFE_UMOUNT(cleanup, DIRA); 103 TST_SAFE_CHECKPOINT_WAKE_AND_WAIT(cleanup, 0); 110 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0) [all...] |
mountns_helper.h | 44 static void cleanup(void) function 57 SAFE_MKDIR(cleanup, DIRA, 0777); 58 SAFE_MKDIR(cleanup, DIRB, 0777); 59 SAFE_TOUCH(cleanup, DIRA"/A", 0, NULL); 60 SAFE_TOUCH(cleanup, DIRB"/B", 0, NULL);
|
/external/ltp/testcases/kernel/syscalls/getrusage/ |
getrusage03_child.c | 59 static void cleanup(void); 77 consume_nr = SAFE_STRTOL(cleanup, 84 grand_consume_nr = SAFE_STRTOL(cleanup, 91 tst_brkm(TBROK, cleanup, "fork"); 100 tst_brkm(TBROK | TERRNO, cleanup, 105 SAFE_GETRUSAGE(cleanup, RUSAGE_SELF, &ru); 107 SAFE_GETRUSAGE(cleanup, RUSAGE_CHILDREN, &ru); 112 self_nr = SAFE_STRTOL(cleanup, 123 child_nr = SAFE_STRTOL(cleanup, 136 cleanup(); 166 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/rename/ |
rename04.c | 41 * Cleanup: 70 void cleanup(); 126 * cleanup and exit 128 cleanup(); 139 tst_sig(NOFORK, DEF_HANDLER, cleanup); 151 SAFE_MKDIR(cleanup, fdir, 00770); 153 SAFE_STAT(cleanup, fdir, &buf1); 160 SAFE_MKDIR(cleanup, mdir, 00770); 162 SAFE_TOUCH(cleanup, tstfile, 0700, NULL); 164 SAFE_STAT(cleanup, mdir, &buf2) 175 void cleanup(void) function [all...] |
rename05.c | 39 * Cleanup: 68 void cleanup(); 118 * cleanup and exit 120 cleanup(); 131 tst_sig(NOFORK, DEF_HANDLER, cleanup); 142 SAFE_TOUCH(cleanup, fname, 0700, NULL); 143 SAFE_STAT(cleanup, fname, &buf1); 151 tst_brkm(TBROK, cleanup, "tmp directory %s found!", mdir); 154 SAFE_MKDIR(cleanup, mdir, 00770); 156 SAFE_STAT(cleanup, mdir, &buf2) 167 void cleanup(void) function [all...] |
rename06.c | 40 * Cleanup: 69 void cleanup(); 118 cleanup(); 129 tst_sig(NOFORK, DEF_HANDLER, cleanup); 141 tst_brkm(TBROK, cleanup, "tmp directory %s found!", fdir); 143 SAFE_MKDIR(cleanup, fdir, 00770); 144 SAFE_STAT(cleanup, fdir, &buf1); 151 tst_brkm(TBROK, cleanup, "tmp directory %s found!", mdir); 153 SAFE_MKDIR(cleanup, mdir, 00770); 155 SAFE_STAT(cleanup, mdir, &buf2) 166 void cleanup(void) function [all...] |
/hardware/intel/common/libmix/mix_video/test/src/ |
test_framemanager.c | 73 goto cleanup; 80 goto cleanup; 86 goto cleanup; 93 goto cleanup; 99 goto cleanup; 116 goto cleanup; 121 goto cleanup; 129 goto cleanup; 135 goto cleanup; 140 goto cleanup; [all...] |
/external/llvm/test/CodeGen/WinEH/ |
wineh-statenumbering-cleanups.ll | 18 to label %exit unwind label %cleanup.pad 19 cleanup.pad: 20 %cleanup = cleanuppad within none [] 23 cleanupret from %cleanup unwind label %catch.pad 25 cleanupret from %cleanup unwind label %catch.pad 44 to label %exit unwind label %cleanup.pad 45 cleanup.pad: 46 ; CHECK: cleanup.pad: 48 %cleanup = cleanuppad within none []
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl29.c | 42 static void cleanup(void); 59 tst_brkm(TFAIL | TTERRNO, cleanup, "fcntl " 66 SAFE_CLOSE(cleanup, dup_fd); 67 tst_brkm(TFAIL | TTERRNO, cleanup, "fcntl " 79 SAFE_CLOSE(cleanup, dup_fd); 82 cleanup(); 93 tst_sig(NOFORK, DEF_HANDLER, cleanup); 99 test_fd = SAFE_CREAT(cleanup, "testfile", 0644); 102 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/mlock/ |
mlock04.c | 53 static void cleanup(void); 66 tst_brkm(TBROK | TERRNO, cleanup, "mmap"); 69 tst_brkm(TBROK | TERRNO, cleanup, "mlock"); 74 tst_brkm(TBROK | TERRNO, cleanup, "munlock"); 76 SAFE_MUNMAP(cleanup, buf, file_len); 81 cleanup(); 90 fd = SAFE_OPEN(cleanup, testfile, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR); 92 SAFE_FTRUNCATE(cleanup, fd, file_len); 97 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/mount/ |
mount05.c | 38 static void cleanup(void); 86 tst_brkm(TBROK | TTERRNO, cleanup, 91 cleanup(); 99 tst_sig(NOFORK, DEF_HANDLER, cleanup); 103 SAFE_MKDIR(cleanup, mntpoint_src, DIR_MODE); 104 SAFE_MKDIR(cleanup, mntpoint_des, DIR_MODE); 109 SAFE_MOUNT(cleanup, device, mntpoint_src, fstype, 0, NULL); 112 SAFE_FILE_PRINTF(cleanup, file_src, "TEST FILE"); 117 void cleanup(void) function
|
mount02.c | 50 static void cleanup(void); 82 void (*cleanup)(void); member in struct:test_case 111 goto cleanup; 118 goto cleanup; 123 cleanup: 124 if (tc->cleanup) 125 tc->cleanup(); 143 cleanup(); 150 tst_brkm(TBROK | TERRNO, cleanup, "Failed to mount(mntpoint)"); 157 fd = SAFE_OPEN(cleanup, "mntpoint/file", O_CREAT | O_RDWR, S_IRWXU) 206 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/readv/ |
readv01.c | 55 static void cleanup(void); 69 SAFE_LSEEK(cleanup, fd, 0, SEEK_SET); 98 cleanup(); 104 tst_sig(NOFORK, DEF_HANDLER, cleanup); 112 fd = SAFE_OPEN(cleanup, "data_file", O_WRONLY | O_CREAT, 0666); 113 SAFE_WRITE(cleanup, 1, fd, buf, sizeof(buf)); 114 SAFE_CLOSE(cleanup, fd); 115 fd = SAFE_OPEN(cleanup, "data_file", O_RDONLY); 118 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/setgid/ |
setgid03.c | 39 static void cleanup(void); 52 TEST(SETGID(cleanup, ltpuser1pwent->pw_gid)); 67 cleanup(); 75 tst_sig(NOFORK, DEF_HANDLER, cleanup); 80 tst_brkm(TBROK, cleanup, "getpwnam failed for " 87 tst_brkm(TBROK, cleanup, "real group id is not root"); 91 tst_brkm(TBROK, cleanup, "getpwnam failed for user " 95 GID16_CHECK(ltpuser1pwent->pw_gid, setgid, cleanup); 98 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/setresuid/ |
setresuid05.c | 39 static void cleanup(void); 55 cleanup(); 63 tst_sig(NOFORK, DEF_HANDLER, cleanup); 69 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 71 UID16_CHECK(ltpuser->pw_uid, "setresuid", cleanup) 78 TEST(SETRESUID(cleanup, -1, ltpuser->pw_uid, -1)); 85 SAFE_TOUCH(cleanup, "test_file", 0644, NULL); 87 SAFE_STAT(cleanup, "test_file", &buf); 98 static void cleanup(void) function
|
/external/ltp/lib/newlib_tests/ |
test06.c | 20 * Test that child process does not trigger cleanup. 30 static void cleanup(void) function 32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 52 .cleanup = cleanup,
|
/external/ltp/lib/tests/ |
tst_device.c | 31 static void cleanup(void) function 43 dev = tst_acquire_device(cleanup); 45 tst_brkm(TCONF, cleanup, "Failed to acquire test device"); 49 tst_mkfs(cleanup, dev, "ext2", NULL, NULL); 51 cleanup();
|
/external/ltp/testcases/kernel/containers/userns/ |
userns_helper.h | 44 int parentmappid, void (*cleanup)(void)) 55 tst_brkm(TBROK, cleanup, "invalid type parameter"); 58 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644); 59 SAFE_WRITE(cleanup, 1, fd, content, strlen(content)); 60 SAFE_CLOSE(cleanup, fd);
|
/external/ltp/testcases/kernel/syscalls/acct/ |
acct01.c | 59 static void cleanup(void); 101 cleanup(); 127 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 129 fd = SAFE_CREAT(cleanup, TEST_FILE5, 0777); 130 SAFE_CLOSE(cleanup, fd); 133 tst_brkm(TBROK | TERRNO, cleanup, "acct failed unexpectedly"); 137 tst_brkm(TBROK | TERRNO, cleanup, "acct(NULL) failed"); 140 SAFE_SYMLINK(cleanup, TEST_FILE6, "test_file_eloop2"); 141 SAFE_SYMLINK(cleanup, "test_file_eloop2", TEST_FILE6); 148 device = tst_acquire_device(cleanup); 202 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/linkat/ |
linkat02.c | 58 static void cleanup(void); 101 cleanup(); 147 tst_sig(NOFORK, DEF_HANDLER, cleanup); 152 device = tst_acquire_device(cleanup); 155 tst_brkm(TCONF, cleanup, "Failed to acquire device"); 159 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 161 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL); 165 SAFE_TOUCH(cleanup, TEST_EXIST, 0644, NULL); 167 SAFE_SYMLINK(cleanup, TEST_ELOOP, "test_file_eloop2"); 168 SAFE_SYMLINK(cleanup, "test_file_eloop2", TEST_ELOOP) 199 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/mmap/ |
mmap16.c | 43 static void cleanup(void); 89 cleanup(); 99 SAFE_TOUCH(cleanup, "testfilep", 0644, NULL); 100 SAFE_TOUCH(cleanup, "testfilec", 0644, NULL); 105 tst_brkm(TBROK | TERRNO, cleanup, "fork failed"); 109 parentfd = SAFE_OPEN(cleanup, "testfilep", O_RDWR); 112 TST_SAFE_CHECKPOINT_WAIT(cleanup, 0); 119 tst_brkm(TBROK | TERRNO, cleanup, 124 SAFE_CLOSE(cleanup, parentfd); 125 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0) 233 static void cleanup(void) function [all...] |
/external/selinux/libsemanage/src/ |
direct_api.c | 651 goto cleanup; 664 goto cleanup; 668 goto cleanup; 677 goto cleanup; 681 goto cleanup; 689 cleanup: 706 goto cleanup; 719 goto cleanup; 723 goto cleanup; 732 goto cleanup; [all...] |
/external/ltp/include/ |
tst_fs.h | 57 int tst_fs_has_free_(void (*cleanup)(void), const char *path, 65 * if (tst_fs_type(cleanup, ".") == TST_NFS_MAGIC) { 66 * tst_brkm(TCONF, cleanup, 74 * swtich ((type = tst_fs_type(cleanup, "."))) { 78 * tst_brkm(TCONF, cleanup, "Test not supported on %s filesystem", 83 long tst_fs_type_(void (*cleanup)(void), const char *path); 106 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir); 125 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir); 131 int tst_dir_is_empty_(void (*cleanup)(void), const char *name, int verbose); 186 static inline long tst_fs_type(void (*cleanup)(void), const char *path [all...] |