D | copyfile.c | 14 static int slow_copyfile(const char *from, const char *to, struct nsinfo *nsi) in slow_copyfile() argument 28 to_fp = fopen(to, "w"); in slow_copyfile() 73 static int copyfile_mode_ns(const char *from, const char *to, mode_t mode, in copyfile_mode_ns() argument 90 if (asprintf(&tmp, "%s.XXXXXXx", to) < 0) { in copyfile_mode_ns() 126 err = link(tmp, to); in copyfile_mode_ns() 133 int copyfile_ns(const char *from, const char *to, struct nsinfo *nsi) in copyfile_ns() argument 135 return copyfile_mode_ns(from, to, 0755, nsi); in copyfile_ns() 138 int copyfile_mode(const char *from, const char *to, mode_t mode) in copyfile_mode() argument 140 return copyfile_mode_ns(from, to, mode, NULL); in copyfile_mode() 143 int copyfile(const char *from, const char *to) in copyfile() argument [all …]
|