Lines Matching defs:srcpath
13 static int file_copy_to_tmp(const char *srcpath, const char *tmppath,
25 if (link(srcpath, tmppath) == 0)
30 if (link(srcpath, tmppath) == 0)
36 i_error("link(%s, %s) failed: %m", srcpath, tmppath);
43 fd_in = open(srcpath, O_RDONLY);
47 i_error("open(%s) failed: %m", srcpath);
52 i_error("fstat(%s) failed: %m", srcpath);
81 i_error("read(%s) failed: %s", srcpath,
94 i_error("close(%s) failed: %m", srcpath);
104 int file_copy(const char *srcpath, const char *destpath, bool try_hardlink)
113 ret = file_copy_to_tmp(srcpath, tmppath, try_hardlink);