libqaeda

Unnamed repository; edit this file 'description' to name the repository.
Info | Log | Files | Refs | README | LICENSE

io.h (702B)


      1 #ifndef LIBQAEDA_IO_H_
      2 #define LIBQAEDA_IO_H_
      3 
      4 #ifndef LQ_PATH_MAX
      5 #define LQ_PATH_MAX 1024
      6 #endif
      7 
      8 #ifndef LQ_DIRS_MAX
      9 #define LQ_DIRS_MAX 1024
     10 #endif
     11 
     12 /**
     13  * @brief Create temporary directory using template.
     14  *
     15  * @param[in] Directory path template
     16  * @return Pointer to valid path string. NULL if directory could not be created.
     17  */
     18 char* mktempdir(char *s);
     19 char* ensuredir(char *s);
     20 int lq_open(const char *pathname, int flags, int mode);
     21 int lq_read(int f, char *buf, int c);
     22 int lq_files(const char *path, char **files, size_t files_len);
     23 int lq_files_pfx(const char *path, char **files, size_t files_len, const char *prefix, size_t prefix_len);
     24 void lq_close(int fd);
     25 
     26 #endif // LIBQAEDA_IO_H_