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

/freebsd-9.3-release/lib/libutil/
H A Dquotafile.c506 struct quotafile *newqf; local
526 if ((newqf = calloc(1, sizeof(*qf))) == NULL) {
530 *newqf = *qf;
531 snprintf(newqf->qfname, MAXPATHLEN + 1, "%s_%d.orig", qf->qfname,
533 if (rename(qf->qfname, newqf->qfname) < 0) {
534 free(newqf);
537 if ((newqf->fd = open(qf->qfname, O_RDWR|O_CREAT|O_TRUNC, 0)) < 0) {
541 newqf->wordsize = wordsize;
548 if (write(newqf->fd, &dqh, sizeof(dqh)) != sizeof(dqh)) {
554 fchown(newqf
[all...]
/freebsd-9.3-release/contrib/sendmail/src/
H A Dqueue.c8518 char newqf[MAXPATHLEN]; local
8728 (void) sm_strlcpy(newqf, oldqf, sizeof(newqf));
8733 (void) sm_strlcpy(newqf, queuename(e, newtype), sizeof(newqf));
8738 /* rename tempqf to newqf */
8740 rename(tempqf, newqf) < 0)
8748 tempqf, newqf, sm_errstring(save_errno));
8752 tempqf, newqf,
8770 if (xunlink(newqf) <
[all...]

Completed in 108 milliseconds