/external/llvm/test/Other/ |
2009-03-31-CallGraph.ll | 11 cleanup 21 cleanup
|
/external/ltp/lib/ |
tst_fs_link_count.c | 43 int tst_fs_fill_hardlinks_(void (*cleanup) (void), const char *dir) 50 SAFE_MKDIR(cleanup, dir, 0744); 52 SAFE_STAT(cleanup, dir, &s); 54 tst_brkm(TBROK, cleanup, "%s is not directory", dir); 59 SAFE_TOUCH(cleanup, base_filename, 0644, NULL); 69 SAFE_STAT(cleanup, base_filename, &s); 71 tst_brkm(TBROK, cleanup, "wrong number of " 88 tst_brkm(TBROK, cleanup, "link(%s, %s) failed " 100 SAFE_UNLINK(cleanup, link_filename); 106 int tst_fs_fill_subdirs_(void (*cleanup) (void), const char *dir [all...] |
/external/ltp/testcases/kernel/controllers/io-throttle/ |
README | 26 For ex. the setup and cleanup functions which do the setup for running the 27 test and do the cleanup once the test finishes. The setup() function creates 30 cleanup function does a complete cleanup of the system. 32 Most of the error scenarios have been taken care of for a sane cleanup of the 33 system. However if cleanup fails in any case, just manually execute the 34 commands written in cleanup function in myfunctions.sh. 35 One of the most common causes of failed cleanup is that you have done cd into
|
/external/ltp/testcases/kernel/controllers/memctl/ |
README | 22 the setup and cleanup functions which do the setup for running the test and do 23 the cleanup once the test finishes. The setup() function creates /dev/memctl 25 creates a number(n) of groups in /dev/memctl. The cleanup function does a 26 complete cleanup of the system. 28 Most of the error scenarios have been taken care of for a sane cleanup of the 29 system. However if cleanup fails in any case, just manually execute the 30 commands written in cleanup function in myfunctions.sh. 31 One of the most common causes of failed cleanup is that you have done cd into
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
dup204.c | 56 void cleanup(); 87 SAFE_FSTAT(cleanup, fd[i], &oldbuf); 88 SAFE_FSTAT(cleanup, nfd[i], &newbuf); 97 SAFE_CLOSE(cleanup, TEST_RETURN); 101 cleanup(); 109 tst_sig(FORK, DEF_HANDLER, cleanup); 115 SAFE_PIPE(cleanup, fd); 118 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/execve/ |
execve04.c | 47 static void cleanup(void); 67 tst_brkm(TBROK, cleanup, "fork failed"); 71 tst_brkm(TBROK, cleanup, "self_exec failed"); 77 TST_SAFE_CHECKPOINT_WAIT(cleanup, 0); 86 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); 87 SAFE_WAIT(cleanup, NULL); 90 cleanup(); 110 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fchown/ |
fchown01.c | 47 static void cleanup(void); 66 UID16_CHECK(geteuid(), "fchown", cleanup) 67 GID16_CHECK(getegid(), "fchown", cleanup) 69 TEST(FCHOWN(cleanup, fd, geteuid(), getegid())); 80 cleanup(); 86 tst_sig(FORK, DEF_HANDLER, cleanup); 91 fd = SAFE_OPEN(cleanup, "tempfile", O_RDWR | O_CREAT, 0700); 94 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl22.c | 50 void cleanup(void); 87 tst_brkm(TBROK|TERRNO, cleanup, "Fork failed"); 90 tst_record_childstatus(cleanup, child_pid); 95 cleanup(); 101 tst_sig(FORK, DEF_HANDLER, cleanup); 108 tst_brkm(TBROK, cleanup, 119 tst_brkm(TBROK | TERRNO, cleanup, "fcntl() failed"); 122 void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/inotify/ |
inotify03.c | 62 static void cleanup(void); 100 tst_brkm(TBROK, cleanup, 108 tst_brkm(TBROK, cleanup, "umount(2) Failed " 116 tst_brkm(TBROK | TERRNO, cleanup, 162 cleanup(); 172 tst_sig(NOFORK, DEF_HANDLER, cleanup); 180 device = tst_acquire_device(cleanup); 182 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 184 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 186 SAFE_MKDIR(cleanup, mntpoint, DIR_MODE) 228 static void cleanup(void) function [all...] |
inotify05.c | 53 static void cleanup(void); 77 fd = SAFE_OPEN(cleanup, fname, O_RDWR); 80 SAFE_LSEEK(cleanup, fd, 0, SEEK_SET); 81 SAFE_READ(cleanup, 1, fd, buf, BUF_SIZE); 82 SAFE_LSEEK(cleanup, fd, 0, SEEK_SET); 83 SAFE_WRITE(cleanup, 1, fd, buf, BUF_SIZE); 86 SAFE_CLOSE(cleanup, fd); 95 tst_brkm(TBROK | TERRNO, cleanup, 152 cleanup(); 158 tst_sig(NOFORK, DEF_HANDLER, cleanup); 191 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/link/ |
link02.c | 50 static void cleanup(void); 65 SAFE_STAT(cleanup, OLDPATH, &fbuf); 66 SAFE_STAT(cleanup, NEWPATH, &lbuf); 76 SAFE_UNLINK(cleanup, NEWPATH); 97 cleanup(); 103 tst_sig(NOFORK, DEF_HANDLER, cleanup); 109 SAFE_TOUCH(cleanup, OLDPATH, 0700, NULL); 112 static void cleanup(void) function
|
link06.c | 46 static void cleanup(void); 83 cleanup(); 91 tst_sig(NOFORK, DEF_HANDLER, cleanup); 100 SAFE_CHMOD(cleanup, ".", MODE_TO); 102 SAFE_TOUCH(cleanup, OLDPATH, 0777, NULL); 103 nobody_pwd = SAFE_GETPWNAM(cleanup, "nobody"); 104 SAFE_SETEUID(cleanup, nobody_pwd->pw_uid); 107 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/setgid/ |
setgid02.c | 42 static void cleanup(void); 57 tst_brkm(TBROK, cleanup, "getpwnam failed for user id " 61 GID16_CHECK(rootpwent->pw_gid, setgid, cleanup); 63 TEST(SETGID(cleanup, rootpwent->pw_gid)); 78 cleanup(); 89 tst_brkm(TBROK, cleanup, "getpwnam failed for user id %s", 104 tst_sig(NOFORK, DEF_HANDLER, cleanup); 109 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/statvfs/ |
statvfs02.c | 44 static void cleanup(void); 75 cleanup(); 81 tst_sig(NOFORK, DEF_HANDLER, cleanup); 87 SAFE_SYMLINK(cleanup, TEST_SYMLINK, "statfs_symlink_2"); 88 SAFE_SYMLINK(cleanup, "statfs_symlink_2", TEST_SYMLINK); 92 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL); 94 test_cases[0].path = SAFE_MMAP(cleanup, NULL, 1, PROT_NONE, 116 static void cleanup(void) function
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/ |
1-1.c | 10 * Shall remove the routine at the top of the calling thread's cancelation cleanup stack and 15 * 2. The thread will push a cleanup handler routine, then call pthread_cleanup_pop, setting 16 * 'execution' to a non-zero value (meaning the cleanup handler should be executed) 17 * 3. Verify that the cleanup handler was called. 36 /* Cleanup handler */ 53 * the cleanup handler was called */ 79 /* Check to verify that the cleanup handler was called */ 81 printf("Test FAILED: Cleanup handler was not called\n");
|
1-2.c | 10 * Shall remove the routine at the top of the calling thread's cancelation cleanup stack and 15 * 2. The thread will push a cleanup handler routine, then call pthread_cleanup_pop, setting 16 * 'execution' to a zero value (meaning the cleanup handler shouldn't be executed) 17 * 3. Verify that the cleanup handler was not called. 36 /* Cleanup handler */ 53 * the cleanup handler was called */ 79 /* Check to verify that the cleanup handler was called */ 81 printf("Test FAILED: Cleanup was incorrectly called\n");
|
/external/clang/lib/CodeGen/ |
CGCleanup.cpp | 13 // A "cleanup" is a piece of code which needs to be executed whenever 152 EHCleanupScope *cleanup = dyn_cast<EHCleanupScope>(&*it); local 153 if (!cleanup || !cleanup->isLifetimeMarker()) 163 if (auto *cleanup = dyn_cast<EHCleanupScope>(&*find(si))) 164 if (cleanup->isLifetimeMarker()) { 165 si = cleanup->getEnclosingEHScope(); 178 EHCleanupScope &cleanup = cast<EHCleanupScope>(*find(si)); local 179 if (cleanup.isActive()) return si; 180 si = cleanup.getEnclosingNormalCleanup() 298 EHCleanupScope &cleanup = cast<EHCleanupScope>(*EHStack.begin()); local [all...] |
/external/ltp/testcases/kernel/syscalls/rmdir/ |
rmdir03.c | 46 * Cleanup: 81 void cleanup(); 131 tst_brkm(TBROK, cleanup, 135 SAFE_MKDIR(cleanup, tstdir1, PERMS); 138 tst_brkm(TBROK, cleanup, "failed to stat directory %s " 145 tst_brkm(TBROK, cleanup, 150 SAFE_MKDIR(cleanup, tstdir2, PERMS); 153 tst_brkm(TBROK, cleanup, "fork() failed"); 159 tst_brkm(TBROK, cleanup, "self_exec failed"); 169 SAFE_MKDIR(cleanup, tstdir3, 0700) 326 void cleanup(void) function [all...] |
/hardware/qcom/wlan/qcwcn/wifi_hal/ |
wifihal_vendor.cpp | 135 goto cleanup; 145 goto cleanup; 155 goto cleanup; 165 goto cleanup; 175 goto cleanup; 185 goto cleanup; 195 goto cleanup; 205 goto cleanup; 234 cleanup: 265 goto cleanup; [all...] |
nan.cpp | 88 goto cleanup; 93 goto cleanup; 98 goto cleanup; 105 cleanup: 130 goto cleanup; 135 goto cleanup; 140 goto cleanup; 147 cleanup: 173 goto cleanup; 178 goto cleanup; 1127 void NanCommand::cleanup() function in class:NanCommand [all...] |
/external/ltp/testcases/kernel/module/delete_module/ |
delete_module02.c | 60 static void cleanup(void); 69 void (*cleanup) (void); member in struct:test_case_t 113 if (tdat[i].cleanup) 114 tdat[i].cleanup(); 118 cleanup(); 124 SAFE_SETEUID(cleanup, ltpuser->pw_uid); 129 SAFE_SETEUID(cleanup, 0); 134 tst_sig(NOFORK, DEF_HANDLER, cleanup); 138 ltpuser = SAFE_GETPWNAM(cleanup, nobody_uid); 149 tdat[2].modname = SAFE_MMAP(cleanup, 0, 1, PROT_NONE 153 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/cma/ |
process_vm_readv02.c | 45 static void cleanup(void); 58 SAFE_PIPE(cleanup, pipe_fd); 65 tst_brkm(TBROK | TERRNO, cleanup, "fork #0"); 74 tst_brkm(TBROK | TERRNO, cleanup, "fork #1"); 81 SAFE_WAITPID(cleanup, pids[1], &status, 0); 86 TST_SAFE_CHECKPOINT_WAKE(cleanup, 0); 88 SAFE_WAITPID(cleanup, pids[0], &status, 0); 93 cleanup(); 114 TST_SAFE_CHECKPOINT_WAIT(cleanup, 0); 156 TST_CHECKPOINT_INIT(cleanup); 161 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/epoll_pwait/ |
epoll_pwait01.c | 54 static void cleanup(void); 71 cleanup(); 82 tst_sig(FORK, DEF_HANDLER, cleanup); 104 tst_brkm(TBROK | TERRNO, cleanup, 112 tst_brkm(TBROK | TERRNO, cleanup, 159 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); 171 tst_record_childstatus(cleanup, cpid); 177 tst_brkm(TBROK | TERRNO, cleanup, 181 SAFE_KILL(cleanup, getppid(), SIGUSR1); 183 cleanup(); 187 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/fchdir/ |
fchdir01.c | 40 * call cleanup 66 void cleanup(void); 93 tst_brkm(TBROK, cleanup, "getcwd failed"); 100 tst_brkm(TBROK, cleanup, "mkdir failed"); 103 tst_brkm(TBROK, cleanup, "open of directory failed"); 108 tst_brkm(TFAIL | TTERRNO, cleanup, 136 cleanup(); 146 tst_brkm(TBROK, cleanup, "getcwd failed"); 150 tst_brkm(TBROK, cleanup, "basename failed"); 161 tst_sig(NOFORK, DEF_HANDLER, cleanup); 168 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/fstat/ |
fstat03.c | 28 * Cleanup: 71 void cleanup(); /* cleanup function for the test */ 113 * Invoke cleanup() to delete the test directory/file(s) created 116 cleanup(); 132 tst_sig(NOFORK, DEF_HANDLER, cleanup); 140 fildes = SAFE_OPEN(cleanup, TEST_FILE, O_RDWR | O_CREAT, 0666); 142 SAFE_CLOSE(cleanup, fildes); 147 * cleanup() - Performs all ONE TIME cleanup for this test a 155 void cleanup(void) function [all...] |