Searched refs:oldfname (Results 1 - 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/sed/
H A Dmain.c105 static char oldfname[PATH_MAX]; /* Old file name (for in-place editing) */ variable
353 if (*oldfname != '\0') {
355 (void) unlink(oldfname);
360 if ((link(fname, oldfname) != 0) &&
361 (rename(fname, oldfname) != 0)) {
367 *oldfname = '\0';
407 (void) strlcpy(oldfname, fname,
408 sizeof (oldfname));
409 len = strlcat(oldfname, inplace,
410 sizeof (oldfname));
[all...]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_log.c198 char oldfname[PATH_MAX]; local
236 (void) strncpy(oldfname, fname, PATH_MAX);
237 if (stat64(oldfname, &st) == -1) {
243 if (rename(oldfname, fname))
246 oldfname, fname, strerror(errno));

Completed in 81 milliseconds