/* @(#)putdiscq.c 4.2 (Melbourne) 82/07/17 */
register struct dquot
*dq
;
register char (*dqf
)[32];
while (++cnt
<= 16 && **dqf
) {
if (stat(file
, &sb
) < 0 || (fd
= open(file
, 1)) < 0)
lseek(fd
, (long)uid
* (long)sizeof(struct dqblk
), 0);
if (write(fd
, &dq
->dq_dqb
, sizeof(struct dqblk
)) !=
quota(Q_SETDLIM
, uid
, sb
.st_dev
, &dq
->dq_dqb
);