Home
last modified time | relevance | path

Searched refs:cleanup (Results 1 – 25 of 3957) sorted by relevance

12345678910>>...159

/external/linux-kselftest/tools/testing/selftests/cgroup/
Dtest_memcontrol.c102 goto cleanup; in alloc_anon_50M_check()
105 goto cleanup; in alloc_anon_50M_check()
109 goto cleanup; in alloc_anon_50M_check()
112 goto cleanup; in alloc_anon_50M_check()
115 cleanup: in alloc_anon_50M_check()
132 goto cleanup; in alloc_pagecache_50M_check()
136 goto cleanup; in alloc_pagecache_50M_check()
140 goto cleanup; in alloc_pagecache_50M_check()
143 goto cleanup; in alloc_pagecache_50M_check()
147 cleanup: in alloc_pagecache_50M_check()
[all …]
Dtest_freezer.c201 goto cleanup; in test_cgfreezer_simple()
204 goto cleanup; in test_cgfreezer_simple()
210 goto cleanup; in test_cgfreezer_simple()
213 goto cleanup; in test_cgfreezer_simple()
216 goto cleanup; in test_cgfreezer_simple()
219 goto cleanup; in test_cgfreezer_simple()
223 cleanup: in test_cgfreezer_simple()
253 goto cleanup; in test_cgfreezer_tree()
257 goto cleanup; in test_cgfreezer_tree()
261 goto cleanup; in test_cgfreezer_tree()
[all …]
Dtest_core.c37 goto cleanup; in test_cgcore_populated()
40 goto cleanup; in test_cgcore_populated()
43 goto cleanup; in test_cgcore_populated()
46 goto cleanup; in test_cgcore_populated()
49 goto cleanup; in test_cgcore_populated()
52 goto cleanup; in test_cgcore_populated()
55 goto cleanup; in test_cgcore_populated()
58 goto cleanup; in test_cgcore_populated()
61 goto cleanup; in test_cgcore_populated()
64 goto cleanup; in test_cgcore_populated()
[all …]
/external/cldr/tools/java/.settings/
Dorg.eclipse.jdt.ui.prefs1 cleanup.add_default_serial_version_id=true
2 cleanup.add_generated_serial_version_id=false
3 cleanup.add_missing_annotations=true
4 cleanup.add_missing_deprecated_annotations=true
5 cleanup.add_missing_methods=false
6 cleanup.add_missing_nls_tags=false
7 cleanup.add_missing_override_annotations=true
8 cleanup.add_missing_override_annotations_interface_methods=true
9 cleanup.add_serial_version_id=false
10 cleanup.always_use_blocks=true
[all …]
/external/ltp/testcases/kernel/syscalls/utils/
Dcompat_16.h46 # 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 …]
/external/ltp/testcases/kernel/syscalls/open/
Dopen14.c39 static void cleanup(void) in cleanup() function
56 tst_brkm(TCONF, cleanup, "O_TMPFILE not supported"); in setup()
58 tst_brkm(TBROK | TERRNO, cleanup, "open() failed"); in setup()
61 SAFE_CLOSE(cleanup, fd); in setup()
69 SAFE_WRITE(cleanup, 1, fd, buf, size); in write_file()
78 fd = SAFE_OPEN(cleanup, ".", O_TMPFILE | O_RDWR, 0600); in test01()
83 SAFE_FSTAT(cleanup, fd, &st); in test01()
89 SAFE_CLOSE(cleanup, fd); in test01()
94 if (!tst_dir_is_empty(cleanup, ".", 1)) in test01()
95 tst_brkm(TFAIL, cleanup, "found a file, this is not expected"); in test01()
[all …]
Dopen12.c48 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 …]
/external/ltp/testcases/kernel/syscalls/openat/
Dopenat03.c40 static void cleanup(void) in cleanup() function
57 tst_brkm(TCONF, cleanup, "O_TMPFILE not supported"); in setup()
59 tst_brkm(TBROK | TERRNO, cleanup, "openat() failed"); in setup()
62 SAFE_CLOSE(cleanup, fd); in setup()
72 tst_brkm(TBROK | TERRNO, cleanup, "openat() failed"); in openat_tmp()
80 SAFE_WRITE(cleanup, 1, fd, buf, size); in write_file()
94 SAFE_FSTAT(cleanup, fd, &st); in test01()
100 SAFE_CLOSE(cleanup, fd); in test01()
105 if (!tst_dir_is_empty(cleanup, ".", 1)) in test01()
106 tst_brkm(TFAIL, cleanup, "found a file, this is not expected"); in test01()
[all …]
Dopenat02.c63 static void cleanup(void);
100 cleanup(); in main()
108 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
112 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in setup()
114 SAFE_SYMLINK(cleanup, TEST_FILE, SFILE); in setup()
121 SAFE_FILE_PRINTF(cleanup, TEST_FILE, "test file"); in testfunc_append()
130 SAFE_WRITE(cleanup, 1, TEST_RETURN, STR, sizeof(STR) - 1); in testfunc_append()
132 file_offset = SAFE_LSEEK(cleanup, TEST_RETURN, 0, SEEK_CUR); in testfunc_append()
139 SAFE_CLOSE(cleanup, TEST_RETURN); in testfunc_append()
166 tst_brkm(TBROK | TERRNO, cleanup, "fork() failed"); in testfunc_cloexec()
[all …]
/external/ltp/testcases/kernel/syscalls/getrusage/
Dgetrusage03.c66 static void cleanup(void);
90 cleanup(); in main()
100 SAFE_GETRUSAGE(cleanup, RUSAGE_SELF, &ru); in inherit_fork()
105 tst_brkm(TBROK | TERRNO, cleanup, "fork #1"); in inherit_fork()
108 SAFE_GETRUSAGE(cleanup, RUSAGE_SELF, &ru); in inherit_fork()
115 SAFE_WAITPID(cleanup, pid, &status, WUNTRACED | WCONTINUED); in inherit_fork()
126 SAFE_GETRUSAGE(cleanup, RUSAGE_CHILDREN, &ru); in inherit_fork2()
135 tst_brkm(TBROK | TERRNO, cleanup, "fork #2"); in inherit_fork2()
137 SAFE_GETRUSAGE(cleanup, RUSAGE_CHILDREN, &ru); in inherit_fork2()
144 SAFE_WAITPID(cleanup, pid, &status, WUNTRACED | WCONTINUED); in inherit_fork2()
[all …]
/external/selinux/libsemanage/src/
Ddirect_api.c670 goto cleanup; in semanage_direct_update_user_extra()
683 goto cleanup; in semanage_direct_update_user_extra()
687 goto cleanup; in semanage_direct_update_user_extra()
696 goto cleanup; in semanage_direct_update_user_extra()
700 goto cleanup; in semanage_direct_update_user_extra()
708 cleanup: in semanage_direct_update_user_extra()
725 goto cleanup; in semanage_direct_update_seuser()
738 goto cleanup; in semanage_direct_update_seuser()
742 goto cleanup; in semanage_direct_update_seuser()
751 goto cleanup; in semanage_direct_update_seuser()
[all …]
/external/llvm-project/clang/test/Sema/
Dattr-cleanup.c5 extern int g1 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to…
6 int g2 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to local …
7 static int g3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies to…
11 int v1 __attribute((cleanup)); // expected-error {{'cleanup' attribute takes one argument}} in t1()
12 … int v2 __attribute((cleanup(1, 2))); // expected-error {{'cleanup' attribute takes one argument}} in t1()
14 …static int v3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute only applies t… in t1()
16 int v4 __attribute((cleanup(h))); // expected-error {{use of undeclared identifier 'h'}} in t1()
18 int v5 __attribute((cleanup(c1))); in t1()
19 … int v6 __attribute((cleanup(v3))); // expected-error {{'cleanup' argument 'v3' is not a function}} in t1()
31 …int v1 __attribute__((cleanup(c2))); // expected-error {{'cleanup' function 'c2' must take 1 param… in t2()
[all …]
/external/llvm/test/CodeGen/PowerPC/
DBoolRetToIntTest.ll17 br i1 %cmp.4, label %cleanup, label %for.body.preheader
24 br i1 %cmp, label %cleanup.loopexit, label %for.body
31 br i1 %call, label %cleanup.loopexit, label %for.cond
33 cleanup.loopexit: ; preds = %for.body, %for.cond
35 %cleanup.dest.slot.0.ph = phi i1 [ true, %for.body ], [ false, %for.cond ]
36 br label %cleanup
38 cleanup: ; preds = %cleanup.loopexit, %entry
39 ; CHECK: = phi i32 [ 0, %entry ], [ [[PHI]], %cleanup.loopexit ]
40 %cleanup.dest.slot.0 = phi i1 [ false, %entry ], [ %cleanup.dest.slot.0.ph, %cleanup.loopexit ]
43 ret i1 %cleanup.dest.slot.0
[all …]
/external/llvm-project/llvm/test/CodeGen/PowerPC/
DBoolRetToIntTest.ll17 br i1 %cmp.4, label %cleanup, label %for.body.preheader
24 br i1 %cmp, label %cleanup.loopexit, label %for.body
31 br i1 %call, label %cleanup.loopexit, label %for.cond
33 cleanup.loopexit: ; preds = %for.body, %for.cond
35 %cleanup.dest.slot.0.ph = phi i1 [ true, %for.body ], [ false, %for.cond ]
36 br label %cleanup
38 cleanup: ; preds = %cleanup.loopexit, %entry
39 ; CHECK: = phi i64 [ 0, %entry ], [ [[PHI]], %cleanup.loopexit ]
40 %cleanup.dest.slot.0 = phi i1 [ false, %entry ], [ %cleanup.dest.slot.0.ph, %cleanup.loopexit ]
43 ret i1 %cleanup.dest.slot.0
[all …]
/external/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c49 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 …]
/external/ltp/testcases/kernel/syscalls/chown/
Dchown04.c94 static void cleanup(void);
107 UID16_CHECK((user_id = geteuid()), "chown", cleanup) in main()
108 GID16_CHECK((group_id = getegid()), "chown", cleanup) in main()
114 TEST(CHOWN(cleanup, tc[i].pathname, user_id, group_id)); in main()
132 cleanup(); in main()
142 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
148 device = tst_acquire_device(cleanup); in setup()
150 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
152 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
161 tst_brkm(TBROK | TERRNO, cleanup, "mmap failed"); in setup()
[all …]
/external/ltp/testcases/kernel/containers/userns/
Duserns06.c93 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 …]
/external/ltp/testcases/kernel/syscalls/rename/
Drename11.c60 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 …]
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile06.c55 static void cleanup(void);
74 in_fd = SAFE_OPEN(cleanup, IN_FILE, O_RDONLY); in do_sendfile()
78 tst_brkm(TBROK, cleanup, in do_sendfile()
89 SAFE_KILL(cleanup, child_pid, SIGKILL); in do_sendfile()
96 SAFE_KILL(cleanup, child_pid, SIGKILL); in do_sendfile()
103 SAFE_CLOSE(cleanup, in_fd); in do_sendfile()
104 SAFE_CLOSE(cleanup, out_fd); in do_sendfile()
105 SAFE_CLOSE(cleanup, sockfd); in do_sendfile()
132 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
138 fd = SAFE_CREAT(cleanup, IN_FILE, 0600); in setup()
[all …]
/external/tpm2-tss/src/tss2-esys/
Desys_crypto_bssl.c112 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hash_start()
117 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hash_start()
121 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Error EVP_MD_CTX_create", cleanup); in iesys_cryptbssl_hash_start()
127 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Errror EVP_DigestInit_ex", cleanup); in iesys_cryptbssl_hash_start()
134 cleanup: in iesys_cryptbssl_hash_start()
306 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hmac_start()
311 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptbssl_hmac_start()
316 "Error HMAC_CTX_new", cleanup); in iesys_cryptbssl_hmac_start()
322 "HMAC_Init_ex", cleanup); in iesys_cryptbssl_hmac_start()
331 cleanup: in iesys_cryptbssl_hmac_start()
[all …]
Desys_crypto_ossl.c104 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptossl_hash_start()
109 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptossl_hash_start()
113 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Error EVP_MD_CTX_create", cleanup); in iesys_cryptossl_hash_start()
119 goto_error(r, TSS2_ESYS_RC_GENERAL_FAILURE, "Errror EVP_DigestInit_ex", cleanup); in iesys_cryptossl_hash_start()
126 cleanup: in iesys_cryptossl_hash_start()
299 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptossl_hmac_start()
304 "Unsupported hash algorithm (%"PRIu16")", cleanup, hashAlg); in iesys_cryptossl_hmac_start()
309 "Error EVP_MD_CTX_create", cleanup); in iesys_cryptossl_hmac_start()
314 "EVP_PKEY_new_mac_key", cleanup); in iesys_cryptossl_hmac_start()
320 "DigestSignInit", cleanup); in iesys_cryptossl_hmac_start()
[all …]
/external/clang/test/Sema/
Dattr-cleanup.c5 extern int g1 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
6 int g2 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
7 static int g3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}}
11 int v1 __attribute((cleanup)); // expected-error {{'cleanup' attribute takes one argument}} in t1()
12 … int v2 __attribute((cleanup(1, 2))); // expected-error {{'cleanup' attribute takes one argument}} in t1()
14 static int v3 __attribute((cleanup(c1))); // expected-warning {{'cleanup' attribute ignored}} in t1()
16 int v4 __attribute((cleanup(h))); // expected-error {{use of undeclared identifier 'h'}} in t1()
18 int v5 __attribute((cleanup(c1))); in t1()
19 … int v6 __attribute((cleanup(v3))); // expected-error {{'cleanup' argument 'v3' is not a function}} in t1()
31 …int v1 __attribute__((cleanup(c2))); // expected-error {{'cleanup' function 'c2' must take 1 param… in t2()
[all …]
/external/ltp/testcases/kernel/syscalls/fchown/
Dfchown04.c72 static void cleanup(void);
91 cleanup(); in main()
107 device = tst_acquire_device(cleanup); in setup()
110 tst_brkm(TCONF, cleanup, "Failed to acquire device"); in setup()
112 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
114 fd1 = SAFE_OPEN(cleanup, "tfile_1", O_RDWR | O_CREAT, 0666); in setup()
116 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
117 SAFE_MKDIR(cleanup, "mntpoint", DIR_MODE); in setup()
118 SAFE_MOUNT(cleanup, device, "mntpoint", fs_type, 0, NULL); in setup()
120 SAFE_TOUCH(cleanup, "mntpoint/tfile_3", 0644, NULL); in setup()
[all …]
/external/ltp/testcases/kernel/syscalls/mprotect/
Dmprotect02.c47 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 …]
/external/ltp/testcases/kernel/syscalls/renameat/
Drenameat01.c106 static void cleanup(void);
127 cleanup(); in main()
145 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
150 device = tst_acquire_device(cleanup); in setup()
153 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
157 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup()
159 SAFE_TOUCH(cleanup, TESTFILE2, FILEMODE, NULL); in setup()
165 SAFE_MKDIR(cleanup, TESTDIR, DIRMODE); in setup()
166 SAFE_TOUCH(cleanup, TESTFILE3, FILEMODE, NULL); in setup()
167 SAFE_MKDIR(cleanup, NEW_TESTDIR, DIRMODE); in setup()
[all …]

12345678910>>...159