| // Copyright 2016 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| #ifndef LIB_FXL_FILES_FILE_DESCRIPTOR_H_ | |
| #define LIB_FXL_FILES_FILE_DESCRIPTOR_H_ | |
| #include <stdint.h> | |
| #include <unistd.h> | |
| namespace fxl { | |
| bool WriteFileDescriptor(int fd, const char* data, ssize_t size); | |
| ssize_t ReadFileDescriptor(int fd, char* data, ssize_t max_size); | |
| } // namespace fxl | |
| #endif // LIB_FXL_FILES_FILE_DESCRIPTOR_H_ |