mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
system/helpers: add mkdirhier(); gui/themes: use mkdirhier()
Conflicts:
src/system/helpers.h
Origin commit data
------------------
Commit: 431657e35d
Author: martii <m4rtii@gmx.de>
Date: 2014-01-06 (Mon, 06 Jan 2014)
This commit is contained in:
@@ -34,6 +34,9 @@
|
||||
#include <sys/types.h>
|
||||
#include <map>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
int my_system(const char * cmd);
|
||||
int my_system(int argc, const char *arg, ...); /* argc is number of arguments including command */
|
||||
|
||||
@@ -41,6 +44,8 @@ FILE* my_popen( pid_t& pid, const char *cmdstring, const char *type);
|
||||
|
||||
int safe_mkdir(const char * path);
|
||||
inline int safe_mkdir(std::string path) { return safe_mkdir(path.c_str()); }
|
||||
int mkdirhier(const char *pathname, mode_t mode = 0755);
|
||||
inline int mkdirhier(std::string path, mode_t mode = 0755) { return mkdirhier(path.c_str(), mode); }
|
||||
off_t file_size(const char *filename);
|
||||
bool file_exists(const char *filename);
|
||||
void wakeup_hdd(const char *hdd_dir);
|
||||
|
Reference in New Issue
Block a user