Lines Matching full:cap

459 login_getcapstr(login_cap_t *lc, const char *cap, const char *def, const char *error)  in login_getcapstr()  argument
464 if (lc == NULL || cap == NULL || lc->lc_cap == NULL || *cap == '\0') in login_getcapstr()
467 if ((ret = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapstr()
481 login_getcaplist(login_cap_t *lc, const char *cap, const char *chars) in login_getcaplist() argument
487 if ((lstring = login_getcapstr(lc, cap, NULL, NULL)) != NULL) in login_getcaplist()
495 * From the login_cap_t <lc>, get the capability <cap> which is
502 login_getpath(login_cap_t *lc, const char *cap, const char *error) in login_getpath() argument
508 str = login_getcapstr(lc, cap, NULL, NULL); in login_getpath()
627 * From the login_cap_t <lc>, get the capability <cap>, which is
628 * formatted as a time (e.g., "<cap>=10h3m2s"). If <cap> is not
634 login_getcaptime(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) in login_getcaptime() argument
645 * Look for <cap> in lc_cap. in login_getcaptime()
650 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcaptime()
674 lc->lc_class, cap, oval); in login_getcaptime()
715 * From the login_cap_t <lc>, extract the numerical value <cap>.
723 login_getcapnum(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) in login_getcapnum() argument
735 r = cgetstr(lc->lc_cap, cap, &res); in login_getcapnum()
739 if ((r = cgetnum(lc->lc_cap, cap, &lval)) == -1) in login_getcapnum()
755 lc->lc_class, cap, res); in login_getcapnum()
773 * -4: 'lc' or 'cap' insufficiently initialized or not valid.
779 login_getcapenum(login_cap_t *lc, const char *cap, const char * const *values) in login_getcapenum() argument
785 if (lc == NULL || lc->lc_cap == NULL || cap == NULL || *cap == '\0') in login_getcapenum()
788 ret = cgetstr(lc->lc_cap, cap, &cand); in login_getcapenum()
791 /* Cap not found. */ in login_getcapenum()
813 * From the login_cap_t <lc>, extract the capability <cap>, which is
814 * formatted as a size (e.g., "<cap>=10M"); it can also be "infinity".
820 login_getcapsize(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) in login_getcapsize() argument
829 if ((r = cgetstr(lc->lc_cap, cap, &res)) == -1) in login_getcapsize()
847 lc->lc_class, cap, oval); in login_getcapsize()
886 * of <cap>. Return <def> if <lc>->lc_cap is NULL, otherwise return
887 * the whether or not <cap> exists there.
891 login_getcapbool(login_cap_t *lc, const char *cap, int def) in login_getcapbool() argument
895 return (cgetcap(lc->lc_cap, cap, ':') != NULL); in login_getcapbool()