Home
last modified time | relevance | path

Searched refs:cleanup (Results 1 - 25 of 1786) sorted by relevance

12345678910>>...72

/third_party/ltp/testcases/kernel/syscalls/utils/
H A Dcompat_16.h46 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \
50 tst_brkm(TCONF, cleanup, \
55 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \
56 (void) cleanup; \
60 #define UID16_CHECK(uid, sys_name, cleanup) \
62 tst_brkm(TBROK, cleanup, \
67 #define GID16_CHECK(gid, sys_name, cleanup) \
69 tst_brkm(TBROK, cleanup, \
75 int SETGROUPS(void (cleanup)(void), size_t gidsetsize, GID_T *list) in SETGROUPS() argument
77 LTP_CREATE_SYSCALL(setgroups, cleanup, gidsetsiz in SETGROUPS()
80 GETGROUPS(void (cleanup)(void), size_t gidsetsize, GID_T *list) GETGROUPS() argument
85 SETUID(void (cleanup)(void), UID_T uid) SETUID() argument
90 GETUID(void (cleanup)(void)) GETUID() argument
95 SETGID(void (cleanup)(void), GID_T gid) SETGID() argument
100 GETGID(void (cleanup)(void)) GETGID() argument
105 GETEUID(void (cleanup)(void)) GETEUID() argument
110 GETEGID(void (cleanup)(void)) GETEGID() argument
115 SETFSUID(void (cleanup)(void), UID_T uid) SETFSUID() argument
120 SETFSGID(void (cleanup)(void), GID_T gid) SETFSGID() argument
125 SETREUID(void (cleanup)(void), UID_T ruid, UID_T euid) SETREUID() argument
129 SETREGID(void (cleanup)(void), GID_T rgid, GID_T egid) SETREGID() argument
134 SETRESUID(void (cleanup)(void), UID_T ruid, UID_T euid, UID_T suid) SETRESUID() argument
139 GETRESUID(void (cleanup)(void), UID_T *ruid, UID_T *euid, UID_T *suid) GETRESUID() argument
144 SETRESGID(void (cleanup)(void), GID_T rgid, GID_T egid, GID_T sgid) SETRESGID() argument
149 GETRESGID(void (cleanup)(void), GID_T *rgid, GID_T *egid, GID_T *sgid) GETRESGID() argument
154 FCHOWN(void (cleanup)(void), unsigned int fd, UID_T owner, GID_T group) FCHOWN() argument
159 LCHOWN(void (cleanup)(void), const char *path, UID_T owner, GID_T group) LCHOWN() argument
164 CHOWN(void (cleanup)(void), const char *path, UID_T owner, GID_T group) CHOWN() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen14.c38 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, SAFE_WRITE_ALL, 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, "foun in test01()
[all...]
H A Dopen12.c47 static void cleanup(void);
73 cleanup(); in main()
83 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
87 SAFE_MKDIR(cleanup, MNTPOINT, DIR_MODE); in setup()
89 if (tst_path_has_mnt_flags(cleanup, NULL, mount_flags)) { in setup()
93 device = tst_acquire_device(cleanup); in setup()
101 tst_mkfs(cleanup, device, fs_type, NULL, NULL); in setup()
103 SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_STRICTATIME, NULL); in setup()
108 SAFE_FILE_PRINTF(cleanup, TEST_FILE, TEST_FILE); in setup()
122 len1 = SAFE_LSEEK(cleanup, TEST_RETUR in test_append()
239 static void cleanup(void) cleanup() function
[all...]
H A Dopen07.c71 static void cleanup(void);
156 cleanup(); in main()
166 fd1 = SAFE_CREAT(cleanup, file1, 00700); in setupfunc_test1()
168 SAFE_SYMLINK(cleanup, file1, file2); in setupfunc_test1()
179 SAFE_MKDIR(cleanup, file1, 00700); in setupfunc_test2()
181 SAFE_SYMLINK(cleanup, file1, file2); in setupfunc_test2()
193 fd2 = SAFE_CREAT(cleanup, file1, 00700); in setupfunc_test3()
195 SAFE_SYMLINK(cleanup, file1, file2); in setupfunc_test3()
197 SAFE_SYMLINK(cleanup, file2, file3); in setupfunc_test3()
209 SAFE_MKDIR(cleanup, file in setupfunc_test4()
243 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/syscalls/openat/
H A Dopenat03.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, "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, SAFE_WRITE_ALL, 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, "foun in test01()
[all...]
H A Dopenat02.c62 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, SAFE_WRITE_ALL, 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()
159 tst_brkm(TBROK | TERRNO, cleanup, "for in testfunc_cloexec()
284 void cleanup(void) cleanup() function
[all...]
/third_party/node/test/parallel/
H A Dtest-tls-client-auth.js45 }, function(err, pair, cleanup) {
47 return cleanup();
61 }, function(err, pair, cleanup) {
63 return cleanup();
79 }, function(err, pair, cleanup) {
84 return cleanup();
99 }, function(err, pair, cleanup) {
109 cleanup();
128 }, function(err, pair, cleanup) {
130 return cleanup();
[all...]
/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl31.c42 static void cleanup(void);
95 cleanup(); in main()
103 tst_sig(FORK, DEF_HANDLER, cleanup); in setup()
108 SAFE_PIPE(cleanup, pipe_fds); in setup()
111 tst_brkm(TBROK | TERRNO, cleanup, "fcntl set O_ASYNC failed"); in setup()
119 tst_brkm(TBROK | TERRNO, cleanup, "setpgrp() failed"); in setup()
123 tst_brkm(TBROK | TERRNO, cleanup, "getpgid() failed"); in setup()
129 tst_brkm(TFAIL | TTERRNO, cleanup, in setup()
137 tst_brkm(TFAIL | TTERRNO, cleanup, in setup()
147 tst_brkm(TBROK | TERRNO, cleanup, "sigprocmas in setup()
360 static void cleanup(void) cleanup() function
[all...]
/third_party/elfutils/src/
H A Delfcompress.c307 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/rename/
H A 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_EMLIN in setup()
178 static void cleanup(void) cleanup() function
[all...]
/third_party/openssl/demos/signature/
H A DEVP_Signature_demo.c84 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/lib/
H A Dtst_fs_link_count.c43 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) (voi
[all...]
/third_party/ltp/testcases/kernel/syscalls/mprotect/
H A Dmprotect02.c47 static void cleanup(void);
74 fd = SAFE_OPEN(cleanup, file1, O_RDWR | O_CREAT, 0777); in main()
83 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, fd, buf, in main()
89 addr = SAFE_MMAP(cleanup, 0, sizeof(buf), PROT_READ, in main()
93 tst_brkm(TBROK | TERRNO, cleanup, "fork #1 failed"); in main()
100 SAFE_WAITPID(cleanup, pid, &status, 0); in main()
102 tst_brkm(TBROK, cleanup, "child exited abnormally " in main()
106 tst_brkm(TBROK, cleanup, in main()
112 tst_brkm(TBROK, cleanup, "got unexpected signal: %d", in main()
122 tst_brkm(TBROK | TERRNO, cleanup, in main()
172 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/mem/hugetlb/hugefallocate/
H A Dhugefallocate01.c49 goto cleanup; in run_test()
55 goto cleanup; in run_test()
66 goto cleanup; in run_test()
72 goto cleanup; in run_test()
83 goto cleanup; in run_test()
90 goto cleanup; in run_test()
101 goto cleanup; in run_test()
108 goto cleanup; in run_test()
122 goto cleanup; in run_test()
129 goto cleanup; in run_test()
154 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/syscalls/renameat/
H A Drenameat01.c105 static void cleanup(void);
126 cleanup(); in main()
138 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
143 device = tst_acquire_device(cleanup); in setup()
146 tst_brkm(TCONF, cleanup, "Failed to obtain block device"); in setup()
150 SAFE_TOUCH(cleanup, TESTFILE, FILEMODE, NULL); in setup()
152 SAFE_TOUCH(cleanup, TESTFILE2, FILEMODE, NULL); in setup()
158 SAFE_MKDIR(cleanup, TESTDIR, DIRMODE); in setup()
159 SAFE_TOUCH(cleanup, TESTFILE3, FILEMODE, NULL); in setup()
160 SAFE_MKDIR(cleanup, NEW_TESTDI in setup()
228 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/syscalls/linkat/
H A Dlinkat02.c57 static void cleanup(void);
100 cleanup(); in main()
143 tst_sig(NOFORK, DEF_HANDLER, cleanup); in setup()
148 device = tst_acquire_device(cleanup); in setup()
151 tst_brkm(TCONF, cleanup, "Failed to acquire device"); in setup()
155 ltpuser = SAFE_GETPWNAM(cleanup, "nobody"); in setup()
157 SAFE_TOUCH(cleanup, TEST_FILE, 0644, NULL); in setup()
161 SAFE_TOUCH(cleanup, TEST_EXIST, 0644, NULL); in setup()
163 SAFE_SYMLINK(cleanup, TEST_ELOOP, "test_file_eloop2"); in setup()
164 SAFE_SYMLINK(cleanup, "test_file_eloop in setup()
195 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/syscalls/mount/
H A Dmount02.c50 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, "mntpoin in mount_open()
206 static void cleanup(void) cleanup() function
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/cleanup/
H A Dcleanup_test.cc15 #include "absl/cleanup/cleanup.h"
97 auto cleanup = absl::MakeCleanup(std::move(callback)); in TYPED_TEST() local
100 IsSame<absl::Cleanup<Tag, decltype(callback)>, decltype(cleanup)>(), in TYPED_TEST()
105 auto cleanup = absl::MakeCleanup(&FnPtrFunction); in TYPED_TEST() local
107 static_assert(IsSame<absl::Cleanup<Tag, void (*)()>, decltype(cleanup)>(), in TYPED_TEST()
112 auto cleanup = absl::MakeCleanup(FnPtrFunction); in TYPED_TEST() local
114 static_assert(IsSame<absl::Cleanup<Tag, void (*)()>, decltype(cleanup)>(), in TYPED_TEST()
123 absl::Cleanup cleanup = std::move(callback); in TYPED_TEST() local
126 IsSame<absl::Cleanup<Tag, decltype(callback)>, decltype(cleanup)>(), in TYPED_TEST()
131 absl::Cleanup cleanup = &FnPtrFunction; TYPED_TEST() local
138 absl::Cleanup cleanup = FnPtrFunction; TYPED_TEST() local
195 auto cleanup = TYPED_TEST() local
207 auto cleanup = absl::MakeCleanup(TypeParam::AsCallback(&FnPtrFunction)); TYPED_TEST() local
218 auto cleanup = TYPED_TEST() local
233 auto cleanup = TYPED_TEST() local
277 auto cleanup = TYPED_TEST() local
287 auto cleanup = TYPED_TEST() local
300 auto cleanup = TYPED_TEST() local
[all...]
/third_party/ltp/testcases/kernel/syscalls/mknod/
H A Dmknod04.c103 void cleanup(); /* cleanup function for the test */
175 SAFE_CHDIR(cleanup, ".."); in main()
178 * Invoke cleanup() to delete the test directories created 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_TEM in setup()
287 void cleanup(void) cleanup() function
[all...]
H A Dmknod03.c103 void cleanup(); /* cleanup function for the test */
172 SAFE_CHDIR(cleanup, ".."); in main()
175 * Invoke cleanup() to delete the test directories created 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_TEM in setup()
282 void cleanup(void) cleanup() function
[all...]
/third_party/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramvalidate.c70 goto cleanup; in create_merged_key()
75 goto cleanup; in create_merged_key()
81 goto cleanup; in create_merged_key()
87 goto cleanup; in create_merged_key()
92 goto cleanup; in create_merged_key()
95 cleanup: in create_merged_key()
118 goto cleanup; in main()
126 goto cleanup; in main()
133 goto cleanup; in main()
139 goto cleanup; in main()
[all...]
/third_party/ltp/testcases/kernel/syscalls/lchown/
H A Dlchown02.c78 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_FILE in setup_eperm()
283 static void cleanup(void) cleanup() function
[all...]
/third_party/ltp/testcases/kernel/syscalls/symlinkat/
H A Dsymlinkat01.c55 static void cleanup();
153 cleanup(); in main()
163 SAFE_MKDIR(cleanup, TEST_DIR2, 0700); in setup_every_copy()
164 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup_every_copy()
178 fd = SAFE_OPEN(cleanup, desc->referencefn1, O_RDWR); in mysymlinkat_test()
179 SAFE_WRITE(cleanup, SAFE_WRITE_ALL, fd, &tnum, in mysymlinkat_test()
181 SAFE_CLOSE(cleanup, fd); in mysymlinkat_test()
183 fd = SAFE_OPEN(cleanup, desc->referencefn2, O_RDONLY); in mysymlinkat_test()
184 SAFE_READ(cleanup, 1, fd, &vnum, sizeof(vnum)); in mysymlinkat_test()
185 SAFE_CLOSE(cleanup, f in mysymlinkat_test()
231 static void cleanup(void) cleanup() function
[all...]
/third_party/ffmpeg/doc/examples/
H A Dtranscode_aac.c178 goto cleanup; in open_output_file()
184 goto cleanup; in open_output_file()
190 goto cleanup; in open_output_file()
197 goto cleanup; in open_output_file()
204 goto cleanup; in open_output_file()
227 goto cleanup; in open_output_file()
233 goto cleanup; in open_output_file()
241 cleanup: in open_output_file()
393 goto cleanup; in decode_audio_frame()
402 goto cleanup; in decode_audio_frame()
[all...]
/third_party/ltp/testcases/kernel/syscalls/renameat2/
H A Drenameat202.c51 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_DI in setup()
103 static void cleanup(void) cleanup() function
[all...]

Completed in 9 milliseconds

12345678910>>...72