/external/ltp/testcases/kernel/syscalls/llseek/ |
llseek03.c | 50 static void cleanup(void); 77 cleanup(); 86 tst_sig(NOFORK, DEF_HANDLER, cleanup); 92 fd = SAFE_CREAT(cleanup, TEST_FILE, 0644); 95 SAFE_WRITE(cleanup, 1, fd, STR, sizeof(STR) - 1); 97 SAFE_FSTAT(cleanup, fd, &stat_buf); 99 SAFE_CLOSE(cleanup, fd); 110 fd = SAFE_OPEN(cleanup, TEST_FILE, O_RDONLY); 113 SAFE_READ(cleanup, 1, fd, read_buf, 4); 130 SAFE_READ(cleanup, 1, fd, read_buf, 3) 175 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/swapon/ |
swapon02.c | 41 static void cleanup(void); 58 void (*cleanup)(void); member in struct:test_case_t 74 if (test->cleanup) 75 test->cleanup(); 108 cleanup(); 114 SAFE_SETEUID(cleanup, nobody_uid); 119 SAFE_SETEUID(cleanup, 0); 126 tst_sig(FORK, DEF_HANDLER, cleanup); 130 nobody = SAFE_GETPWNAM(cleanup, "nobody"); 135 switch ((fs_type = tst_fs_type(cleanup, "."))) 158 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/utimes/ |
utimes01.c | 88 static void cleanup(void); 109 cleanup(); 120 tst_sig(NOFORK, DEF_HANDLER, cleanup); 127 device = tst_acquire_device(cleanup); 130 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 132 SAFE_TOUCH(cleanup, TESTFILE1, FILE_MODE, NULL); 133 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER1); 134 SAFE_CHOWN(cleanup, TESTFILE1, ltpuser->pw_uid, 137 SAFE_TOUCH(cleanup, TESTFILE2, FILE_MODE, NULL); 138 ltpuser = SAFE_GETPWNAM(cleanup, LTPUSER2) 185 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/device-drivers/pci/tpci_user/ |
tpci.c | 44 static void cleanup(void) function 59 tst_sig(FORK, DEF_HANDLER, cleanup); 70 SAFE_FILE_PRINTF(cleanup, dev_tcase, "%d", i); 71 SAFE_FILE_SCANF(cleanup, dev_result, "%d", &res); 80 tst_module_load(cleanup, module_name, NULL); 89 fd = SAFE_OPEN(cleanup, dev_busslot, O_WRONLY); 94 SAFE_CLOSE(cleanup, fd); 97 tst_brkm(TBROK | TERRNO, cleanup, 100 SAFE_CLOSE(cleanup, fd); 114 cleanup(); [all...] |
/external/ltp/testcases/kernel/syscalls/fcntl/ |
fcntl30.c | 42 static void cleanup(void); 58 SAFE_PIPE(cleanup, pipe_fds); 63 tst_brkm(TFAIL | TTERRNO, cleanup, 71 tst_brkm(TFAIL | TTERRNO, cleanup, 77 tst_brkm(TFAIL | TTERRNO, cleanup, 89 SAFE_CLOSE(cleanup, pipe_fds[0]); 90 SAFE_CLOSE(cleanup, pipe_fds[1]); 93 cleanup(); 104 tst_sig(NOFORK, DEF_HANDLER, cleanup); 109 static void cleanup(void function [all...] |
fcntl31.c | 43 static void cleanup(void); 99 cleanup(); 107 tst_sig(FORK, DEF_HANDLER, cleanup); 112 SAFE_PIPE(cleanup, pipe_fds); 115 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); 121 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); 124 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); 133 tst_brkm(TFAIL | TTERRNO, cleanup, 142 tst_brkm(TFAIL | TTERRNO, cleanup, 152 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmask failed") 380 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/link/ |
link07.c | 49 static void cleanup(void); 83 cleanup(); 91 tst_sig(NOFORK, DEF_HANDLER, cleanup); 100 SAFE_CHMOD(cleanup, ".", MODE_TO); 102 SAFE_MKDIR(cleanup, DIR_TEMP, MODE_RWX); 103 SAFE_TOUCH(cleanup, TEST_FILE2, 0666, NULL); 106 SAFE_CHMOD(cleanup, DIR_TEMP, MODE_TE); 108 nobody_pwd = SAFE_GETPWNAM(cleanup, "nobody"); 109 SAFE_SETEUID(cleanup, nobody_pwd->pw_uid); 112 static void cleanup(void function [all...] |
link08.c | 61 static void cleanup(void); 96 cleanup(); 127 tst_sig(NOFORK, DEF_HANDLER, cleanup); 134 device = tst_acquire_device(cleanup); 137 tst_brkm(TCONF, cleanup, "Failed to acquire device"); 139 SAFE_MKDIR(cleanup, TEST_FILE1, DIR_MODE); 141 SAFE_MKDIR(cleanup, "test_eloop", DIR_MODE); 142 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop"); 146 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 147 SAFE_MKDIR(cleanup, MNT_POINT, DIR_MODE) 156 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/setegid/ |
setegid01.c | 39 static void cleanup(void); 56 cleanup(); 66 tst_sig(NOFORK, DEF_HANDLER, cleanup); 70 nobody = SAFE_GETPWNAM(cleanup, "nobody"); 80 SAFE_GETRESGID(cleanup, &orig_rgid, &orig_egid, &orig_sgid); 85 SAFE_SETEGID(cleanup, nobody_gid); 87 SAFE_GETRESGID(cleanup, &cur_rgid, &cur_egid, &cur_sgid); 110 SAFE_SETEGID(cleanup, orig_egid); 112 SAFE_GETRESGID(cleanup, &cur_rgid, &cur_egid, &orig_sgid); 122 static void cleanup(void function [all...] |
/external/ltp/testcases/kernel/syscalls/swapoff/ |
swapoff01.c | 30 static void cleanup(void); 51 cleanup(); 59 tst_brkm(TCONF, cleanup, 81 tst_sig(FORK, DEF_HANDLER, cleanup); 89 switch ((fs_type = tst_fs_type(cleanup, "."))) { 92 tst_brkm(TCONF, cleanup, 99 tst_brkm(TBROK, cleanup, 104 tst_brkm(TBROK, cleanup, "Failed to create file for swap"); 107 tst_brkm(TBROK, cleanup, "Failed to make swapfile"); 110 static void cleanup(void function [all...] |
swapoff02.c | 38 static void cleanup(void); 53 void (*cleanup)(void); member in struct:test_case_t 79 if (testcase[i].cleanup) 80 testcase[i].cleanup(); 101 tst_brkm(TBROK, cleanup, 110 cleanup(); 116 SAFE_SETEUID(cleanup, nobody_uid); 122 SAFE_SETEUID(cleanup, 0); 130 tst_sig(FORK, DEF_HANDLER, cleanup); 141 switch ((type = tst_fs_type(cleanup, "."))) 159 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile06.c | 55 static void cleanup(void); 74 in_fd = SAFE_OPEN(cleanup, IN_FILE, O_RDONLY); 78 tst_brkm(TBROK, cleanup, 89 SAFE_KILL(cleanup, child_pid, SIGKILL); 96 SAFE_KILL(cleanup, child_pid, SIGKILL); 103 SAFE_CLOSE(cleanup, in_fd); 104 SAFE_CLOSE(cleanup, out_fd); 105 SAFE_CLOSE(cleanup, sockfd); 132 tst_sig(FORK, DEF_HANDLER, cleanup); 138 fd = SAFE_CREAT(cleanup, IN_FILE, 0600) 147 static void cleanup(void) function [all...] |
/external/e2fsprogs/lib/ext2fs/ |
mkdir.c | 64 goto cleanup; 77 goto cleanup; 89 goto cleanup; 97 goto cleanup; 126 goto cleanup; 133 goto cleanup; 138 goto cleanup; 142 goto cleanup; 155 goto cleanup; 158 goto cleanup; [all...] |
/external/ltp/testcases/kernel/syscalls/fchown/ |
fchown03.c | 58 static void cleanup(void); 75 GID16_CHECK((group_id = getegid()), "fchown", cleanup) 77 TEST(FCHOWN(cleanup, fildes, -1, group_id)); 85 SAFE_FSTAT(cleanup, fildes, &stat_buf); 105 cleanup(); 111 tst_sig(FORK, DEF_HANDLER, cleanup); 115 ltpuser = SAFE_GETPWNAM(cleanup, nobody_uid); 122 fildes = SAFE_OPEN(cleanup, TESTFILE, O_RDWR | O_CREAT, FILE_MODE); 124 SAFE_SETEUID(cleanup, 0); 126 SAFE_FCHOWN(cleanup, fildes, -1, 0) 133 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/lchown/ |
lchown03.c | 65 static void cleanup(void); 82 cleanup(); 93 tst_sig(NOFORK, DEF_HANDLER, cleanup); 100 device = tst_acquire_device(cleanup); 103 tst_brkm(TCONF, cleanup, "Failed to acquire device"); 105 SAFE_MKDIR(cleanup, "test_eloop", DIR_MODE); 106 SAFE_SYMLINK(cleanup, "../test_eloop", "test_eloop/test_eloop"); 110 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 111 SAFE_MKDIR(cleanup, TEST_EROFS, DIR_MODE); 112 SAFE_MOUNT(cleanup, device, TEST_EROFS, fs_type, MS_RDONLY, NULL) 139 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/mount/ |
mount06.c | 48 static void cleanup(void); 72 SAFE_MOUNT(cleanup, device, mntpoint_src, fs_type, 0, NULL); 87 tst_brkm(TBROK | TTERRNO, cleanup, 92 cleanup(); 120 tst_sig(NOFORK, DEF_HANDLER, cleanup); 125 device = tst_acquire_device(cleanup); 128 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 130 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 133 tst_brkm(TBROK, cleanup, "getcwd failed"); 139 SAFE_MOUNT(cleanup, path_name, path_name, "none", MS_BIND, NULL) 154 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/pwrite/ |
pwrite02.c | 51 static void cleanup(void); 86 cleanup(); 114 tst_sig(NOFORK, DEF_HANDLER, cleanup); 119 tst_brkm(TBROK, cleanup, "signal() failed"); 149 SAFE_PIPE(cleanup, pipe_fds); 155 SAFE_CLOSE(cleanup, pipe_fds[0]); 156 SAFE_CLOSE(cleanup, pipe_fds[1]); 163 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDWR | O_CREAT, 0666); 170 SAFE_CLOSE(cleanup, fd); 186 fd = SAFE_OPEN(cleanup, TEMPFILE, O_RDONLY | O_CREAT, 0666) 211 static void cleanup(void) function [all...] |
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/ |
3-1.c | 9 * When the cancelation is acted on, the cancelation cleanup handlers for 15 * 2. In the thread function, push a cleanup function onto the stack 17 * 4. The cleanup function should be automatically 40 /* Made global so that the cleanup function 46 /* A cleanup function that sets the cleanup_flag to 1, meaning that the 47 * cleanup function was reached. 58 * the cleanup function onto it's stack, then go into a continuous 'while' 59 * loop, never reaching the cleanup_pop function. So the only way the cleanup 60 * function can be called is when the thread is canceled and all the cleanup 100 /* Initializing the cleanup flag. * [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Library/PlatformVarCleanupLib/ |
VfrStrings.uni | 2 // String definitions for platform variable cleanup.
20 #string STR_ENTRY_TITLE #language en-US "Platform Variable Cleanup Form"
21 #language fr-FR "fr-FR: Platform Variable Cleanup Form"
22 #string STR_TITLE #language en-US "Platform Variable Cleanup"
23 #language fr-FR "fr-FR: Platform Variable Cleanup"
24 #string STR_TITLE_HELP #language en-US "Select and cleanup variables"
25 #language fr-FR "fr-FR: Select and cleanup variables"
|
/external/ltp/testcases/kernel/syscalls/geteuid/ |
geteuid02.c | 30 static void cleanup(void); 45 TEST(GETEUID(cleanup)); 48 tst_brkm(TBROK | TTERRNO, cleanup, "geteuid* failed"); 56 UID16_CHECK(pwent->pw_uid, geteuid, cleanup); 67 cleanup(); 73 tst_sig(NOFORK, DEF_HANDLER, cleanup); 77 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/getuid/ |
getuid03.c | 37 static void cleanup(void); 53 TEST(GETUID(cleanup)); 56 tst_brkm(TBROK | TTERRNO, cleanup, "getuid failed"); 64 UID16_CHECK(pwent->pw_uid, getuid, cleanup); 75 cleanup(); 81 tst_sig(NOFORK, DEF_HANDLER, cleanup); 86 static void cleanup(void) function
|
/external/ltp/testcases/kernel/syscalls/chmod/ |
chmod06.c | 88 void (*cleanup)(void); member in struct:test_case_t 107 static void cleanup(void); 128 if (tc[i].cleanup) 129 tc[i].cleanup(); 149 cleanup(); 155 SAFE_SETEUID(cleanup, 0); 160 SAFE_SETEUID(cleanup, nobody_uid); 168 tst_sig(FORK, DEF_HANDLER, cleanup); 184 device = tst_acquire_device(cleanup); 187 tst_brkm(TCONF, cleanup, "Failed to obtain block device") 215 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/chown/ |
chown04.c | 94 static void cleanup(void); 107 UID16_CHECK((user_id = geteuid()), "chown", cleanup) 108 GID16_CHECK((group_id = getegid()), "chown", cleanup) 114 TEST(CHOWN(cleanup, tc[i].pathname, user_id, group_id)); 132 cleanup(); 142 tst_sig(FORK, DEF_HANDLER, cleanup); 148 device = tst_acquire_device(cleanup); 150 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); 152 tst_mkfs(cleanup, device, fs_type, NULL, NULL); 161 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed") 181 void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/mlock/ |
mlock02.c | 49 static void cleanup(void); 77 cleanup(); 85 tst_sig(NOFORK, DEF_HANDLER, cleanup); 89 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); 93 SAFE_GETRLIMIT(cleanup, RLIMIT_MEMLOCK, &original); 116 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); 119 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ, 122 SAFE_MUNMAP(cleanup, addr, len); 141 SAFE_SETRLIMIT(cleanup, RLIMIT_MEMLOCK, &rl); 143 addr = SAFE_MMAP(cleanup, NULL, len, PROT_READ 204 static void cleanup(void) function [all...] |
/external/ltp/testcases/kernel/syscalls/getrusage/ |
getrusage03.c | 66 static void cleanup(void); 90 cleanup(); 100 SAFE_GETRUSAGE(cleanup, RUSAGE_SELF, &ru); 105 tst_brkm(TBROK | TERRNO, cleanup, "fork #1"); 108 SAFE_GETRUSAGE(cleanup, RUSAGE_SELF, &ru); 115 SAFE_WAITPID(cleanup, pid, &status, WUNTRACED | WCONTINUED); 126 SAFE_GETRUSAGE(cleanup, RUSAGE_CHILDREN, &ru); 135 tst_brkm(TBROK | TERRNO, cleanup, "fork #2"); 137 SAFE_GETRUSAGE(cleanup, RUSAGE_CHILDREN, &ru); 144 SAFE_WAITPID(cleanup, pid, &status, WUNTRACED | WCONTINUED) 351 static void cleanup(void) function [all...] |