Home
last modified time | relevance | path

Searched refs:file_descriptor (Results 1 – 25 of 63) sorted by relevance

123

/third_party/boost/boost/process/detail/posix/
Dfile_descriptor.hpp15 struct file_descriptor struct
25 file_descriptor() = default;
26 explicit file_descriptor(const boost::filesystem::path& p, mode_t mode = read_write) in file_descriptor() function
27 : file_descriptor(p.native(), mode) in file_descriptor()
31 explicit file_descriptor(const std::string & path , mode_t mode = read_write) in file_descriptor() function
32 : file_descriptor(path.c_str(), mode) {} in file_descriptor()
35 explicit file_descriptor(const char* path, mode_t mode = read_write) in file_descriptor() function
41 file_descriptor(const file_descriptor & ) = delete;
42 file_descriptor(file_descriptor && ) = default;
44 file_descriptor& operator=(const file_descriptor & ) = delete;
[all …]
Dnull_in.hpp24 file_descriptor source{"/dev/null", file_descriptor::read};
Dnull_out.hpp25 file_descriptor sink{"/dev/null", file_descriptor::write};
Dfile_out.hpp24 file_descriptor file;
28 file_out(T&& t) : file(std::forward<T>(t), file_descriptor::write), handle(file.handle()) {} in file_out()
/third_party/boost/boost/process/detail/windows/
Dfile_descriptor.hpp18 struct file_descriptor struct
42 file_descriptor() = default;
43 file_descriptor(const boost::filesystem::path& p, mode_t mode = read_write) in file_descriptor() function
44 : file_descriptor(p.native(), mode) in file_descriptor()
48 file_descriptor(const std::string & path , mode_t mode = read_write) in file_descriptor() function
50 : file_descriptor(::boost::process::detail::convert(path), mode) in file_descriptor()
52 : file_descriptor(path.c_str(), mode) in file_descriptor()
55 file_descriptor(const std::wstring & path, mode_t mode = read_write) in file_descriptor() argument
56 : file_descriptor(path.c_str(), mode) {} in file_descriptor()
58 file_descriptor(const char* path, mode_t mode = read_write) in file_descriptor() argument
[all …]
Dnull_in.hpp24 file_descriptor source{"NUL", file_descriptor::read};
Dfile_in.hpp25 file_descriptor file;
31 file_in(T&& t) : file(std::forward<T>(t), file_descriptor::read) {} in file_in()
Dnull_out.hpp25file_descriptor sink {"NUL", file_descriptor::write}; //works because it gets destroyed AFTER laun…
/third_party/boost/libs/move/example/
Ddoc_file_descriptor.cpp20 class file_descriptor class
34 BOOST_MOVABLE_BUT_NOT_COPYABLE(file_descriptor)
37 explicit file_descriptor(const char *filename) //Constructor in file_descriptor() function in file_descriptor
41 ~file_descriptor() //Destructor in ~file_descriptor()
44 file_descriptor(BOOST_RV_REF(file_descriptor) x) // Move ctor in file_descriptor() function in file_descriptor
48 file_descriptor& operator=(BOOST_RV_REF(file_descriptor) x) // Move assign in operator =()
67 file_descriptor create_file_descriptor(const char *filename) in create_file_descriptor()
68 { return file_descriptor(filename); } in create_file_descriptor()
74 file_descriptor fd = create_file_descriptor("filename"); in main()
78 boost::container::vector<file_descriptor> v; in main()
/third_party/boost/libs/iostreams/src/
Dfile_descriptor.cpp376 file_descriptor::file_descriptor() : pimpl_(new impl_type) { } in file_descriptor() function in boost::iostreams::file_descriptor
378 file_descriptor::file_descriptor(handle_type fd, file_descriptor_flags f) in file_descriptor() function in boost::iostreams::file_descriptor
383 file_descriptor::file_descriptor(handle_type fd, bool close_on_exit) in file_descriptor() function in boost::iostreams::file_descriptor
390 file_descriptor::file_descriptor(int fd, file_descriptor_flags f) in file_descriptor() function in boost::iostreams::file_descriptor
395 file_descriptor::file_descriptor(int fd, bool close_on_exit) in file_descriptor() function in boost::iostreams::file_descriptor
402 file_descriptor::file_descriptor( const std::string& path, in file_descriptor() function in boost::iostreams::file_descriptor
407 file_descriptor::file_descriptor( const char* path, in file_descriptor() function in boost::iostreams::file_descriptor
412 file_descriptor::file_descriptor(const file_descriptor& other) in file_descriptor() function in boost::iostreams::file_descriptor
416 void file_descriptor::open(handle_type fd, file_descriptor_flags f) in open()
420 void file_descriptor::open(handle_type fd, bool close_on_exit) in open()
[all …]
/third_party/boost/boost/iostreams/device/
Dfile_descriptor.hpp50 class BOOST_IOSTREAMS_DECL file_descriptor { class
62 file_descriptor();
65 file_descriptor(handle_type fd, file_descriptor_flags);
67 file_descriptor(int fd, file_descriptor_flags);
72 explicit file_descriptor(handle_type fd, bool close_on_exit = false);
74 explicit file_descriptor(int fd, bool close_on_exit = false);
79 explicit file_descriptor( const std::string& path,
84 explicit file_descriptor( const char* path,
90 explicit file_descriptor( const Path& path, in file_descriptor() function in boost::iostreams::file_descriptor
99 file_descriptor(const file_descriptor& other);
[all …]
/third_party/boost/libs/iostreams/test/
Dfile_descriptor_test.cpp30 typedef stream<file_descriptor> fdstream; in file_descriptor_test()
272 file_descriptor file( temp.name(), in file_descriptor_test()
286 file_descriptor file( temp.name(), in file_descriptor_test()
301 fdstream first(file_descriptor(test1.name(), BOOST_IOS::in), 0); in file_descriptor_test()
316 fdstream first(file_descriptor(test1.name(), BOOST_IOS::in), 0); in file_descriptor_test()
331 file_descriptor file(test1.name(), BOOST_IOS::in); in file_descriptor_test()
348 file_descriptor file(test1.name(), BOOST_IOS::in); in file_descriptor_test()
367 file_descriptor file( temp.name(), in file_descriptor_test()
391 file_descriptor file( temp.name(), in file_descriptor_test()
415 file_descriptor file( temp.name(), in file_descriptor_test()
[all …]
/third_party/protobuf/ruby/tests/
Dbasic_proto2.rb265 file_descriptor = TestMessage.descriptor.file_descriptor
266 assert nil != file_descriptor
267 assert_equal "tests/basic_test_proto2.proto", file_descriptor.name
268 assert_equal :proto2, file_descriptor.syntax
270 file_descriptor = TestEnum.descriptor.file_descriptor
271 assert nil != file_descriptor
272 assert_equal "tests/basic_test_proto2.proto", file_descriptor.name
273 assert_equal :proto2, file_descriptor.syntax
Dbasic.rb512 file_descriptor = TestMessage.descriptor.file_descriptor
513 assert nil != file_descriptor
514 assert_equal "tests/basic_test.proto", file_descriptor.name
515 assert_equal :proto3, file_descriptor.syntax
517 file_descriptor = TestEnum.descriptor.file_descriptor
518 assert nil != file_descriptor
519 assert_equal "tests/basic_test.proto", file_descriptor.name
520 assert_equal :proto3, file_descriptor.syntax
/third_party/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc85 FileInputStream::FileInputStream(int file_descriptor, int block_size) in FileInputStream() argument
86 : copying_input_(file_descriptor), impl_(&copying_input_, block_size) {} in FileInputStream()
101 int file_descriptor) in CopyingFileInputStream() argument
102 : file_(file_descriptor), in CopyingFileInputStream()
167 FileOutputStream::FileOutputStream(int file_descriptor, int block_size) in FileOutputStream() argument
168 : copying_output_(file_descriptor), impl_(&copying_output_, block_size) {} in FileOutputStream()
188 int file_descriptor) in CopyingFileOutputStream() argument
189 : file_(file_descriptor), in CopyingFileOutputStream()
Dzero_copy_stream_impl.h72 explicit FileInputStream(int file_descriptor, int block_size = -1);
101 CopyingFileInputStream(int file_descriptor);
149 explicit FileOutputStream(int file_descriptor, int block_size = -1);
183 CopyingFileOutputStream(int file_descriptor);
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_pool.cc266 const FileDescriptor* file_descriptor = in FindFileByName() local
269 if (file_descriptor == NULL) { in FindFileByName()
272 return PyFileDescriptor_FromDescriptor(file_descriptor); in FindFileByName()
407 const FileDescriptor* file_descriptor = in FindFileContainingSymbol() local
410 if (file_descriptor == NULL) { in FindFileContainingSymbol()
417 return PyFileDescriptor_FromDescriptor(file_descriptor); in FindFileContainingSymbol()
487 const FileDescriptor* file_descriptor = in AddFileDescriptor() local
489 if (!file_descriptor) { in AddFileDescriptor()
492 if (file_descriptor != in AddFileDescriptor()
494 file_descriptor->name())) { in AddFileDescriptor()
[all …]
Ddescriptor.h67 const FileDescriptor* file_descriptor);
77 const FileDescriptor* file_descriptor, PyObject* serialized_pb);
/third_party/protobuf/python/google/protobuf/
Ddescriptor_pool.py745 file_descriptor = descriptor.FileDescriptor(
770 message_type, file_proto.package, file_descriptor, scope,
772 file_descriptor.message_types_by_name[message_desc.name] = (
776 file_descriptor.enum_types_by_name[enum_type.name] = (
778 file_descriptor, None, scope, True))
782 extension_proto, file_proto.package, index, file_descriptor,
785 file_descriptor.package, extension_proto.extendee, scope)
787 file_descriptor.package, scope)
788 file_descriptor.extensions_by_name[extension_desc.name] = (
791 file_descriptor)
[all …]
Dsymbol_database.py122 def RegisterFileDescriptor(self, file_descriptor): argument
130 self.pool._InternalAddFileDescriptor(file_descriptor)
/third_party/protobuf/src/google/protobuf/
Dmessage_lite.cc276 bool MessageLite::ParseFromFileDescriptor(int file_descriptor) { in ParseFromFileDescriptor() argument
277 io::FileInputStream input(file_descriptor); in ParseFromFileDescriptor()
281 bool MessageLite::ParsePartialFromFileDescriptor(int file_descriptor) { in ParsePartialFromFileDescriptor() argument
282 io::FileInputStream input(file_descriptor); in ParsePartialFromFileDescriptor()
425 bool MessageLite::SerializeToFileDescriptor(int file_descriptor) const { in SerializeToFileDescriptor()
426 io::FileOutputStream output(file_descriptor); in SerializeToFileDescriptor()
430 bool MessageLite::SerializePartialToFileDescriptor(int file_descriptor) const { in SerializePartialToFileDescriptor()
431 io::FileOutputStream output(file_descriptor); in SerializePartialToFileDescriptor()
/third_party/grpc/src/core/lib/security/security_connector/
Dload_system_roots_linux.cc128 int file_descriptor = open(roots_filenames[i].path, O_RDONLY); in CreateRootCertsBundle() local
129 if (file_descriptor != -1) { in CreateRootCertsBundle()
133 read(file_descriptor, bundle_string + bytes_read, cert_file_size); in CreateRootCertsBundle()
/third_party/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py417 def _CheckDefaultValue(file_descriptor): argument
418 default_value = (file_descriptor
427 file_descriptor = symbol_database.Default().pool.FindFileByName(
429 self.assertIs(file_descriptor, descriptor_pool_test1_pb2.DESCRIPTOR)
430 _CheckDefaultValue(file_descriptor)
443 file_descriptor = self.pool.FindFileByName(
445 _CheckDefaultValue(file_descriptor)
530 file_descriptor = unittest_pb2.DESCRIPTOR
532 file_descriptor.message_types_by_name['TestAllTypes'])
534 file_descriptor.enum_types_by_name['ForeignEnum'])
[all …]
/third_party/protobuf/src/google/protobuf/util/
Ddelimited_message_util.cc42 int file_descriptor) { in SerializeDelimitedToFileDescriptor() argument
43 io::FileOutputStream output(file_descriptor); in SerializeDelimitedToFileDescriptor()
/third_party/protobuf/src/google/protobuf/compiler/
Dimporter.cc502 int file_descriptor; in OpenDiskFile() local
504 file_descriptor = open(filename.c_str(), O_RDONLY); in OpenDiskFile()
505 } while (file_descriptor < 0 && errno == EINTR); in OpenDiskFile()
506 if (file_descriptor >= 0) { in OpenDiskFile()
507 io::FileInputStream* result = new io::FileInputStream(file_descriptor); in OpenDiskFile()

123