Lines Matching refs:filename
93 static int rpm_gettags(const char *filename) in rpm_gettags() argument
100 if (!filename) { /* rpm2cpio w/o filename? */ in rpm_gettags()
101 filename = bb_msg_standard_output; in rpm_gettags()
104 fd = xopen(filename, O_RDONLY); in rpm_gettags()
118 bb_error_msg_and_die("invalid RPM header magic in '%s'", filename); in rpm_gettags()
152 bb_perror_msg_and_die("mmap '%s'", filename); in rpm_gettags()
225 static void fileaction_dobackup(char *filename, int fileref) in fileaction_dobackup() argument
232 stat_res = lstat(filename, &oldfile); in fileaction_dobackup()
235 newname = xasprintf("%s.rpmorig", filename); in fileaction_dobackup()
236 copy_file(filename, newname, FILEUTILS_RECUR | FILEUTILS_PRESERVE_STATUS); in fileaction_dobackup()
237 remove_file(filename, FILEUTILS_RECUR | FILEUTILS_FORCE); in fileaction_dobackup()
243 static void fileaction_setowngrp(char *filename, int fileref) in fileaction_setowngrp() argument
250 chown(filename, uid, gid); in fileaction_setowngrp()
253 static void loop_through_files(int filetag, void (*fileaction)(char *filename, int fileref)) in loop_through_files() argument
257 char* filename = xasprintf("%s%s", in loop_through_files() local
260 fileaction(filename, count++); in loop_through_files()
261 free(filename); in loop_through_files()