/external/ltp/testcases/kernel/syscalls/sendfile/ |
D | sendfile08.c | 46 static int out_fd; variable 64 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); in main() 69 ret = lseek(out_fd, 0, SEEK_SET); in main() 73 ret = read(out_fd, buf, BUFSIZ); in main() 117 out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); in setup() 118 if (out_fd == -1) in setup() 120 ret = write(out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); in setup() 127 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 | 64 int out_fd; variable 86 out_fd = create_server(); in do_sendfile() 96 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); in do_sendfile() 168 close(out_fd); in cleanup()
|
D | sendfile02.c | 70 int out_fd; variable 105 out_fd = create_server(); in do_sendfile() 119 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); in do_sendfile() 206 close(out_fd); in cleanup()
|
D | sendfile04.c | 69 int out_fd; variable 112 out_fd = create_server(); in do_sendfile() 127 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); in do_sendfile() 204 close(out_fd); in cleanup()
|
/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/toybox/toys/pending/ |
D | gzip.c | 115 int out_fd = xcreate(out_name, in do_gunzip() local 119 out = xfdopen(out_fd, "w"); in do_gunzip() 142 int both_files, out_fd; in do_gzip() local 148 if (!strcmp(out_name, "-")) out_fd = dup(1); in do_gzip() 150 out_fd = open(out_name, O_CREAT|O_WRONLY|((toys.optflags&FLAG_f)?0:O_EXCL), in do_gzip() 153 if (out_fd == -1) perror_exit("open %s", out_name); in do_gzip() 156 out = gzdopen(out_fd, toybuf); in do_gzip()
|
/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/e2fsprogs/contrib/android/ |
D | ext2simg.c | 181 int out_fd; in main() local 211 out_fd = open(params.out_file, O_WRONLY | O_CREAT | O_TRUNC, 0664); in main() 212 if (out_fd == -1) in main() 214 if (sparse_file_write(s, out_fd, params.gzip, params.sparse, params.crc) < 0) in main() 222 close(out_fd); in main()
|
/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-m32/ |
D | qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); in main() 181 dup2(out_fd, 3); in main()
|
/external/strace/tests/ |
D | qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); in main() 181 dup2(out_fd, 3); in main()
|
/external/strace/tests-mx32/ |
D | qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); in main() 181 dup2(out_fd, 3); in main()
|
/external/autotest/client/site_tests/documentscan_AppTestWithFakeLorgnette/ |
D | mock_lorgnette.py | 49 def ScanImage(self, device, out_fd, scan_properties): argument 59 scan_output_fd = out_fd.take()
|
/external/valgrind/coregrind/m_ume/ |
D | main.c | 68 VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd, Bool allow_setuid) in VG_() 123 if (!sr_isError(res) && out_fd) { in VG_() 124 *out_fd = fd; in VG_()
|
/external/boringssl/src/crypto/bio/ |
D | fd.c | 272 int BIO_get_fd(BIO *bio, int *out_fd) { in BIO_get_fd() argument 273 return BIO_ctrl(bio, BIO_C_GET_FD, 0, (char *) out_fd); in BIO_get_fd()
|
/external/boringssl/src/tool/ |
D | digest.cc | 85 static bool OpenFile(int *out_fd, const std::string &filename) { in OpenFile() argument 86 *out_fd = -1; in OpenFile() 110 *out_fd = fd; in OpenFile()
|
/external/linux-kselftest/tools/testing/selftests/exec/ |
D | execveat.c | 140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); in exe_cp() local 144 sendfile(out_fd, in_fd, NULL, info.st_size); in exe_cp() 146 close(out_fd); in exe_cp()
|
/external/valgrind/coregrind/ |
D | pub_core_ume.h | 95 extern SysRes VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd,
|
/external/toybox/toys/other/ |
D | bzcat.c | 443 static void flush_bunzip_outbuf(struct bunzip_data *bd, int out_fd) in flush_bunzip_outbuf() argument 446 if (write(out_fd, bd->outbuf, bd->outbufPos) != bd->outbufPos) in flush_bunzip_outbuf() 513 int out_fd, char *outbuf, int len) in write_bunzip_data() argument 564 if (bd->outbufPos == IOBUF_SIZE) flush_bunzip_outbuf(bd, out_fd); in write_bunzip_data()
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 783 #define __sanitizer_syscall_pre_sendfile(out_fd, in_fd, offset, count) \ argument 784 __sanitizer_syscall_pre_impl_sendfile((long)(out_fd), (long)(in_fd), \ 786 #define __sanitizer_syscall_post_sendfile(res, out_fd, in_fd, offset, count) \ argument 787 __sanitizer_syscall_post_impl_sendfile(res, (long)(out_fd), (long)(in_fd), \ 789 #define __sanitizer_syscall_pre_sendfile64(out_fd, in_fd, offset, count) \ argument 790 __sanitizer_syscall_pre_impl_sendfile64((long)(out_fd), (long)(in_fd), \ 792 #define __sanitizer_syscall_post_sendfile64(res, out_fd, in_fd, offset, count) \ argument 793 __sanitizer_syscall_post_impl_sendfile64(res, (long)(out_fd), (long)(in_fd), \ 2444 void __sanitizer_syscall_pre_impl_sendfile(long out_fd, long in_fd, long offset, 2446 void __sanitizer_syscall_post_impl_sendfile(long res, long out_fd, long in_fd, [all …]
|
/external/boringssl/src/include/openssl/ |
D | bio.h | 441 OPENSSL_EXPORT int BIO_get_fd(BIO *bio, int *out_fd);
|