Lines Matching refs:fd
1145 SimplePythonFile(const PythonFile &file, bool borrowed, int fd,
1147 : OwnedPythonFile(file, borrowed, fd, options, false) {}
1244 BinaryPythonFile(int fd, const PythonFile &file, bool borrowed)
1246 m_descriptor(File::DescriptorIsValid(fd) ? fd
1298 TextPythonFile(int fd, const PythonFile &file, bool borrowed)
1300 m_descriptor(File::DescriptorIsValid(fd) ? fd
1356 int fd = PyObject_AsFileDescriptor(m_py_obj);
1357 if (fd < 0) {
1377 file_sp = std::make_shared<NativeFile>(fd, options.get(), false);
1380 std::make_shared<SimplePythonFile>(*this, borrowed, fd, options.get()));
1405 int fd = PyObject_AsFileDescriptor(m_py_obj);
1406 if (fd < 0) {
1408 fd = File::kInvalidDescriptor;
1431 std::make_shared<TextPythonFile>(fd, *this, borrowed));
1442 std::make_shared<BinaryPythonFile>(fd, *this, borrowed));