/external/ltp/testcases/kernel/syscalls/sendfile/ |
sendfile08.c | 46 static int out_fd; variable 64 TEST(sendfile(out_fd, in_fd, NULL, strlen(TEST_MSG_IN))); 69 ret = lseek(out_fd, 0, SEEK_SET); 73 ret = read(out_fd, buf, BUFSIZ); 96 tst_resm(TCONF, "The out_fd must be socket before kernel"); 117 out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777); 118 if (out_fd == -1) 120 ret = write(out_fd, TEST_MSG_OUT, strlen(TEST_MSG_OUT)); 127 close(out_fd);
|
sendfile03.c | 29 * 1. Call sendfile(2) with out_fd = -1, and expect EBADF to be returned. 31 * 3. Call sendfile(2) with in_fd = out_fd = -1, and expect EBADF. 64 int in_fd, out_fd; variable 74 int out_fd; member in struct:test_case_t 82 "Test for EBADF, out_fd = -1", NULL, -1, 7, NULL, 0, EBADF}, { 83 "Test for EBADF, in_fd = out_fd = -1", NULL, -1, -1, NULL, 107 TEST(sendfile(testcases[i].out_fd, testcases[i].in_fd, 158 if ((out_fd = open(out_file, O_TRUNC | O_CREAT | O_RDWR, 0777)) < 0) { 173 close(out_fd);
|
sendfile09.c | 65 static int out_fd; variable 91 out_fd = SAFE_OPEN(cleanup, out_file, O_WRONLY); 95 TEST(sendfile(out_fd, in_fd, &t->offset, t->count)); 122 close(out_fd); 162 if (out_fd > 0) 163 close(out_fd);
|
sendfile06.c | 68 int in_fd, out_fd; local 72 out_fd = create_server(); 76 TEST(sendfile(out_fd, in_fd, NULL, sb.st_size)); 84 shutdown(out_fd, SHUT_RDWR); 104 SAFE_CLOSE(cleanup, out_fd);
|
sendfile04.c | 69 int out_fd; variable 112 out_fd = create_server(); 127 TEST(sendfile(out_fd, in_fd, protected_buffer, sb.st_size)); 204 close(out_fd);
|
sendfile05.c | 64 int out_fd; variable 86 out_fd = create_server(); 96 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size)); 168 close(out_fd);
|
sendfile02.c | 70 int out_fd; variable 105 out_fd = create_server(); 119 TEST(sendfile(out_fd, in_fd, &offset, sb.st_size - offset)); 206 close(out_fd);
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
decorate_proc_maps.cc | 12 bool CopyFdToFd(int in_fd, int out_fd) { 18 write(out_fd, buf, got);
|
/external/toybox/toys/pending/ |
gzip.c | 115 int out_fd = xcreate(out_name, local 119 out = xfdopen(out_fd, "w"); 142 int both_files, out_fd; local 148 if (!strcmp(out_name, "-")) out_fd = dup(1); 150 out_fd = open(out_name, O_CREAT|O_WRONLY|((toys.optflags&FLAG_f)?0:O_EXCL), 153 if (out_fd == -1) perror_exit("open %s", out_name); 156 out = gzdopen(out_fd, toybuf);
|
/system/core/debuggerd/ |
util.cpp | 45 ssize_t recv_fd(int sockfd, void* _Nonnull data, size_t len, unique_fd* _Nullable out_fd) { 80 if (out_fd) { 81 *out_fd = std::move(fd);
|
util.h | 32 // If out_fd is non-null, packets can optionally have an attached fd. 33 // If out_fd is null, received packets must not have an attached fd. 44 android::base::unique_fd* _Nullable out_fd);
|
/frameworks/native/cmds/dumpstate/ |
DumpstateInternal.h | 58 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
|
DumpstateUtil.cpp | 178 int DumpFileToFd(int out_fd, const std::string& title, const std::string& path) { 183 dprintf(out_fd, "*** Error dumping %s: %s\n", path.c_str(), strerror(err)); 185 dprintf(out_fd, "*** Error dumping %s (%s): %s\n", path.c_str(), title.c_str(), 188 fsync(out_fd); 191 return DumpFileFromFdToFd(title, path, fd, out_fd, PropertiesHelper::IsDryRun());
|
/build/make/tools/makeparallel/ |
makeparallel.cpp | 103 int* in_fd, int* out_fd, bool* parallel, bool* keep_going) { 135 if (sscanf(optarg, "%d,%d", in_fd, out_fd) != 2) { 138 // TODO: propagate in_fd, out_fd 275 static void PutJobserverTokens(int out_fd, int tokens) { 279 int ret = TEMP_FAILURE_RETRY(write(out_fd, &buf, 1)); 290 int out_fd = -1; local 310 if (ParseMakeflags(makeflags, &in_fd, &out_fd, ¶llel, &keep_going)) { 311 if (in_fd >= 0 && out_fd >= 0) { 313 CheckFd(out_fd); 315 fcntl(out_fd, F_SETFD, FD_CLOEXEC) [all...] |
/external/autotest/utils/ |
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/valgrind/coregrind/ |
pub_core_ume.h | 93 // either binary or "#!" format. On success, 'out_fd' gets the fd of the file 95 extern SysRes VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd,
|
/system/core/debuggerd/tombstoned/ |
intercept_manager.h | 56 bool GetIntercept(pid_t pid, DebuggerdDumpType dump_type, android::base::unique_fd* out_fd);
|
/external/e2fsprogs/contrib/android/ |
ext2simg.c | 181 int out_fd; local 211 out_fd = open(params.out_file, O_WRONLY | O_CREAT | O_TRUNC, 0664); 212 if (out_fd == -1) 214 if (sparse_file_write(s, out_fd, params.gzip, params.sparse, params.crc) < 0) 222 close(out_fd);
|
/external/strace/tests/ |
qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); 181 dup2(out_fd, 3);
|
/external/strace/tests-m32/ |
qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); 181 dup2(out_fd, 3);
|
/external/strace/tests-mx32/ |
qual_fault.c | 47 static int out_fd; variable 178 out_fd = open_file(out_prefix, proc); 181 dup2(out_fd, 3);
|
/external/autotest/client/site_tests/documentscan_AppTestWithFakeLorgnette/ |
mock_lorgnette.py | 49 def ScanImage(self, device, out_fd, scan_properties): 50 """Writes test image date to |out_fd|. Do so in chunks since the 54 @param out_fd file handle for the output scan data. 59 scan_output_fd = out_fd.take()
|
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/cris/ |
cris.exp | 119 set out_fd [open $objdir/$opcode-test.s w] 136 puts $out_fd $line 143 close $out_fd 148 set out_fd [open $objdir/$opcode-test.d w] 173 puts $out_fd "$leftpart$n$rightpart" 187 puts $out_fd "$leftpart$n$rightpart" 189 puts $out_fd $line 194 close $out_fd
|
/external/boringssl/src/crypto/bio/ |
fd.c | 272 int BIO_get_fd(BIO *bio, int *out_fd) { 273 return BIO_ctrl(bio, BIO_C_GET_FD, 0, (char *) out_fd);
|
/external/valgrind/coregrind/m_ume/ |
main.c | 68 VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd, Bool allow_setuid) 122 // Write the 'out_fd' param if necessary, or close the file. 123 if (!sr_isError(res) && out_fd) { 124 *out_fd = fd;
|