/usr/include/usbprog/util.h is in libusbprog-dev 0.2.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /*
* (c) 2007-2010, Bernhard Walle <bernhard@bwalle.de>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef USBPROG_UTIL_H
#define USBPROG_UTIL_H
#include <usbprog/date.h>
class Fileutil {
public:
static std::string homeDir();
static std::string configDir(const std::string &program);
static bool mkdir(const std::string &dir);
static bool isDir(const std::string &dir);
static bool isFile(const std::string &dir);
static bool isPathName(const std::string &dir);
static std::string resolvePath(const std::string &path);
static DateTime getMTime(const std::string &file)
throw (IOError);
};
std::string pathconcat(const std::string &a, const std::string &b);
void usbprog_sleep(unsigned int seconds);
void usbprog_msleep(unsigned int msec);
#endif /* USBPROG_UTIL_H */
// vim: set sw=4 ts=4 et: :collapseFolds=1:
|