/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);
|
/frameworks/native/cmds/dumpstate/ |
DumpstateInternal.h | 52 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());
|
/system/core/debuggerd/ |
util.cpp | 47 ssize_t recv_fd(int sockfd, void* _Nonnull data, size_t len, unique_fd* _Nullable out_fd) { 82 if (out_fd) { 83 *out_fd = std::move(fd);
|
/system/core/debuggerd/include/debuggerd/ |
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);
|
/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 | 88 // either binary or "#!" format. On success, 'out_fd' gets the fd of the file 90 extern SysRes VG_(pre_exec_check)(const HChar* exe_name, Int* out_fd,
|
/system/core/debuggerd/tombstoned/ |
intercept_manager.h | 53 bool GetIntercept(pid_t pid, android::base::unique_fd* out_fd);
|
intercept_manager.cpp | 177 bool InterceptManager::GetIntercept(pid_t pid, android::base::unique_fd* out_fd) { 190 *out_fd = std::move(intercept->output_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/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;
|
/external/boringssl/src/tool/ |
digest.cc | 82 // OpenFile opens the regular file named |filename| and sets |*out_fd| to be a 85 static bool OpenFile(int *out_fd, const std::string &filename) { 86 *out_fd = -1; 110 *out_fd = fd;
|
/external/linux-kselftest/tools/testing/selftests/exec/ |
execveat.c | 140 int out_fd = open(dest, O_RDWR|O_CREAT|O_TRUNC, 0755); local 144 sendfile(out_fd, in_fd, NULL, info.st_size); 146 close(out_fd);
|
/external/toybox/toys/other/ |
bzcat.c | 443 static void flush_bunzip_outbuf(struct bunzip_data *bd, int out_fd) 446 if (write(out_fd, bd->outbuf, bd->outbufPos) != bd->outbufPos) 505 // If !len, write up to len bytes of data to buf. Otherwise write to out_fd. 513 int out_fd, char *outbuf, int len) 564 if (bd->outbufPos == IOBUF_SIZE) flush_bunzip_outbuf(bd, out_fd);
|