Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/swiftshader/src/System/Linux/
DMemFd.cpp48 fd_ = fd; in importFd()
53 if(fd_ < 0) in exportFd()
55 return fd_; in exportFd()
59 return ::fcntl(fd_, F_DUPFD_CLOEXEC, 0); in exportFd()
72 fd_ = syscall(__NR_memfd_create, name, MFD_CLOEXEC); in allocate()
73 if(fd_ < 0) in allocate()
79 if(size > 0 && ::ftruncate(fd_, size) < 0) in allocate()
91 if(fd_ >= 0) in close()
95 int ret = ::close(fd_); in close()
101 fd_ = -1; in close()
[all …]
DMemFd.hpp39 bool isValid() const { return fd_ >= 0; } in isValid()
42 int fd() const { return fd_; } in fd()
68 int fd_ = -1; member in LinuxMemFd
/third_party/node/src/tracing/
Dnode_trace_writer.cc52 if (fd_ != -1) { in ~NodeTraceWriter()
53 CHECK_EQ(0, uv_fs_close(nullptr, &req, fd_, nullptr)); in ~NodeTraceWriter()
83 if (fd_ != -1) { in OpenNewFileForStreaming()
84 CHECK_EQ(uv_fs_close(nullptr, &req, fd_, nullptr), 0); in OpenNewFileForStreaming()
88 fd_ = uv_fs_open(nullptr, &req, filepath.c_str(), in OpenNewFileForStreaming()
91 if (fd_ < 0) { in OpenNewFileForStreaming()
94 uv_strerror(fd_)); in OpenNewFileForStreaming()
95 fd_ = -1; in OpenNewFileForStreaming()
163 if (fd_ == -1) return; in WriteToFile()
179 if (buf.base != nullptr && fd_ != -1) { in WriteToFile()
[all …]
Dnode_trace_writer.h59 int fd_ = -1; variable
/third_party/ninja/src/
Dsubprocess-posix.cc39 Subprocess::Subprocess(bool use_console) : fd_(-1), pid_(-1), in Subprocess()
44 if (fd_ >= 0) in ~Subprocess()
45 close(fd_); in ~Subprocess()
55 fd_ = output_pipe[0]; in Start()
59 if (fd_ >= static_cast<int>(FD_SETSIZE)) in Start()
62 SetCloseOnExec(fd_); in Start()
139 ssize_t len = read(fd_, buf, sizeof(buf)); in OnPipeReady()
145 close(fd_); in OnPipeReady()
146 fd_ = -1; in OnPipeReady()
180 return fd_ == -1; in Done()
[all …]
Dsubprocess.h71 int fd_; member
/third_party/node/test/parallel/
Dtest-fs-write-stream-err.js57 fs.close = common.mustCall(function(fd_, cb) { argument
58 console.error('fs.close', fd_, stream.fd);
59 assert.strictEqual(fd_, stream.fd);
60 fs.closeSync(fd_);
Dtest-worker-cleanup-handles.js12 w.on('message', common.mustCall((fd_) => {
13 assert.strictEqual(typeof fd_, 'number');
14 fd = fd_;
Dtest-fs-read-stream-err.js39 fs.close = common.mustCall((fd_, cb) => {
40 assert.strictEqual(fd_, stream.fd);
/third_party/gn/src/gn/
Dfile_writer.cc78 fd_.reset(HANDLE_EINTR(::creat(file_path.value().c_str(), 0666))); in Create()
79 valid_ = fd_.is_valid(); in Create()
91 ssize_t written = HANDLE_EINTR(::write(fd_.get(), str.data(), str.size())); in Write()
104 fd_.reset(); in Close()
Dfile_writer.h71 base::ScopedFD fd_;
/third_party/nghttp2/src/
Dshrpx_api_downstream_connection.cc73 : worker_(worker), api_(nullptr), fd_(-1), shutdown_read_(false) {} in APIDownstreamConnection()
76 if (fd_ != -1) { in ~APIDownstreamConnection()
77 close(fd_); in ~APIDownstreamConnection()
245 fd_ = mkostemp(tempname, O_CLOEXEC); in push_request_headers()
247 fd_ = mkstemp(tempname); in push_request_headers()
249 if (fd_ == -1) { in push_request_headers()
255 util::make_socket_closeonexec(fd_); in push_request_headers()
319 while ((nwrite = write(fd_, data, datalen)) == -1 && errno == EINTR) in push_upload_data_chunk()
353 auto rp = mmap(nullptr, req.recv_body_length, PROT_READ, MAP_SHARED, fd_, 0); in handle_backendconfig()
Dshrpx_api_downstream_connection.h107 int fd_; variable
DHttpServer.cc545 fd_(fd) { in Http2Handler()
582 shutdown(fd_, SHUT_WR); in ~Http2Handler()
583 close(fd_); in ~Http2Handler()
639 while ((nread = read(fd_, buf.data(), buf.size())) == -1 && errno == EINTR) in read_clear()
672 while ((nwrite = write(fd_, wb_.pos, wb_.rleft())) == -1 && in write_clear()
1898 : acceptor_(std::move(acceptor)), sessions_(sessions), fd_(fd) { in ListenEventHandler()
1906 auto fd = accept4(fd_, nullptr, nullptr, SOCK_NONBLOCK); in accept_connection()
1908 auto fd = accept(fd_, nullptr, nullptr); in accept_connection()
1924 int fd_; member in nghttp2::ListenEventHandler
/third_party/node/src/
Dstream_wrap.h96 fd_ = fd; in set_fd()
122 int fd_ = -1; variable
Dnode_file.cc238 fd_(fd), in FileHandle()
294 auto ret = std::make_unique<TransferData>(fd_); in TransferForMessaging()
299 FileHandle::TransferData::TransferData(int fd) : fd_(fd) {} in TransferData()
302 if (fd_ > 0) { in ~TransferData()
304 CHECK_NE(fd_, -1); in ~TransferData()
306 CHECK_EQ(0, uv_fs_close(nullptr, &close_req, fd_, nullptr)); in ~TransferData()
319 int fd = fd_; in Deserialize()
320 fd_ = -1; in Deserialize()
331 CHECK_NE(fd_, -1); in Close()
333 int ret = uv_fs_close(env()->event_loop(), &req, fd_, nullptr); in Close()
[all …]
Dnode_file.h310 int GetFD() override { return fd_; } in GetFD()
365 int fd_;
410 int fd_; variable
Dheap_utils.cc223 FileOutputStream(const int fd, uv_fs_t* req) : fd_(fd), req_(req) {} in FileOutputStream()
238 fd_, in WriteAsciiChunk()
258 const int fd_; member in node::heap::__anon557f6b510111::FileOutputStream
/third_party/node/test/cctest/
Dtest_environment.cc80 fd_ = dup(fileno(stderr)); in RedirectStdErr()
86 dup2(fd_, fileno(stderr)); in ~RedirectStdErr()
87 close(fd_); in ~RedirectStdErr()
94 int fd_; member in RedirectStdErr
/third_party/mesa3d/src/gtest/src/
Dgtest-port.cc1075 explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream()
1121 dup2(captured_fd, fd_); in CapturedStream()
1133 dup2(uncaptured_fd_, fd_); in GetCapturedString()
1149 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
/third_party/node/deps/googletest/src/
Dgtest-port.cc1035 explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream()
1109 dup2(captured_fd, fd_); in CapturedStream()
1119 dup2(uncaptured_fd_, fd_); in GetCapturedString()
1135 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
/third_party/googletest/googletest/src/
Dgtest-port.cc1037 explicit CapturedStream(int fd) : fd_(fd), uncaptured_fd_(dup(fd)) { in CapturedStream()
1111 dup2(captured_fd, fd_); in CapturedStream()
1121 dup2(uncaptured_fd_, fd_); in GetCapturedString()
1137 const int fd_; // A stream to capture. member in testing::internal::CapturedStream
/third_party/libabigail/src/
Dabg-tools-utils.cc1305 int fd_; member
1316 fd_ = mkstemp(path_template_); in priv()
1317 if (fd_ == -1) in priv()
1328 if (fd_ && fd_ != -1) in ~priv()
1331 close(fd_); in ~priv()
/third_party/node/deps/v8/src/d8/
Dd8-posix.cc148 explicit OpenFDCloser(int fd) : fd_(fd) {} in OpenFDCloser()
149 ~OpenFDCloser() { close(fd_); } in ~OpenFDCloser()
152 int fd_; member in v8::OpenFDCloser
/third_party/skia/src/core/
DSkTextBlob.cpp173 if (fd_ > 0) { in ~SkTextBlob()
174 ::close(fd_); in ~SkTextBlob()
175 fd_ = -1; in ~SkTextBlob()
869 fd_ = fId; in TextBlobSetShareParas()

12