Home
last modified time | relevance | path

Searched refs:kInvalidFd (Results 1 – 25 of 39) sorted by relevance

12

/external/pigweed/pw_stream/
Dsocket_stream.cc27 if (socket_fd_ == kInvalidFd) { in Serve()
82 if (socket_fd_ != kInvalidFd) { in Close()
84 socket_fd_ = kInvalidFd; in Close()
87 if (conn_fd_ != kInvalidFd) { in Close()
89 conn_fd_ = kInvalidFd; in Close()
/external/pigweed/pw_stream/public/pw_stream/
Dsocket_stream.h32 static constexpr int kInvalidFd = -1; variable
55 int socket_fd_ = kInvalidFd;
56 int conn_fd_ = kInvalidFd;
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_file.cpp44 if (fd != kInvalidFd) { in ReopenIfNecessary()
63 if (fd == kInvalidFd) { in ReopenIfNecessary()
86 if (fd != kStdoutFd && fd != kStderrFd && fd != kInvalidFd) in SetReportPath()
88 fd = kInvalidFd; in SetReportPath()
120 if (fd == kInvalidFd) { in ReadFileToBuffer()
156 if (fd == kInvalidFd) in ReadFileToVector()
Dsanitizer_file.h91 const char *const envp[], fd_t stdin_fd = kInvalidFd,
92 fd_t stdout_fd = kInvalidFd, fd_t stderr_fd = kInvalidFd);
Dsanitizer_posix_libcdep.cpp428 if (stdin_fd != kInvalidFd) { in StartSubprocess()
431 if (stdout_fd != kInvalidFd) { in StartSubprocess()
434 if (stderr_fd != kInvalidFd) { in StartSubprocess()
451 if (stdin_fd != kInvalidFd) { in StartSubprocess()
456 if (stdout_fd != kInvalidFd) { in StartSubprocess()
461 if (stderr_fd != kInvalidFd) { in StartSubprocess()
Dsanitizer_mac.cpp255 fd_t master_fd = kInvalidFd; in internal_spawn_impl()
256 fd_t slave_fd = kInvalidFd; in internal_spawn_impl()
267 if (master_fd == kInvalidFd) return kInvalidFd; in internal_spawn_impl()
270 if (res != 0) return kInvalidFd; in internal_spawn_impl()
275 if (res == -1) return kInvalidFd; in internal_spawn_impl()
278 if (slave_fd == kInvalidFd) return kInvalidFd; in internal_spawn_impl()
283 if (res != 0) return kInvalidFd; in internal_spawn_impl()
292 if (res != 0) return kInvalidFd; in internal_spawn_impl()
297 if (res != 0) return kInvalidFd; in internal_spawn_impl()
306 if (res != 0) return kInvalidFd; in internal_spawn_impl()
[all …]
Dsanitizer_symbolizer_libcdep.cpp458 input_fd_(kInvalidFd), in SymbolizerProcess()
459 output_fd_(kInvalidFd), in SymbolizerProcess()
499 if (input_fd_ == kInvalidFd || output_fd_ == kInvalidFd) in SendCommandImpl()
509 if (input_fd_ != kInvalidFd) in Restart()
511 if (output_fd_ != kInvalidFd) in Restart()
Dsanitizer_win.cpp569 if (fd == kInvalidFd) in GetPreferredBase()
715 CHECK(res != kStdoutFd || kStdoutFd == kInvalidFd); in OpenFile()
716 CHECK(res != kStderrFd || kStderrFd == kInvalidFd); in OpenFile()
717 if (res == kInvalidFd && last_error) in OpenFile()
728 CHECK(fd != kInvalidFd); in ReadFromFile()
749 CHECK(fd != kInvalidFd); in WriteToFile()
Dsanitizer_posix.cpp155 return kInvalidFd; in OpenFile()
164 return kInvalidFd; in OpenFile()
194 CHECK(fd != kInvalidFd); in MapFileToMemory()
Dsanitizer_libc.h61 #define kInvalidFd ((fd_t)-1) macro
/external/llvm-project/compiler-rt/lib/stats/
Dstats.cpp49 if (stats_fd == kInvalidFd) { in OpenStatsFile()
61 if (!path_env || stats_fd == kInvalidFd) in WriteModuleReport()
109 if (stats_fd != 0 && stats_fd != kInvalidFd) { in WriteFullReport()
111 stats_fd = kInvalidFd; in WriteFullReport()
/external/compiler-rt/lib/stats/
Dstats.cc49 if (stats_fd == kInvalidFd) { in OpenStatsFile()
61 if (!path_env || stats_fd == kInvalidFd) in WriteModuleReport()
109 if (stats_fd != 0 && stats_fd != kInvalidFd) { in WriteFullReport()
111 stats_fd = kInvalidFd; in WriteFullReport()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_coverage_libcdep.cc74 static fd_t cov_fd = kInvalidFd;
194 if (pc_fd == kInvalidFd) { in DirectOpen()
204 pc_fd = kInvalidFd; in Init()
272 if (pc_fd != kInvalidFd) { in Disable()
274 pc_fd = kInvalidFd; in Disable()
325 if (pc_fd == kInvalidFd) DirectOpen(); in Extend()
326 CHECK_NE(pc_fd, kInvalidFd); in Extend()
546 if (cov_fd == kInvalidFd) return; in CovWritePacked()
602 if (fd == kInvalidFd) in CovOpenFile()
625 if (fd == kInvalidFd) return; in DumpTrace()
[all …]
Dsanitizer_posix_libcdep.cc336 if (stdin_fd != kInvalidFd) { in StartSubprocess()
339 if (stdout_fd != kInvalidFd) { in StartSubprocess()
342 if (stderr_fd != kInvalidFd) { in StartSubprocess()
359 if (stdin_fd != kInvalidFd) { in StartSubprocess()
364 if (stdout_fd != kInvalidFd) { in StartSubprocess()
369 if (stderr_fd != kInvalidFd) { in StartSubprocess()
Dsanitizer_symbolizer_libcdep.cc352 input_fd_(kInvalidFd), in SymbolizerProcess()
353 output_fd_(kInvalidFd), in SymbolizerProcess()
377 if (input_fd_ == kInvalidFd || output_fd_ == kInvalidFd) in SendCommandImpl()
387 if (input_fd_ != kInvalidFd) in Restart()
389 if (output_fd_ != kInvalidFd) in Restart()
Dsanitizer_common.cc45 if (fd != kInvalidFd) { in ReopenIfNecessary()
63 if (fd == kInvalidFd) { in ReopenIfNecessary()
84 if (fd != kStdoutFd && fd != kStderrFd && fd != kInvalidFd) in SetReportPath()
86 fd = kInvalidFd; in SetReportPath()
133 if (fd == kInvalidFd) return false; in ReadFileToBuffer()
Dsanitizer_win.cc415 if (fd == kInvalidFd) in GetPreferredBase()
557 CHECK(res != kStdoutFd || kStdoutFd == kInvalidFd); in OpenFile()
558 CHECK(res != kStderrFd || kStderrFd == kInvalidFd); in OpenFile()
559 if (res == kInvalidFd && last_error) in OpenFile()
570 CHECK(fd != kInvalidFd); in ReadFromFile()
591 CHECK(fd != kInvalidFd); in WriteToFile()
Dsanitizer_libc.h64 const fd_t kInvalidFd = (fd_t)-1; variable
Dsanitizer_coverage_mapping_libcdep.cc100 if (map_fd == kInvalidFd) { in CovUpdateMapping()
Dsanitizer_posix.cc217 return kInvalidFd; in OpenFile()
252 CHECK(fd != kInvalidFd); in MapFileToMemory()
Dsanitizer_common.h295 fd_t stdin_fd = kInvalidFd, fd_t stdout_fd = kInvalidFd,
296 fd_t stderr_fd = kInvalidFd);
/external/angle/src/libANGLE/renderer/vulkan/
DMemoryObjectVk.cpp85 if (mFd != kInvalidFd) in onDestroy()
88 mFd = kInvalidFd; in onDestroy()
143 ASSERT(mFd == kInvalidFd); in importOpaqueFd()
144 ASSERT(fd != kInvalidFd); in importOpaqueFd()
230 ASSERT(mFd != kInvalidFd); in createImage()
DMemoryObjectVk.h49 static constexpr int kInvalidFd = -1;
58 int mFd = kInvalidFd;
/external/llvm-project/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cpp110 ASSERT_NE(fd, kInvalidFd); in TEST()
115 ASSERT_NE(fd, kInvalidFd); in TEST()
129 ASSERT_NE(fd, kInvalidFd); in TEST()
293 ASSERT_NE(fd, kInvalidFd); in TEST()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_libc_test.cc96 ASSERT_NE(fd, kInvalidFd); in TEST()
107 ASSERT_NE(fd, kInvalidFd); in TEST()
219 ASSERT_NE(fd, kInvalidFd); in TEST()

12