err(1, tmpfil);
err(1, "%s", tmpfil);
writeprivs(quplist, outfd, name, quotatype)	struct quotause *quplist;	int outfd;	char *name;	int quotatype;{	register struct quotause *qup;	FILE *fd;	ftruncate(outfd, 0);	lseek(outfd, 0, SEEK_SET);	if ((fd = fdopen(dup(outfd), "w")) == NULL)		err(1, tmpfil);	(void)fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name);	for (qup = quplist; qup; qup = qup->next) {		(void)fprintf(fd, "%s: %s %d, limits (soft = %d, hard = %d)\n",		    qup->fsname, "blocks in use:",		    dbtob(qup->dqblk.dqb_curblocks) / 1024,		    dbtob(qup->dqblk.dqb_bsoftlimit) / 1024,		    dbtob(qup->dqblk.dqb_bhardlimit) / 1024);		(void)fprintf(fd, "%s %d, limits (soft = %d, hard = %d)\n",		    "\tinodes in use:", qup->dqblk.dqb_curinodes,		    qup->dqblk.dqb_isoftlimit, qup->dqblk.dqb_ihardlimit);	}	fclose(fd);	return(1);}