Lines Matching refs:newname
1128 * newname the dest mac name
1132 int renamefile(const struct vol *vol, int sdir_fd, char *src, char *dst, char *newname, struct adouble *adp)
1157 if (AFP_OK != ( rc = copyfile(vol, vol, sdir_fd, src, dst, newname, NULL )) ) {
1194 ad_setname(adp, newname);
1216 int copy_path_name(const struct vol *vol, char *newname, char *ibuf)
1233 if ((plen = mtoUTF8(vol, ibuf, plen, newname, AFPOBJ_TMPSIZ)) == (size_t)-1)
1237 strncpy( newname, ibuf, plen );
1238 newname[ plen ] = '\0';
1240 if (strlen(newname) != plen) {
1241 /* there's \0 in newname, e.g. it's a pathname not
1260 strncpy( newname, ibuf, plen );
1261 newname[ plen ] = '\0';
1262 if (strlen(newname) != plen) {
1277 char *newname, *p, *upath;
1332 newname = obj->newtmp;
1333 strcpy( newname, s_path->m_name );
1335 p = ctoupath( s_vol, curdir, newname );
1370 if (copy_path_name(d_vol, newname, ibuf) < 0) {
1374 /* newname is always only a filename so curdir *is* its
1377 if (NULL == (upath = mtoupath(d_vol, newname, curdir->d_did, utf8_encoding()))) {
1382 if ( (err = copyfile(s_vol, d_vol, -1, p, upath , newname, adp)) < 0 ) {
1504 * if newname is NULL (from directory.c) we don't want to copy the resource fork.
1506 * currently if newname is NULL then adp is NULL.
1513 char *newname,
1524 sfd, src, dst, newname);
1532 if (newname) {
1578 if (!ret_err && newname && (adflags & ADFLAGS_HF)) {
1581 ad_setname(&add, newname);