| /netbsd-src/usr.sbin/repquota/ |
| H A D | repquota.c | 226 repquota(struct quotahandle *qh, int idtype) in repquota() argument 239 if (idtype == QUOTA_IDTYPE_USER) { in repquota() 242 if (idtype == QUOTA_IDTYPE_GROUP) { in repquota() 246 valid[idtype] = 0; in repquota() 251 if (qk.qk_idtype != idtype) { in repquota() 255 valid[idtype] = 1; in repquota() 257 qvp = defaultqv[idtype]; in repquota() 259 if ((fup = lookup(qk.qk_id, idtype)) == 0) in repquota() 260 fup = addid(qk.qk_id, idtype, (char *)0); in repquota() 270 if (xflag == 0 && valid[idtype]) in repquota() [all …]
|
| /netbsd-src/usr.sbin/edquota/ |
| H A D | edquota.c | 134 getidbyname(const char *name, int idtype) in getidbyname() argument 141 switch (idtype) { in getidbyname() 153 warnx("%d: unknown quota type", idtype); in getidbyname() 305 putprivs1(uint32_t id, int idtype, struct quotause *qup) 329 getprivs1(long id, int idtype, const char *filesys) 355 quota_idtype_to_ufs(idtype))) 407 dogetprivs2(struct quotahandle *qh, int idtype, id_t id, int defaultq, in dogetprivs2() argument 412 qk.qk_idtype = idtype; in dogetprivs2() 443 getprivs2(long id, int idtype, const char *filesys, int defaultq, in getprivs2() argument 478 idtypename = quota_idtype_getname(qh, idtype); in getprivs2() [all …]
|
| /netbsd-src/sys/compat/common/ |
| H A D | compat_50_quota.c | 70 int idtype; in compat_50_sys_quotactl() local 85 idtype = quota_idtype_from_ufs(q1cmd & SUBCMDMASK); in compat_50_sys_quotactl() 86 if (idtype == -1) { in compat_50_sys_quotactl() 99 error = vfs_quotactl_quotaon(mp, idtype, qfile); in compat_50_sys_quotactl() 105 error = vfs_quotactl_quotaoff(mp, idtype); in compat_50_sys_quotactl() 109 key.qk_idtype = idtype; in compat_50_sys_quotactl() 135 key.qk_idtype = idtype; in compat_50_sys_quotactl() 155 (void)idtype; /* not used */ in compat_50_sys_quotactl()
|
| /netbsd-src/lib/libquota/ |
| H A D | quotapvt.h | 60 const char *__quota_kernel_idtype_getname(struct quotahandle *, int idtype); 64 int __quota_kernel_quotaon(struct quotahandle *, int idtype); 65 int __quota_kernel_quotaoff(struct quotahandle *, int idtype); 76 int idtype); 99 const char *__quota_oldfiles_getquotafile(struct quotahandle *, int idtype, 101 int __quota_oldfiles_quotaon(struct quotahandle *, int idtype); 111 int idtype);
|
| H A D | quota_kernel.c | 94 __quota_kernel_idtype_getname(struct quotahandle *qh, int idtype) in __quota_kernel_idtype_getname() argument 100 args.u.idtypestat.qc_idtype = idtype; in __quota_kernel_idtype_getname() 150 __quota_kernel_quotaon(struct quotahandle *qh, int idtype) in __quota_kernel_quotaon() argument 168 file = __quota_oldfiles_getquotafile(qh, idtype, path, sizeof(path)); in __quota_kernel_quotaon() 179 args.u.quotaon.qc_idtype = idtype; in __quota_kernel_quotaon() 185 __quota_kernel_quotaoff(struct quotahandle *qh, int idtype) in __quota_kernel_quotaoff() argument 190 args.u.quotaoff.qc_idtype = idtype; in __quota_kernel_quotaoff() 269 int idtype) in __quota_kernel_cursor_skipidtype() argument 275 args.u.cursorskipidtype.qc_idtype = idtype; in __quota_kernel_cursor_skipidtype()
|
| H A D | quota_open.c | 158 quota_quotaon(struct quotahandle *qh, int idtype) in quota_quotaon() argument 165 return __quota_oldfiles_quotaon(qh, idtype); in quota_quotaon() 167 return __quota_kernel_quotaon(qh, idtype); in quota_quotaon() 176 quota_quotaoff(struct quotahandle *qh, int idtype) in quota_quotaoff() argument 187 return __quota_kernel_quotaoff(qh, idtype); in quota_quotaoff()
|
| H A D | quota_schema.c | 110 quota_idtype_getname(struct quotahandle *qh, int idtype) in quota_idtype_getname() argument 114 return __quota_kernel_idtype_getname(qh, idtype); in quota_idtype_getname() 121 switch (idtype) { in quota_idtype_getname()
|
| H A D | quota_oldfiles.c | 251 __quota_oldfiles_defquotafile(struct quotahandle *qh, int idtype, in __quota_oldfiles_defquotafile() argument 258 QUOTAFILENAME, names[idtype]); in __quota_oldfiles_defquotafile() 262 __quota_oldfiles_getquotafile(struct quotahandle *qh, int idtype, in __quota_oldfiles_getquotafile() argument 274 switch (idtype) { in __quota_oldfiles_getquotafile() 295 __quota_oldfiles_defquotafile(qh, idtype, buf, maxlen); in __quota_oldfiles_getquotafile() 441 __quota_oldfiles_quotaon(struct quotahandle *qh, int idtype) in __quota_oldfiles_quotaon() argument 465 result = __quota_kernel_quotaon(qh, idtype); in __quota_oldfiles_quotaon() 761 int idtype) in __quota_oldfiles_cursor_skipidtype() argument 763 switch (idtype) { in __quota_oldfiles_cursor_skipidtype()
|
| H A D | quota_cursor.c | 120 quotacursor_skipidtype(struct quotacursor *qc, int idtype) in quotacursor_skipidtype() argument 125 idtype); in quotacursor_skipidtype() 129 idtype); in quotacursor_skipidtype()
|
| /netbsd-src/sys/kern/ |
| H A D | vfs_quotactl.c | 48 vfs_quotactl_idtypestat(struct mount *mp, int idtype, in vfs_quotactl_idtypestat() argument 54 args.u.idtypestat.qc_idtype = idtype; in vfs_quotactl_idtypestat() 127 int idtype) in vfs_quotactl_cursorskipidtype() argument 133 args.u.cursorskipidtype.qc_idtype = idtype; in vfs_quotactl_cursorskipidtype() 176 vfs_quotactl_quotaon(struct mount *mp, int idtype, const char *path) in vfs_quotactl_quotaon() argument 181 args.u.quotaon.qc_idtype = idtype; in vfs_quotactl_quotaon() 187 vfs_quotactl_quotaoff(struct mount *mp, int idtype) in vfs_quotactl_quotaoff() argument 192 args.u.quotaoff.qc_idtype = idtype; in vfs_quotactl_quotaoff()
|
| H A D | kern_exit.c | 660 do_sys_waitid(idtype_t idtype, id_t id, int *pid, int *status, int options, in do_sys_waitid() argument 673 error = find_stopped_child(curproc, idtype, id, options, &child, in do_sys_waitid() 704 idtype_t idtype; in do_sys_wait() local 715 idtype = P_ALL; in do_sys_wait() 718 idtype = P_PGID; in do_sys_wait() 721 idtype = P_PID; in do_sys_wait() 725 ret = do_sys_waitid(idtype, id, pid, status, options, ru ? &wru : NULL, in do_sys_wait() 774 idtype_t idtype; in sys_wait6() local 779 idtype = SCARG(uap, idtype); in sys_wait6() 796 error = do_sys_waitid(idtype, id, &pid, &status, SCARG(uap, options), in sys_wait6() [all …]
|
| /netbsd-src/sys/ufs/ufs/ |
| H A D | ufs_quota2.c | 685 int idtype; in quota2_handle_cmd_del() local 696 idtype = qk->qk_idtype; in quota2_handle_cmd_del() 700 if (ump->um_quotas[idtype] == NULLVP) in quota2_handle_cmd_del() 707 error = getq2h(ump, idtype, &hbp, &q2h, 0); in quota2_handle_cmd_del() 717 error = dqget(NULLVP, id, ump, idtype, &dq); in quota2_handle_cmd_del() 731 error = getq2e(ump, idtype, dq->dq2_lblkno, dq->dq2_blkoff, in quota2_handle_cmd_del() 772 error = getq2h(ump, idtype, &hbp, &q2h, 0); in quota2_handle_cmd_del() 780 error = quota2_walk_list(ump, hbp, idtype, in quota2_handle_cmd_del() 960 int idtype; member 1073 q2cursor_addid(struct q2cursor_state *state, int idtype, id_t id) in q2cursor_addid() argument [all …]
|
| H A D | quota.h | 68 quota_idtype_to_ufs(int idtype) in quota_idtype_to_ufs() argument 70 switch (idtype) { in quota_idtype_to_ufs()
|
| H A D | ufs_quota.c | 269 int idtype; in quota_handle_cmd_idtypestat() local 274 idtype = args->u.idtypestat.qc_idtype; in quota_handle_cmd_idtypestat() 283 switch (idtype) { in quota_handle_cmd_idtypestat() 567 int idtype = args->u.cursorskipidtype.qc_idtype; in quota_handle_cmd_cursorskipidtype() local 575 error = quota2_handle_cmd_cursorskipidtype(ump, cursor, idtype); in quota_handle_cmd_cursorskipidtype() 646 int idtype = args->u.quotaon.qc_idtype; in quota_handle_cmd_quotaon() local 648 error = quota1_handle_cmd_quotaon(l, ump, idtype, qfile); in quota_handle_cmd_quotaon() 674 int idtype = args->u.quotaoff.qc_idtype; in quota_handle_cmd_quotaoff() local 675 error = quota1_handle_cmd_quotaoff(l, ump, idtype); in quota_handle_cmd_quotaoff()
|
| /netbsd-src/usr.bin/quota/ |
| H A D | quota.c | 320 showquotas(int idtype, const char *idtypename, id_t id, const char *idname) in showquotas() argument 327 quplist = getprivs(id, idtype); in showquotas() 329 showonequota(idtype, idtypename, id, idname, qup); in showquotas() 333 heading(idtype, idtypename, id, idname, "none"); in showquotas() 338 showonequota(int idtype, const char *idtypename, id_t id, const char *idname, in showonequota() argument 363 heading(idtype, idtypename, id, idname, ""); in showonequota() 391 heading(idtype, idtypename, id, idname, ""); in showonequota() 408 heading(int idtype, const char *idtypename, id_t id, const char *idname, in heading() argument 479 getprivs(id_t id, int idtype) in getprivs() argument 510 qk.qk_idtype = idtype; in getprivs()
|
| /netbsd-src/sys/ufs/lfs/ |
| H A D | ulfs_quota2.c | 683 int idtype; in lfsquota2_handle_cmd_del() local 694 idtype = qk->qk_idtype; in lfsquota2_handle_cmd_del() 698 if (ump->um_quotas[idtype] == NULLVP) in lfsquota2_handle_cmd_del() 705 error = getq2h(ump, idtype, &hbp, &q2h, 0); in lfsquota2_handle_cmd_del() 715 error = lfs_dqget(NULLVP, id, ump, idtype, &dq); in lfsquota2_handle_cmd_del() 726 error = getq2e(ump, idtype, dq->dq2_lblkno, dq->dq2_blkoff, in lfsquota2_handle_cmd_del() 767 error = getq2h(ump, idtype, &hbp, &q2h, 0); in lfsquota2_handle_cmd_del() 775 error = quota2_walk_list(ump, hbp, idtype, in lfsquota2_handle_cmd_del() 956 int idtype; member 1069 q2cursor_addid(struct q2cursor_state *state, int idtype, id_t id) in q2cursor_addid() argument [all …]
|
| H A D | ulfs_quotacommon.h | 61 quota_idtype_to_ulfs(int idtype) in quota_idtype_to_ulfs() argument 63 switch (idtype) { in quota_idtype_to_ulfs()
|
| H A D | ulfs_quota.c | 272 int idtype; in quota_handle_cmd_idtypestat() local 277 idtype = args->u.idtypestat.qc_idtype; in quota_handle_cmd_idtypestat() 286 switch (idtype) { in quota_handle_cmd_idtypestat() 586 int idtype = args->u.cursorskipidtype.qc_idtype; in quota_handle_cmd_cursorskipidtype() local 587 error = lfsquota2_handle_cmd_cursorskipidtype(ump, cursor, idtype); in quota_handle_cmd_cursorskipidtype() 661 int idtype = args->u.quotaon.qc_idtype; in quota_handle_cmd_quotaon() local 663 error = lfsquota1_handle_cmd_quotaon(l, ump, idtype, qfile); in quota_handle_cmd_quotaon() 690 int idtype = args->u.quotaoff.qc_idtype; in quota_handle_cmd_quotaoff() local 691 error = lfsquota1_handle_cmd_quotaoff(l, ump, idtype); in quota_handle_cmd_quotaoff()
|
| /netbsd-src/usr.sbin/quotaon/ |
| H A D | quotaon.c | 216 quotaonoff(struct fstab *fs, struct quotahandle *qh, int offmode, int idtype, in quotaonoff() argument 227 type = quota_idtype_getname(qh, idtype); in quotaonoff() 228 if (quota_quotaoff(qh, idtype)) { in quotaonoff() 235 if (quota_quotaon(qh, idtype)) { in quotaonoff() 241 type = quota_idtype_getname(qh, idtype); in quotaonoff()
|
| /netbsd-src/lib/librt/ |
| H A D | pset.c | 44 pset_bind(psetid_t psid, idtype_t idtype, id_t id, psetid_t *opsid) in pset_bind() argument 47 return _pset_bind(idtype, id, P_ALL_LWPS, psid, opsid); in pset_bind()
|
| /netbsd-src/lib/libc/gen/ |
| H A D | waitid.c | 48 waitid(idtype_t idtype, id_t id, siginfo_t *info, int flags) in __weak_alias() 52 switch (wait6(idtype, id, &status, flags, NULL, info)) { in __weak_alias()
|
| /netbsd-src/sys/compat/netbsd32/ |
| H A D | netbsd32_wait.c | 93 idtype_t idtype = SCARG(uap, idtype); in netbsd32_wait6() local 114 int error = do_sys_waitid(idtype, id, &pid, &status, in netbsd32_wait6()
|
| /netbsd-src/libexec/rpc.rquotad/ |
| H A D | rquotad.c | 219 int idtype; in sendquota() local 244 idtype = QUOTA_IDTYPE_USER; in sendquota() 247 idtype = QUOTA_IDTYPE_GROUP; in sendquota() 279 qk.qk_idtype = idtype; in sendquota()
|
| /netbsd-src/crypto/dist/ipsec-tools/src/racoon/ |
| H A D | localconf.c | 329 doi2idtype(idtype) 330 int idtype; 332 if (ARRAYLEN(lc_doi2idtype) > idtype) 333 return lc_doi2idtype[idtype];
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/ |
| H A D | archive_disk_acl_darwin.c | 98 int r, idtype; in translate_guid() local 103 r = mbr_uuid_to_id((const unsigned char *)q, &ugid, &idtype); in translate_guid() 108 if (idtype == ID_TYPE_UID) { in translate_guid() 112 } else if (idtype == ID_TYPE_GID) { in translate_guid()
|