]> cygwin.com Git - cygwin-apps/setup.git/blame_incremental - filemanip.h
Added dpiAwareness element to manifest
[cygwin-apps/setup.git] / filemanip.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 2000, Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Christopher Faylor <cgf@cygnus.com>
13 *
14 */
15
16#ifndef SETUP_FILEMANIP_H
17#define SETUP_FILEMANIP_H
18
19#include <sys/types.h>
20#include <string>
21
22extern int find_tar_ext (const char *path);
23
24struct fileparse
25{
26 std::string pkg;
27 std::string ver;
28 std::string tail;
29 std::string what;
30};
31
32int parse_filename (const std::string& fn, fileparse & f);
33size_t get_file_size (const std::string& );
34std::string backslash (const std::string& s);
35const char * trail (const char *, const char *);
36int mklongpath (wchar_t *tgt, const char *src, size_t len);
37int mklongrelpath (wchar_t *tgt, const char *src, size_t len);
38FILE *nt_wfopen (const wchar_t *wpath, const char *mode, mode_t perms);
39FILE *nt_fopen (const char *path, const char *mode, mode_t perms = 0644);
40
41#endif /* SETUP_FILEMANIP_H */
This page took 0.028718 seconds and 6 git commands to generate.