Lines Matching refs:dqblk
72 int getfsquota(int type, int id, char *path, struct dqblk *dqblk);
476 struct dqblk dqblk;
514 ext_getq_args.gqa_pathp, &dqblk)) {
523 (((dqblk.dqb_bhardlimit / bsize) > UINT32_MAX) ||
524 ((dqblk.dqb_bsoftlimit / bsize) > UINT32_MAX) ||
525 ((dqblk.dqb_curbytes / bsize) > UINT32_MAX)))
533 CLAMP_MAX_32(dqblk.dqb_bhardlimit / bsize);
535 CLAMP_MAX_32(dqblk.dqb_bsoftlimit / bsize);
537 CLAMP_MAX_32(dqblk.dqb_curbytes / bsize);
539 CLAMP_MAX_32(dqblk.dqb_ihardlimit);
541 CLAMP_MAX_32(dqblk.dqb_isoftlimit);
543 CLAMP_MAX_32(dqblk.dqb_curinodes);
545 dqblk.dqb_btime - timev.tv_sec;
547 dqblk.dqb_itime - timev.tv_sec;
562 getfsquota(int type, int id, char *path, struct dqblk *dqblk)
574 if (quotactl(path, qcmd, id, (char*)dqblk) == 0) {
605 if (lseek(fd, (off_t)(id * sizeof(struct dqblk)), SEEK_SET)
611 switch (read(fd, dqblk, sizeof(struct dqblk))) {
615 * into an explicit one (zero'ed dqblk)
617 memset((caddr_t) dqblk, 0, sizeof(struct dqblk));
620 case sizeof(struct dqblk): /* OK */