Home
last modified time | relevance | path

Searched refs:lc (Results 1 – 25 of 184) sorted by relevance

12345678

/freebsd/sys/kern/
H A Dkern_loginclass.c72 loginclass_hold(struct loginclass *lc) in loginclass_hold() argument
75 refcount_acquire(&lc->lc_refcount); in loginclass_hold()
79 loginclass_free(struct loginclass *lc) in loginclass_free() argument
82 if (refcount_release_if_not_last(&lc->lc_refcount)) in loginclass_free()
86 if (!refcount_release(&lc->lc_refcount)) { in loginclass_free()
91 racct_destroy(&lc->lc_racct); in loginclass_free()
92 LIST_REMOVE(lc, lc_next); in loginclass_free()
95 free(lc, M_LOGINCLASS); in loginclass_free()
106 struct loginclass *lc; in loginclass_lookup() local
109 LIST_FOREACH(lc, &loginclasses, lc_next) in loginclass_lookup()
[all …]
H A Dkern_ctf.c44 link_elf_ctf_get(linker_file_t lf, linker_ctf_t *lc) in link_elf_ctf_get() argument
63 if (lf == NULL || lc == NULL) in link_elf_ctf_get()
67 bzero(lc, sizeof(*lc)); in link_elf_ctf_get()
81 lc->ctftab = ef->ctftab; in link_elf_ctf_get()
82 lc->ctfcnt = ef->ctfcnt; in link_elf_ctf_get()
83 lc->symtab = ef->ddbsymtab; in link_elf_ctf_get()
84 lc->strtab = ef->ddbstrtab; in link_elf_ctf_get()
85 lc->strcnt = ef->ddbstrcnt; in link_elf_ctf_get()
86 lc->nsym = ef->ddbsymcnt; in link_elf_ctf_get()
87 lc->ctfoffp = (uint32_t **) &ef->ctfoff; in link_elf_ctf_get()
[all …]
/freebsd/sys/netinet/
H A Dtcp_lro.c83 static void tcp_lro_rx_done(struct lro_ctrl *lc);
84 static int tcp_lro_rx_common(struct lro_ctrl *lc, struct mbuf *m,
86 static void tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le);
92 int (*tcp_lro_flush_tcphpts)(struct lro_ctrl *lc, struct lro_entry *le);
151 tcp_lro_active_insert(struct lro_ctrl *lc, struct lro_head *bucket, in tcp_lro_active_insert() argument
155 LIST_INSERT_HEAD(&lc->lro_active, le, next); in tcp_lro_active_insert()
168 tcp_lro_init(struct lro_ctrl *lc) in tcp_lro_init() argument
170 return (tcp_lro_init_args(lc, NULL, tcp_lro_entries, 0)); in tcp_lro_init()
174 tcp_lro_init_args(struct lro_ctrl *lc, struct ifnet *ifp, in tcp_lro_init_args() argument
181 lc->lro_bad_csum = 0; in tcp_lro_init_args()
[all …]
H A Dtcp_lro_hpts.c155 tcp_lro_log(struct tcpcb *tp, const struct lro_ctrl *lc, in tcp_lro_log() argument
190 bintime2timeval(&lc->lro_last_queue_time, &btv); in tcp_lro_log()
206 tcp_lro_get_last_if_ackcmp(struct lro_ctrl *lc, struct lro_entry *le, in tcp_lro_get_last_if_ackcmp() argument
217 tcp_lro_log(tp, lc, le, NULL, 23, 0, 0, 0, 0); in tcp_lro_get_last_if_ackcmp()
230 tcp_lro_log(tp, lc, le, NULL, 21, 0, 0, 0, 0); in tcp_lro_get_last_if_ackcmp()
242 m->m_pkthdr.rcvif = lc->ifp; in tcp_lro_get_last_if_ackcmp()
253 do_bpf_strip_and_compress(struct tcpcb *tp, struct lro_ctrl *lc, in do_bpf_strip_and_compress() argument
280 ETHER_BPF_MTAP(lc->ifp, m); in do_bpf_strip_and_compress()
294 IP_PROBE(receive, NULL, NULL, le->outer.ip4, lc->ifp, in do_bpf_strip_and_compress()
300 IP_PROBE(receive, NULL, NULL, le->outer.ip6, lc->ifp, in do_bpf_strip_and_compress()
[all …]
/freebsd/crypto/openssl/providers/implementations/include/prov/
H A Dciphercommon_aead.h14 #define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
15 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
16 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
21 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
22 static void * alg##kbits##lc##_newctx(void *provctx) \
24 return alg##_##lc##_newctx(provctx, kbits); \
26 static void * alg##kbits##lc##_dupctx(void *src) \
28 return alg##_##lc##_dupctx(src); \
30 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
31 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
[all …]
/freebsd/lib/libutil/
H A Dlogin_class.c74 setclassresources(login_cap_t *lc) in setclassresources() argument
78 if (lc == NULL) in setclassresources()
107 rcur = (*lr->who)(lc, lr->what, rcur, rcur); in setclassresources()
108 rmax = (*lr->who)(lc, lr->what, rmax, rmax); in setclassresources()
109 rlim.rlim_cur = (*lr->who)(lc, name_cur, rcur, rcur); in setclassresources()
110 rlim.rlim_max = (*lr->who)(lc, name_max, rmax, rmax); in setclassresources()
113 syslog(LOG_WARNING, "set class '%s' resource limit %s: %m", lc->lc_class, lr->what); in setclassresources()
197 setclassenvironment(login_cap_t *lc, const struct passwd * pwd, int paths) in setclassenvironment() argument
208 const char * var = paths ? login_getpath(lc, vars->tag, NULL) in setclassenvironment()
209 : login_getcapstr(lc, vars->tag, NULL, NULL); in setclassenvironment()
[all …]
H A Dlogin_cap.c255 login_close(login_cap_t * lc) in login_close() argument
257 if (lc) { in login_close()
258 free(lc->lc_style); in login_close()
259 free(lc->lc_class); in login_close()
260 free(lc->lc_cap); in login_close()
261 free(lc); in login_close()
293 login_cap_t *lc; in login_getclassbyname() local
295 if ((lc = calloc(1, sizeof(login_cap_t))) != NULL) { in login_getclassbyname()
335 switch (cgetent(&lc->lc_cap, login_dbarray, name)) { in login_getclassbyname()
353 if (cgetent(&lc->lc_cap, login_dbarray, name) != 0 && r >= 0) in login_getclassbyname()
[all …]
H A Dlogin_ok.c88 login_timelist(login_cap_t *lc, char const *cap, int *ltno, in login_timelist() argument
95 if ((tl = login_getcaplist(lc, cap, NULL)) != NULL) { in login_timelist()
125 login_ttyok(login_cap_t *lc, const char *tty, const char *allowcap, in login_ttyok() argument
130 if (lc != NULL && tty != NULL && *tty != '\0') { in login_ttyok()
137 ttl = login_getcaplist(lc, allowcap, NULL); in login_ttyok()
143 ttl = login_getcaplist(lc, denycap, NULL); in login_ttyok()
160 auth_ttyok(login_cap_t *lc, const char * tty) in auth_ttyok() argument
162 return login_ttyok(lc, tty, "ttys.allow", "ttys.deny"); in auth_ttyok()
174 login_hostok(login_cap_t *lc, const char *host, const char *ip, in login_hostok() argument
179 if (lc != NULL && in login_hostok()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_siv.c255 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
256 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
257 static OSSL_FUNC_cipher_freectx_fn alg##_##lc##_freectx; \
258 static OSSL_FUNC_cipher_dupctx_fn lc##_dupctx; \
259 static OSSL_FUNC_cipher_encrypt_init_fn lc##_einit; \
260 static OSSL_FUNC_cipher_decrypt_init_fn lc##_dinit; \
261 static OSSL_FUNC_cipher_update_fn lc##_stream_update; \
262 static OSSL_FUNC_cipher_final_fn lc##_stream_final; \
263 static OSSL_FUNC_cipher_cipher_fn lc##_cipher; \
264 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
[all …]
/freebsd/lib/libc/stdlib/
H A Dstrfmon.c110 struct lconv *lc; /* pointer to lconv structure */ in vstrfmon_l() local
133 lc = localeconv_l(loc); in vstrfmon_l()
243 currency_symbol = strdup(lc->int_curr_symbol); in vstrfmon_l()
250 currency_symbol = strdup(lc->currency_symbol); in vstrfmon_l()
267 currency_symbol, lc) - in vstrfmon_l()
268 __calc_left_pad(flags, currency_symbol, lc); in vstrfmon_l()
276 right_prec, pad_char, lc, loc); in vstrfmon_l()
285 &signstr, lc); in vstrfmon_l()
426 char **signstr, struct lconv *lc) in __setup_vars() argument
429 *cs_precedes = lc->int_n_cs_precedes; in __setup_vars()
[all …]
/freebsd/usr.bin/env/
H A Denv.c66 login_cap_t *lc; in main() local
77 lc = NULL; in main()
154 lc = login_getclass(login_class); in main()
155 if (lc == NULL) in main()
159 lc = login_getpwclass(pw); in main()
160 if (lc == NULL) in main()
168 setclassenvironment(lc, pw, 1); in main()
169 setclassenvironment(lc, pw, 0); in main()
171 login_close(lc); in main()
172 if ((lc = login_getuserclass(pw)) != NULL) { in main()
[all …]
/freebsd/sys/ddb/
H A Ddb_ctf.c41 db_ctf_fetch_cth(linker_ctf_t *lc) in db_ctf_fetch_cth() argument
43 return (const ctf_header_t *)lc->ctftab; in db_ctf_fetch_cth()
51 sym_to_objtoff(linker_ctf_t *lc, const Elf_Sym *sym, const Elf_Sym *symtab, in sym_to_objtoff() argument
54 const ctf_header_t *hp = db_ctf_fetch_cth(lc); in sym_to_objtoff()
153 db_ctf_typename_to_type(linker_ctf_t *lc, const char *name) in db_ctf_typename_to_type() argument
155 const ctf_header_t *hp = db_ctf_fetch_cth(lc); in db_ctf_typename_to_type()
205 db_ctf_lookup_typename(linker_ctf_t *lc, const char *typename) in db_ctf_lookup_typename() argument
207 return (db_ctf_typename_to_type(lc, typename) != NULL); in db_ctf_lookup_typename()
217 const ctf_header_t *hp = db_ctf_fetch_cth(&sd->lc); in db_ctf_typeid_to_type()
252 const ctf_header_t *hp = db_ctf_fetch_cth(&sd->lc); in db_ctf_stroff_to_str()
[all …]
/freebsd/lib/libc/tests/stdlib/
H A Dstrfmon_test.c39 struct lconv *lc; in ATF_TC_BODY() local
45 lc = localeconv(); in ATF_TC_BODY()
47 ts = lc->mon_thousands_sep; in ATF_TC_BODY()
49 ts = lc->thousands_sep; in ATF_TC_BODY()
119 struct lconv *lc; in ATF_TC_BODY() local
125 lc = localeconv(); in ATF_TC_BODY()
126 lc->n_cs_precedes = 0; in ATF_TC_BODY()
130 lc->n_sep_by_space = i; in ATF_TC_BODY()
133 lc->n_sign_posn = j; in ATF_TC_BODY()
162 struct lconv *lc; in ATF_TC_BODY() local
[all …]
/freebsd/sys/cddl/dev/fbt/
H A Dfbt.c364 fbt_ctfoff_init(modctl_t *lf, linker_ctf_t *lc) in fbt_ctfoff_init() argument
366 const Elf_Sym *symp = lc->symtab; in fbt_ctfoff_init()
367 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in fbt_ctfoff_init()
368 const uint8_t *ctfdata = lc->ctftab + sizeof(ctf_header_t); in fbt_ctfoff_init()
382 if (lc->symtab == NULL) { in fbt_ctfoff_init()
387 ctfoff = malloc(sizeof(uint32_t) * lc->nsym, M_LINKER, M_WAITOK); in fbt_ctfoff_init()
388 *lc->ctfoffp = ctfoff; in fbt_ctfoff_init()
392 for (i = 0; i < lc->nsym; i++, ctfoff++, symp++) { in fbt_ctfoff_init()
543 fbt_typoff_init(linker_ctf_t *lc) in fbt_typoff_init() argument
545 const ctf_header_t *hp = (const ctf_header_t *) lc->ctftab; in fbt_typoff_init()
[all …]
/freebsd/lib/libpam/modules/pam_unix/
H A Dpam_unix.c90 login_cap_t *lc; in pam_sm_authenticate() local
126 lc = login_getpwclass(pwd); in pam_sm_authenticate()
130 lc = login_getclass(NULL); in pam_sm_authenticate()
132 prompt = login_getcapstr(lc, "passwd_prompt", NULL, NULL); in pam_sm_authenticate()
134 login_close(lc); in pam_sm_authenticate()
167 login_cap_t *lc; in pam_sm_acct_mgmt() local
198 lc = login_getpwclass(pwd); in pam_sm_acct_mgmt()
199 if (lc == NULL) { in pam_sm_acct_mgmt()
215 warntime = login_getcaptime(lc, "warnexpire", in pam_sm_acct_mgmt()
218 login_close(lc); in pam_sm_acct_mgmt()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_mac.cpp252 const char *lc = layout_data->current_load_cmd_addr; in NextSegmentLoad() local
254 layout_data->current_load_cmd_addr += ((const load_command *)lc)->cmdsize; in NextSegmentLoad()
256 if (((const load_command *)lc)->cmd == kLCSegment) { in NextSegmentLoad()
257 const SegmentCommand* sc = (const SegmentCommand *)lc; in NextSegmentLoad()
281 (const char *)lc + sizeof(SegmentCommand); in NextSegmentLoad()
333 static const load_command *NextCommand(const load_command *lc) { in NextCommand() argument
334 return (const load_command *)((const char *)lc + lc->cmdsize); in NextCommand()
338 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) { in FindUUID() local
339 if (lc->cmd != LC_UUID) continue; in FindUUID()
341 const uuid_command *uuid_lc = (const uuid_command *)lc; in FindUUID()
[all …]
/freebsd/lib/libpam/modules/pam_nologin/
H A Dpam_nologin.c62 login_cap_t *lc; in pam_sm_acct_mgmt() local
85 lc = login_getpwclass(pwd); in pam_sm_acct_mgmt()
86 if (lc == NULL) { in pam_sm_acct_mgmt()
91 if (login_getcapbool(lc, "ignorenologin", 0)) { in pam_sm_acct_mgmt()
92 login_close(lc); in pam_sm_acct_mgmt()
96 nologin = login_getcapstr(lc, "nologin", nologin_def, nologin_def); in pam_sm_acct_mgmt()
100 login_close(lc); in pam_sm_acct_mgmt()
121 login_close(lc); in pam_sm_acct_mgmt()
/freebsd/cddl/contrib/opensolaris/lib/libgen/common/
H A Dgmatch.c92 wchar_t lc = 0; in gmatch() local
103 if (c == '-' && lc && *p != ']') { in gmatch()
110 valid_range(lc, c)) { in gmatch()
111 if (scc < lc || scc > c) in gmatch()
118 valid_range(lc, c)) in gmatch()
119 if (lc <= scc && in gmatch()
127 lc = c; in gmatch()
129 if (scc != lc) in gmatch()
136 if (scc == lc) in gmatch()
/freebsd/contrib/unbound/sldns/
H A Dparse.c289 int c, lc; in sldns_bget_token_par() local
310 lc = 0; in sldns_bget_token_par()
318 if (c == '(' && lc != '\\' && !quoted) { in sldns_bget_token_par()
324 lc = c; in sldns_bget_token_par()
328 if (c == ')' && lc != '\\' && !quoted) { in sldns_bget_token_par()
334 lc = c; in sldns_bget_token_par()
346 if (lc != '\\') { in sldns_bget_token_par()
350 if (c == '"' && com == 0 && lc != '\\') { in sldns_bget_token_par()
358 lc = c; in sldns_bget_token_par()
364 lc = c; in sldns_bget_token_par()
[all …]
/freebsd/usr.bin/locale/
H A Dlocale.c660 struct lconv *lc; in kwval_lconv() local
664 lc = localeconv(); in kwval_lconv()
667 rval = format_grouping(lc->grouping); in kwval_lconv()
670 rval = lc->int_curr_symbol; in kwval_lconv()
673 rval = lc->currency_symbol; in kwval_lconv()
676 rval = lc->mon_decimal_point; in kwval_lconv()
679 rval = lc->mon_thousands_sep; in kwval_lconv()
682 rval = format_grouping(lc->mon_grouping); in kwval_lconv()
685 rval = lc->positive_sign; in kwval_lconv()
688 rval = lc->negative_sign; in kwval_lconv()
[all …]
/freebsd/contrib/ldns/
H A Dparse.c303 int c, lc; in ldns_bget_token() local
324 lc = 0; in ldns_bget_token()
332 if (c == '(' && lc != '\\' && !quoted) { in ldns_bget_token()
337 lc = c; in ldns_bget_token()
341 if (c == ')' && lc != '\\' && !quoted) { in ldns_bget_token()
346 lc = c; in ldns_bget_token()
358 if (lc != '\\') { in ldns_bget_token()
362 if (c == '"' && com == 0 && lc != '\\') { in ldns_bget_token()
370 lc = c; in ldns_bget_token()
376 lc = c; in ldns_bget_token()
[all …]
/freebsd/usr.bin/limits/
H A Dlimits.c281 login_cap_t * lc = NULL; in main() local
386 lc = login_getpwclass(pwd); in main()
388 lc = login_getclassbyname(cls, NULL); in main()
389 if (lc == NULL || strcmp(cls, lc->lc_class) != 0) in main()
391 cls, lc?lc->lc_class:"current settings"); in main()
395 if (lc != NULL) { in main()
402 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcsw… in main()
403 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); in main()
406 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcsw… in main()
407 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main()
[all …]
/freebsd/tests/sys/kern/
H A Dsonewconn_overflow.py114 lc = LogChecker()
121 if not lc.checkForMsg(V4LOGMSG):
126 if lc.checkForMsg(V4LOGMSG):
132 if not lc.checkForMsg(V6LOGMSG):
137 if lc.checkForMsg(V6LOGMSG):
143 if not lc.checkForMsg(UNIXLOGMSG):
148 if lc.checkForMsg(UNIXLOGMSG):
/freebsd/usr.bin/systat/
H A Ddevs.c389 dsshow2(int diskcol, int diskrow, int dn, int lc, struct statinfo *now, struct statinfo *then) in dsshow2() argument
416 lc = diskcol + lc * 6; in dsshow2()
417 putlongdouble(kb_per_transfer, diskrow + 1, lc, 5, 2, 0); in dsshow2()
418 putlongdouble(transfers_per_second, diskrow + 2, lc, 5, 0, 0); in dsshow2()
419 putlongdouble(mb_per_second, diskrow + 3, lc, 5, 2, 0); in dsshow2()
420 putlongdouble(device_busy, diskrow + 4, lc, 5, 0, 0); in dsshow2()
426 int i, lc; in dsshow() local
428 for (i = 0, lc = 0; i < num_devices && lc < maxdrives; i++) in dsshow()
430 dsshow2(diskcol, diskrow, i, ++lc, now, then); in dsshow()
/freebsd/contrib/netbsd-tests/lib/libc/sys/
H A Dt_lwp_ctl.c49 lwpctl_t *lc; in ATF_TC_BODY() local
53 ATF_REQUIRE(_lwp_ctl(LWPCTL_FEATURE_PCTR, &lc) == 0); in ATF_TC_BODY()
56 ctr1 = lc->lc_pctr; in ATF_TC_BODY()
63 ctr2 = lc->lc_pctr; in ATF_TC_BODY()

12345678