Searched refs:dqhdr (Results 1 - 4 of 4) sorted by relevance
/macosx-10.9.5/diskdev_cmds-572.1.1/edquota.tproj/ |
H A D | edquota.c | 500 struct dqfilehdr dqhdr = {0}; local 538 dqhdr.dqh_magic = OSSwapHostToBigInt32(quotamagic[type]); 539 dqhdr.dqh_version = OSSwapHostToBigConstInt32(QF_VERSION); 540 dqhdr.dqh_maxentries = OSSwapHostToBigInt32((int32_t)max); 541 dqhdr.dqh_btime = OSSwapHostToBigConstInt32(MAX_DQ_TIME); 542 dqhdr.dqh_itime = OSSwapHostToBigConstInt32(MAX_IQ_TIME); 543 memmove(dqhdr.dqh_string, QF_STRING_TAG, strlen(QF_STRING_TAG)); 545 (void) write(fd, &dqhdr, sizeof(dqhdr)); 560 struct dqfilehdr dqhdr; local 668 struct dqfilehdr dqhdr; local [all...] |
/macosx-10.9.5/diskdev_cmds-572.1.1/quotacheck.tproj/ |
H A D | quotacheck.c | 374 struct dqfilehdr dqhdr = {0}; local 410 if (fread((char *)&dqhdr, sizeof(struct dqfilehdr), 1, qfi) > 0) { 412 if (OSSwapBigToHostInt32(dqhdr.dqh_magic) != quotamagic[type] && 413 OSSwapInt32(dqhdr.dqh_magic) == quotamagic[type]) { 422 if ((OSSwapBigToHostInt32(dqhdr.dqh_magic) != quotamagic[type]) || 423 (OSSwapBigToHostInt32(dqhdr.dqh_version) > QF_VERSION) || 424 (!powerof2(OSSwapBigToHostInt32(dqhdr.dqh_maxentries)))) { 432 m = OSSwapBigToHostInt32(dqhdr.dqh_maxentries); 442 dqhdr.dqh_magic = OSSwapHostToBigInt32(quotamagic[type]); 443 dqhdr [all...] |
/macosx-10.9.5/diskdev_cmds-572.1.1/repquota.tproj/ |
H A D | repquota.c | 260 struct dqfilehdr dqhdr; local 291 if (fread((char *)&dqhdr, sizeof(struct dqfilehdr), 1, qf) > 0) { 293 if (OSSwapBigToHostInt32(dqhdr.dqh_magic) != quotamagic[type] && 294 OSSwapInt32(dqhdr.dqh_magic) == quotamagic[type]) { 301 if ((OSSwapBigToHostInt32(dqhdr.dqh_magic) != quotamagic[type]) || 302 (OSSwapBigToHostInt32(dqhdr.dqh_version) > QF_VERSION) || 303 (!powerof2(OSSwapBigToHostInt32(dqhdr.dqh_maxentries)))) { 314 maxentries = OSSwapBigToHostInt32(dqhdr.dqh_maxentries);
|
/macosx-10.9.5/diskdev_cmds-572.1.1/quota.tproj/ |
H A D | quota.c | 714 struct dqfilehdr dqhdr; local 724 if (read(fd, &dqhdr, sizeof(struct dqfilehdr)) != sizeof(struct dqfilehdr)) { 730 if ((OSSwapBigToHostInt32(dqhdr.dqh_magic) != quotamagic[type]) || 731 (OSSwapBigToHostInt32(dqhdr.dqh_version) > QF_VERSION) || 732 (!powerof2(OSSwapBigToHostInt32(dqhdr.dqh_maxentries)))) { 737 m = OSSwapBigToHostInt32(dqhdr.dqh_maxentries);
|
Completed in 216 milliseconds