Apache Mesos
io_internal.hpp
Go to the documentation of this file.
1 // Licensed under the Apache License, Version 2.0 (the "License");
2 // you may not use this file except in compliance with the License.
3 // You may obtain a copy of the License at
4 //
5 // http://www.apache.org/licenses/LICENSE-2.0
6 //
7 // Unless required by applicable law or agreed to in writing, software
8 // distributed under the License is distributed on an "AS IS" BASIS,
9 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 // See the License for the specific language governing permissions and
11 // limitations under the License
12 
13 #ifndef __IO_INTERNAL_HPP__
14 #define __IO_INTERNAL_HPP__
15 
16 #include <process/future.hpp>
17 
18 #include <stout/os/int_fd.hpp>
19 
20 namespace process {
21 namespace io {
22 namespace internal {
23 
24 Future<size_t> read(int_fd fd, void* data, size_t size);
25 
26 Future<size_t> write(int_fd fd, const void* data, size_t size);
27 
29 
31 
32 } // namespace internal {
33 } // namespace io {
34 } // namespace process {
35 
36 #endif // __IO_INTERNAL_HPP__
Try< bool > is_async(int_fd fd)
Try< Bytes > size(const std::string &path, const FollowSymlink follow=FollowSymlink::FOLLOW_SYMLINK)
Definition: stat.hpp:130
Definition: check.hpp:33
Future< size_t > write(int_fd fd, const void *data, size_t size)
Definition: attributes.hpp:24
Definition: executor.hpp:48
Try< Nothing > prepare_async(int_fd fd)
Future< size_t > read(int_fd fd, void *data, size_t size)
int int_fd
Definition: int_fd.hpp:35