Lines Matching defs:ofname
196 static char ofname [MAXPATHLEN];
648 if (strlcpy(ofname, *fileptr,
649 sizeof (ofname)) >=
650 sizeof (ofname)) {
661 ofname[strlen(*fileptr) - 2] = '\0';
734 if (strlcpy(ofname, *fileptr,
735 sizeof (ofname)) >=
736 sizeof (ofname)) {
745 if (addDotZ(ofname,
746 sizeof (ofname)) < 0) {
757 if (stat(ofname, &ostatbuf) == 0) {
759 "%s already exists;"), ofname);
766 ofname, yesstr, nostr);
798 if ((pathconf(ofname, _PC_XATTR_EXISTS) == 1) ||
799 (saflg && sysattr_support(ofname,
801 (void) unlink(ofname);
804 if (freopen(ofname, "w", outp) == NULL) {
805 perror(ofname);
869 perror(ofname);
873 if (ofname[0] != '\0') {
874 if (unlink(ofname) < 0) {
875 perror(ofname);
878 ofname[0] = '\0';
889 copystat(*fileptr, &statbuf, ofname);
1579 copystat(char *ifname, struct stat *ifstat, char *ofname)
1594 perror(ofname);
1629 (mv_xattrs(progname, ifname, ofname, sattr_exist, 0)
1638 if (pathconf(ofname, _PC_XATTR_EXISTS) == 1)
1640 if (saflg && sysattr_support(ofname, _PC_SATTR_EXISTS) == 1)
1643 (void) mv_xattrs(progname, ofname, ifname,
1648 if (chmod(ofname, mode)) { /* Copy modes */
1652 "- permisssion denied\n"), ofname);
1654 perror(ofname);
1663 if (aclp && (acl_set(ofname, aclp) < 0)) {
1666 "entries\n"), ofname);
1675 (void) chown(ofname, ifstat->st_uid, ifstat->st_gid);
1679 (void) utime(ofname, &timep);
1690 " -- replaced with %s"), ofname);
1697 if (ofname[0] != '\0') {
1698 if (unlink(ofname)) {
1704 perror(ofname);
1707 ofname[0] = '\0';
1714 if (!precious && !use_stdout && ofname[0] != '\0')
1715 (void) unlink(ofname);
1726 if (!use_stdout && ofname[0] != '\0') {
1727 (void) unlink(ofname);