]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - filemanip.h
Add command-line option help-text localization
[cygwin-apps/setup.git] / filemanip.h
index 14803ce76df0ee00971e9b5feca92e9aeeb44ce9..e83b8e94ab33de41f4e411ef65b2e0daa64439f9 100644 (file)
  *
  */
 
+#ifndef SETUP_FILEMANIP_H
+#define SETUP_FILEMANIP_H
+
+#include <sys/types.h>
+#include <string>
+
 extern int find_tar_ext (const char *path);
+
+struct fileparse
+{
+  std::string pkg;
+  std::string ver;
+  std::string tail;
+  std::string what;
+};
+
+int parse_filename (const std::string& fn, fileparse & f);
+size_t get_file_size (const std::string& );
+std::string backslash (const std::string& s);
+const char * trail (const char *, const char *);
+int mklongpath (wchar_t *tgt, const char *src, size_t len);
+int mklongrelpath (wchar_t *tgt, const char *src, size_t len);
+FILE *nt_wfopen (const wchar_t *wpath, const char *mode, mode_t perms);
+FILE *nt_fopen (const char *path, const char *mode, mode_t perms = 0644);
+
+#endif /* SETUP_FILEMANIP_H */
This page took 0.022138 seconds and 5 git commands to generate.