file.h 472 B

12345678910111213141516171819202122
  1. /** @file file.h
  2. * @brief Public interface to work with files.
  3. */
  4. #ifndef _faux_file_h
  5. #define _faux_file_h
  6. #include "faux/faux.h"
  7. typedef struct faux_file_s faux_file_t;
  8. C_DECL_BEGIN
  9. faux_file_t *faux_file_fdopen(int fd);
  10. faux_file_t *faux_file_open(const char *pathname, int flags, mode_t mode);
  11. int faux_file_close(faux_file_t *file);
  12. int faux_file_fileno(faux_file_t *file);
  13. char *faux_file_getline(faux_file_t *file);
  14. C_DECL_END
  15. #endif /* _faux_file_h */