private.h 306 B

12345678910111213
  1. #include "faux/faux.h"
  2. #include "faux/file.h"
  3. /** @brief Chunk size to allocate buffer */
  4. #define FAUX_FILE_CHUNK_SIZE 128
  5. struct faux_file_s {
  6. int fd; // File descriptor
  7. char *buf; // Data buffer
  8. size_t buf_size; // Current buffer size
  9. size_t len; // Current data length
  10. bool_t eof; // EOF flag
  11. };