/external/toybox/toys/pending/ |
D | gzip.c | 68 static int do_deflate(int in_fd, int out_fd, int dd, int level) 76 if (out_fd == 1) out_fd = xdup(out_fd); 78 if (!(gz = gzdopen(dd ? in_fd : out_fd, b))) perror_exit("gzdopen"); 81 if (len != writeall(out_fd, toybuf, len)) break; 101 static int do_deflate(int in_fd, int out_fd, int dd, int level) 105 if (dd) WOULD_EXIT(x, gunzip_fd(in_fd, out_fd)); 106 else WOULD_EXIT(x, gzip_fd(in_fd, out_fd)); 116 int len, out_fd = 0; in do_gzip() local 120 if (!in_fd || (toys.optflags&FLAG_c)) out_fd = 1; in do_gzip() 124 else out_fd = 1; in do_gzip() [all …]
|
/external/virglrenderer/vtest/ |
D | vtest_server.c | 89 static int run_renderer(int in_fd, int out_fd) in run_renderer() argument 105 ret = vtest_create_renderer(in_fd, out_fd, header[0]); in run_renderer() 157 int ret, sock = -1, in_fd, out_fd; in main() local 184 out_fd = ret; in main() 204 out_fd = in_fd; in main() 211 run_renderer(in_fd, out_fd); in main() 221 run_renderer(in_fd, out_fd); in main() 228 if (in_fd != out_fd) in main() 229 close(out_fd); in main()
|
D | vtest_renderer.c | 55 int out_fd; member 113 int vtest_create_renderer(int in_fd, int out_fd, uint32_t length) in vtest_create_renderer() argument 120 renderer.out_fd = out_fd; in vtest_create_renderer() 170 renderer.out_fd = -1; in vtest_destroy_renderer() 192 ret = vtest_block_write(renderer.out_fd, hdr_buf, 8); in vtest_send_caps2() 195 vtest_block_write(renderer.out_fd, caps_buf, max_size); in vtest_send_caps2() 221 ret = vtest_block_write(renderer.out_fd, hdr_buf, 8); in vtest_send_caps() 224 vtest_block_write(renderer.out_fd, caps_buf, max_size); in vtest_send_caps() 351 ret = vtest_block_write(renderer.out_fd, ptr, data_size); in vtest_transfer_get() 432 ret = vtest_block_write(renderer.out_fd, hdr_buf, sizeof(hdr_buf)); in vtest_resource_busy_wait() [all …]
|
/external/ltp/testcases/kernel/controllers/freezer/ |
D | libltp | 30 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/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile08.c | 47 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()
|
D | sendfile07.c | 65 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()
|
D | sendfile09.c | 65 static int out_fd; variable 91 out_fd = SAFE_OPEN(cleanup, out_file, O_WRONLY); in do_sendfile() 95 TEST(sendfile(out_fd, in_fd, &t->offset, t->count)); in do_sendfile() 122 close(out_fd); in do_sendfile() 162 if (out_fd > 0) in cleanup() 163 close(out_fd); in cleanup()
|
D | sendfile03.c | 64 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()
|
D | sendfile06.c | 68 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()
|
D | sendfile05.c | 65 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()
|
D | sendfile02.c | 71 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()
|
D | sendfile04.c | 70 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()
|
/external/libbrillo/brillo/dbus/ |
D | dbus_method_invoker_unittest.cc | 214 base::ScopedFD out_fd = EchoFD(fd_stdin); in TEST_F() local 215 EXPECT_NE(fd_stdin, out_fd.get()); in TEST_F() 216 EXPECT_TRUE(out_fd.is_valid()); in TEST_F() 218 out_fd = EchoFD(fd_stdout); in TEST_F() 219 EXPECT_NE(fd_stdout, out_fd.get()); in TEST_F() 220 EXPECT_TRUE(out_fd.is_valid()); in TEST_F() 222 out_fd = EchoFD(fd_stderr); in TEST_F() 223 EXPECT_NE(fd_stderr, out_fd.get()); in TEST_F() 224 EXPECT_TRUE(out_fd.is_valid()); in TEST_F()
|
/external/e2fsprogs/contrib/android/ |
D | ext2simg.c | 181 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/autotest/utils/ |
D | parallel.py | 98 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/perfetto/src/perfetto_cmd/ |
D | rate_limiter.cc | 205 base::ScopedFile out_fd( in SaveState() local 207 if (!out_fd) in SaveState() 214 ssize_t written = base::WriteAll(out_fd.get(), &buf, size); in SaveState()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | decorate_proc_maps.cc | 12 bool CopyFdToFd(int in_fd, int out_fd) { in CopyFdToFd() argument 18 write(out_fd, buf, got); in CopyFdToFd()
|
/external/strace/tests/ |
D | qual_fault.c | 47 static int out_fd; variable 179 out_fd = open_file(out_prefix, proc); in main() 182 dup2(out_fd, 3); in main()
|
D | read-write.c | 119 int out_fd = err_desc ? 4 : 1; in test_dump() local 147 rc = k_write(out_fd, buf, len); in test_dump() 153 tprintf("%s(%d, ", "write", out_fd); in test_dump()
|
/external/strace/tests-mx32/ |
D | qual_fault.c | 47 static int out_fd; variable 179 out_fd = open_file(out_prefix, proc); in main() 182 dup2(out_fd, 3); in main()
|
D | read-write.c | 119 int out_fd = err_desc ? 4 : 1; in test_dump() local 147 rc = k_write(out_fd, buf, len); in test_dump() 153 tprintf("%s(%d, ", "write", out_fd); in test_dump()
|
/external/strace/tests-m32/ |
D | qual_fault.c | 47 static int out_fd; variable 179 out_fd = open_file(out_prefix, proc); in main() 182 dup2(out_fd, 3); in main()
|
D | read-write.c | 119 int out_fd = err_desc ? 4 : 1; in test_dump() local 147 rc = k_write(out_fd, buf, len); in test_dump() 153 tprintf("%s(%d, ", "write", out_fd); in test_dump()
|
/external/bcc/tests/cc/ |
D | test_c_api.cc | 136 int in_fd, out_fd; in mntns_func() local 171 out_fd = open("/tmp/libz.so.1", O_RDWR|O_CREAT|O_EXCL, in mntns_func() 173 if (out_fd < 0) { in mntns_func() 179 if (write(out_fd, buf, rb) < 0) { in mntns_func() 185 close(out_fd); in mntns_func()
|
/external/autotest/scheduler/ |
D | luciferlib.py | 452 out_fd = os.open(output_file, os.O_WRONLY | os.O_APPEND | os.O_CREAT) 453 os.dup2(out_fd, 1) 454 os.dup2(out_fd, 2) 455 os.close(out_fd)
|