Lines Matching defs:srcPath
355 char srcPath[PATH_MAX];
378 len = snprintf(srcPath, sizeof (srcPath), "%s/%s",
380 if (len > sizeof (srcPath)) {
390 if (len > sizeof (srcPath)) {
400 if (len > sizeof (srcPath)) {
408 srcFP = fopen(srcPath, "r+");
410 srcFP = fopen(srcPath, "w+");
416 progerr(ERR_PKGOPS_OPEN_GZONLY, srcPath, strerror(errno));
494 if (link(srcPath, savePath) != 0) {
495 progerr(ERR_LINK, savePath, srcPath, strerror(errno));
500 if (rename(destPath, srcPath) != 0) {
501 progerr(ERR_RENAME, destPath, srcPath, strerror(errno));
502 if (rename(savePath, srcPath)) {
503 progerr(ERR_RENAME, savePath, srcPath, strerror(errno));
544 char srcPath[PATH_MAX];
571 len = snprintf(srcPath, sizeof (srcPath), "%s/%s",
573 if (len > sizeof (srcPath)) {
583 if (len > sizeof (srcPath)) {
593 if (len > sizeof (srcPath)) {
601 srcFP = fopen(srcPath, "r+");
603 srcFP = fopen(srcPath, "w+");
609 progerr(ERR_PKGOPS_OPEN_GZONLY, srcPath, strerror(errno));
687 if (link(srcPath, savePath) != 0) {
688 progerr(ERR_LINK, savePath, srcPath, strerror(errno));
693 if (rename(destPath, srcPath) != 0) {
694 progerr(ERR_RENAME, destPath, srcPath, strerror(errno));
695 if (rename(savePath, srcPath)) {
696 progerr(ERR_RENAME, savePath, srcPath, strerror(errno));