Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 25 of 68) sorted by relevance

123

/external/ltp/testcases/kernel/controllers/freezer/
Dlibltp30 local out_fd=1
50 out_fd=2
62 out_fd=2
65 out_fd=2
71 out_fd=2
77 echo "${TCID} ${TST_COUNT}/${TST_TOTAL}: $tag $msg" 1>&$out_fd
/external/toybox/toys/lsb/
Dgzip.c69 static int do_deflate(int in_fd, int out_fd, int dd, int level)
77 if (out_fd == 1) out_fd = xdup(out_fd);
79 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen");
83 if (len != writeall(out_fd, toybuf, len)) break;
103 static int do_deflate(int in_fd, int out_fd, int dd, int level)
107 if (dd) WOULD_EXIT(x, gunzip_fd(in_fd, out_fd));
108 else WOULD_EXIT(x, gzip_fd(in_fd, out_fd));
/external/ltp/testcases/kernel/syscalls/sendfile/
Dsendfile08.c47 static int out_fd; variable
65 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in main()
70 ret = SAFE_LSEEK(cleanup, out_fd, 0, SEEK_SET); in main()
71 ret = read(out_fd, buf, BUFSIZ); in main()
110 out_fd = SAFE_OPEN(cleanup, out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); in setup()
112 ret = write(out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup()
119 close(out_fd); in cleanup()
Dsendfile07.c65 int in_fd, out_fd = 0, ignored_fd = 0; variable
89 TEST(sendfile(out_fd, in_fd, NULL, 1)); in main()
149 out_fd = p[1]; in setup()
150 if (fcntl(out_fd, F_SETFL, O_WRONLY | O_NONBLOCK) < 0) { in setup()
156 r = write(out_fd, buf, 1); in setup()
185 if (out_fd) in cleanup()
186 close(out_fd); in cleanup()
Dsendfile09.c66 static int out_fd; variable
92 out_fd = SAFE_OPEN(cleanup, out_file, O_WRONLY); in do_sendfile()
96 TEST(sendfile(out_fd, in_fd, &t->offset, t->count)); in do_sendfile()
123 close(out_fd); in do_sendfile()
163 if (out_fd > 0) in cleanup()
164 close(out_fd); in cleanup()
Dsendfile03.c64 int in_fd, out_fd; variable
74 int out_fd; member
107 TEST(sendfile(testcases[i].out_fd, testcases[i].in_fd, in main()
158 if ((out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777)) < 0) { in setup()
173 close(out_fd); in cleanup()
Dsendfile06.c68 int in_fd, out_fd; in do_sendfile() local
72 out_fd = create_server(); in do_sendfile()
76 TEST(sendfile(out_fd, in_fd, NULL, sb.st_size)); in do_sendfile()
84 shutdown(out_fd, SHUT_RDWR); in do_sendfile()
104 SAFE_CLOSE(cleanup, out_fd); in do_sendfile()
Dsendfile05.c65 int out_fd; variable
87 out_fd = create_server(); in do_sendfile()
95 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); in do_sendfile()
167 close(out_fd); in cleanup()
Dsendfile04.c70 int out_fd; variable
113 out_fd = create_server(); in do_sendfile()
125 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); in do_sendfile()
202 close(out_fd); in cleanup()
Dsendfile02.c71 int out_fd; variable
106 out_fd = create_server(); in do_sendfile()
118 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); in do_sendfile()
205 close(out_fd); in cleanup()
/external/virglrenderer/vtest/
Dvtest_fuzzer.c89 static void vtest_fuzzer_run_renderer(int out_fd, struct vtest_input *input, in vtest_fuzzer_run_renderer() argument
110 ret = vtest_create_context(input, out_fd, header[0], &context); in vtest_fuzzer_run_renderer()
155 int out_fd = open("/dev/null", O_WRONLY); in LLVMFuzzerTestOneInput() local
164 vtest_fuzzer_run_renderer(out_fd, &input, in LLVMFuzzerTestOneInput()
171 close(out_fd); in LLVMFuzzerTestOneInput()
Dvtest_server.c60 int out_fd; member
287 static int vtest_server_add_client(int in_fd, int out_fd) in vtest_server_add_client() argument
296 client->out_fd = out_fd; in vtest_server_add_client()
309 int out_fd; in vtest_server_open_read_file() local
317 out_fd = open("/dev/null", O_WRONLY); in vtest_server_open_read_file()
318 if (out_fd == -1) { in vtest_server_open_read_file()
323 if (vtest_server_add_client(in_fd, out_fd)) { in vtest_server_open_read_file()
526 if (client->out_fd >= 0 && client->out_fd != client->in_fd) { in vtest_server_tidy_clients()
527 close(client->out_fd); in vtest_server_tidy_clients()
630 ret = vtest_create_context(&client->input, client->out_fd, in vtest_client_dispatch_commands()
Dvtest_renderer.c62 int out_fd; member
301 int out_fd) in vtest_new_context() argument
326 ctx->out_fd = out_fd; in vtest_new_context()
347 int vtest_create_context(struct vtest_input *input, int out_fd, in vtest_create_context() argument
358 ctx = vtest_new_context(input, out_fd); in vtest_create_context()
442 ret = vtest_block_write(ctx->out_fd, hdr_buf, sizeof(hdr_buf)); in vtest_ping_protocol_version()
488 ret = vtest_block_write(ctx->out_fd, hdr_buf, sizeof(hdr_buf)); in vtest_protocol_version()
493 ret = vtest_block_write(ctx->out_fd, version_buf, sizeof(version_buf)); in vtest_protocol_version()
526 ret = vtest_block_write(ctx->out_fd, resp_buf, sizeof(resp_buf)); in vtest_get_param()
559 return vtest_block_write(ctx->out_fd, resp_buf, sizeof(resp_buf)); in vtest_get_capset()
[all …]
/external/arm-trusted-firmware/tools/marvell/doimage/
Ddoimage.c806 int format_sec_ext(char *filename, FILE *out_fd) in format_sec_ext() argument
966 written = fwrite(&header, sizeof(ext_header_t), 1, out_fd); in format_sec_ext()
973 written = fwrite(&sec_ext, sizeof(sec_entry_t), 1, out_fd); in format_sec_ext()
1365 int format_bin_ext(char *filename, FILE *out_fd) in format_bin_ext() argument
1396 written = fwrite(&header, sizeof(ext_header_t), 1, out_fd); in format_bin_ext()
1405 fputc(c, out_fd); in format_bin_ext()
1409 fputc(0, out_fd); in format_bin_ext()
1425 FILE *out_fd; in format_extensions() local
1428 out_fd = fopen(ext_filename, "wb"); in format_extensions()
1429 if (out_fd == NULL) { in format_extensions()
[all …]
/external/libbrillo/brillo/dbus/
Ddbus_method_invoker_test.cc213 base::ScopedFD out_fd = EchoFD(fd_stdin); in TEST_F() local
214 EXPECT_NE(fd_stdin, out_fd.get()); in TEST_F()
215 EXPECT_TRUE(out_fd.is_valid()); in TEST_F()
217 out_fd = EchoFD(fd_stdout); in TEST_F()
218 EXPECT_NE(fd_stdout, out_fd.get()); in TEST_F()
219 EXPECT_TRUE(out_fd.is_valid()); in TEST_F()
221 out_fd = EchoFD(fd_stderr); in TEST_F()
222 EXPECT_NE(fd_stderr, out_fd.get()); in TEST_F()
223 EXPECT_TRUE(out_fd.is_valid()); in TEST_F()
/external/autotest/utils/
Dparallel.py98 out_fd = os.open(log_file, os.O_WRONLY | os.O_CREAT)
100 os.dup2(out_fd, 2)
101 os.dup2(out_fd, 1)
103 os.close(out_fd)
/external/e2fsprogs/contrib/android/
Dext2simg.c181 int out_fd; in main() local
210 out_fd = open(params.out_file, O_WRONLY | O_CREAT | O_TRUNC, 0664); in main()
211 if (out_fd == -1) in main()
213 if (sparse_file_write(s, out_fd, params.gzip, params.sparse, params.crc) < 0) in main()
221 close(out_fd); in main()
/external/google-breakpad/src/tools/linux/md2core/
Dminidump-2-core.cc104 int out_fd; member
188 options->out_fd = STDOUT_FILENO; in SetupOptions()
190 options->out_fd = open(output_file, O_WRONLY|O_CREAT|O_TRUNC, 0664); in SetupOptions()
191 if (options->out_fd == -1) { in SetupOptions()
940 if (!writea(options.out_fd, &nhdr, sizeof(nhdr)) || in WriteThread()
941 !writea(options.out_fd, "CORE\0\0\0\0", 8) || in WriteThread()
942 !writea(options.out_fd, &pr, sizeof(struct prstatus))) { in WriteThread()
949 if (!writea(options.out_fd, &nhdr, sizeof(nhdr)) || in WriteThread()
950 !writea(options.out_fd, "CORE\0\0\0\0", 8) || in WriteThread()
951 !writea(options.out_fd, &thread.fpregs, sizeof(user_fpregs_struct))) { in WriteThread()
[all …]
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cpp15 bool CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument
21 write(out_fd, buf, got); in CopyFdToFd()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Ddecorate_proc_maps.cc12 bool CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument
18 write(out_fd, buf, got); in CopyFdToFd()
/external/llvm-project/compiler-rt/test/hwasan/TestCases/Linux/
Ddecorate-proc-maps.c30 void CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument
36 write(out_fd, UNTAG(buf), got); in CopyFdToFd()
/external/perfetto/src/base/
Dsubprocess_windows.cc95 ::SetHandleInformation(*args.out_fd, HANDLE_FLAG_INHERIT, 1)); in Start()
96 start_info.hStdError = *args.out_fd; in Start()
109 ::SetHandleInformation(*args.out_fd, HANDLE_FLAG_INHERIT, 1)); in Start()
110 start_info.hStdOutput = *args.out_fd; in Start()
134 args.out_fd.reset(); in Start()
/external/strace/tests-m32/
Dqual_fault.c47 static int out_fd; variable
179 out_fd = open_file(out_prefix, proc); in main()
182 dup2(out_fd, 3); in main()
/external/strace/tests-mx32/
Dqual_fault.c47 static int out_fd; variable
179 out_fd = open_file(out_prefix, proc); in main()
182 dup2(out_fd, 3); in main()
/external/strace/tests/
Dqual_fault.c47 static int out_fd; variable
179 out_fd = open_file(out_prefix, proc); in main()
182 dup2(out_fd, 3); in main()

123