Blame view

fileutils.h 1.09 KB
redmine authored
1
/*
redmine authored
2
    clsync - file tree sync utility based on inotify
redmine authored
3
    
redmine authored
4
    Copyright (C) 2013  Dmitry Yu Okunev <dyokunev@ut.mephi.ru> 0x8E30679C
redmine authored
5
    
redmine authored
6 7 8 9
    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 3 of the License, or
    (at your option) any later version.
redmine authored
10
    
redmine authored
11 12 13 14
    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.
redmine authored
15
    
redmine authored
16 17 18 19
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

redmine authored
20
extern char *fd2fpath_malloc(int fd);
redmine authored
21

redmine authored
22 23
extern int fileutils_copy(const char *path_from, const char *path_to);
extern short int fileutils_calcdirlevel(const char *path);
redmine authored
24
extern int mkdirat_open(const char *const dir_path, int dirfd_parent, mode_t dir_mode);
redmine authored
25
extern uint32_t stat_diff(stat64_t *a, stat64_t *b);
redmine authored
26