Home
last modified time | relevance | path

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

12345678

/src/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 …]
/src/sys/netinet/
H A Dtcp_lro.c82 static void tcp_lro_rx_done(struct lro_ctrl *lc);
83 static int tcp_lro_rx_common(struct lro_ctrl *lc, struct mbuf *m,
85 static void tcp_lro_flush(struct lro_ctrl *lc, struct lro_entry *le);
91 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.c157 tcp_lro_log(struct tcpcb *tp, const struct lro_ctrl *lc, in tcp_lro_log() argument
192 bintime2timeval(&lc->lro_last_queue_time, &btv); in tcp_lro_log()
208 tcp_lro_get_last_if_ackcmp(struct lro_ctrl *lc, struct lro_entry *le, in tcp_lro_get_last_if_ackcmp() argument
219 tcp_lro_log(tp, lc, le, NULL, 23, 0, 0, 0, 0); in tcp_lro_get_last_if_ackcmp()
232 tcp_lro_log(tp, lc, le, NULL, 21, 0, 0, 0, 0); in tcp_lro_get_last_if_ackcmp()
244 m->m_pkthdr.rcvif = lc->ifp; in tcp_lro_get_last_if_ackcmp()
255 do_bpf_strip_and_compress(struct tcpcb *tp, struct lro_ctrl *lc, in do_bpf_strip_and_compress() argument
282 ETHER_BPF_MTAP(lc->ifp, m); in do_bpf_strip_and_compress()
296 IP_PROBE(receive, NULL, NULL, le->outer.ip4, lc->ifp, in do_bpf_strip_and_compress()
302 IP_PROBE(receive, NULL, NULL, le->outer.ip6, lc->ifp, in do_bpf_strip_and_compress()
[all …]
/src/crypto/openssl/providers/implementations/include/prov/
H A Dciphercommon_aead.h18 #define IMPLEMENT_aead_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
19 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
20 static int alg##_##kbits##_##lc##_get_params(OSSL_PARAM params[]) \
25 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
26 static void *alg##kbits##lc##_newctx(void *provctx) \
28 return alg##_##lc##_newctx(provctx, kbits); \
30 static void *alg##kbits##lc##_dupctx(void *src) \
32 return alg##_##lc##_dupctx(src); \
34 const OSSL_DISPATCH ossl_##alg##kbits##lc##_functions[] = { \
35 { OSSL_FUNC_CIPHER_NEWCTX, (void (*)(void))alg##kbits##lc##_newctx }, \
[all …]
/src/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 …]
/src/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()
175 ((lc->positive_sign[0] == '\0') && in vstrfmon_l()
176 (lc->negative_sign[0] == '\0'))) in vstrfmon_l()
245 currency_symbol = strdup(lc->int_curr_symbol); in vstrfmon_l()
252 currency_symbol = strdup(lc->currency_symbol); in vstrfmon_l()
269 currency_symbol, lc) - in vstrfmon_l()
270 __calc_left_pad(flags, currency_symbol, lc); in vstrfmon_l()
278 right_prec, pad_char, lc, loc); in vstrfmon_l()
287 &signstr, lc); in vstrfmon_l()
[all …]
/src/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_siv.c244 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) \ argument
245 static OSSL_FUNC_cipher_newctx_fn alg##kbits##lc##_newctx; \
246 static OSSL_FUNC_cipher_freectx_fn alg##_##lc##_freectx; \
247 static OSSL_FUNC_cipher_dupctx_fn lc##_dupctx; \
248 static OSSL_FUNC_cipher_encrypt_init_fn lc##_einit; \
249 static OSSL_FUNC_cipher_decrypt_init_fn lc##_dinit; \
250 static OSSL_FUNC_cipher_update_fn lc##_stream_update; \
251 static OSSL_FUNC_cipher_final_fn lc##_stream_final; \
252 static OSSL_FUNC_cipher_cipher_fn lc##_cipher; \
253 static OSSL_FUNC_cipher_get_params_fn alg##_##kbits##_##lc##_get_params; \
[all …]
H A Dcipher_aes_gcm_siv.c273 #define IMPLEMENT_cipher(alg, lc, UCMODE, flags, kbits, blkbits, ivbits) … argument
274 …static OSSL_FUNC_cipher_newctx_fn ossl_##alg##kbits##_##lc##_newctx; …
275 …static OSSL_FUNC_cipher_freectx_fn ossl_##alg##_##lc##_freectx; …
276 …static OSSL_FUNC_cipher_dupctx_fn ossl_##alg##_##lc##_dupctx; …
277 …static OSSL_FUNC_cipher_encrypt_init_fn ossl_##alg##_##lc##_einit; …
278 …static OSSL_FUNC_cipher_decrypt_init_fn ossl_##alg##_##lc##_dinit; …
279 …static OSSL_FUNC_cipher_update_fn ossl_##alg##_##lc##_stream_update; …
280 …static OSSL_FUNC_cipher_final_fn ossl_##alg##_##lc##_stream_final; …
281 …static OSSL_FUNC_cipher_cipher_fn ossl_##alg##_##lc##_cipher; …
282 …static OSSL_FUNC_cipher_get_params_fn ossl_##alg##_##kbits##_##lc##_get_params; …
[all …]
/src/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 …]
/src/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 …]
/src/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 …]
/src/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 …]
/src/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 …]
/src/lib/libc/tests/stdlib/
H A Dstrfmon_test.c22 struct lconv *lc; in ATF_TC_BODY() local
28 lc = localeconv(); in ATF_TC_BODY()
30 ts = lc->mon_thousands_sep; in ATF_TC_BODY()
32 ts = lc->thousands_sep; in ATF_TC_BODY()
102 struct lconv *lc; in ATF_TC_BODY() local
108 lc = localeconv(); in ATF_TC_BODY()
109 lc->n_cs_precedes = 0; in ATF_TC_BODY()
113 lc->n_sep_by_space = i; in ATF_TC_BODY()
116 lc->n_sign_posn = j; in ATF_TC_BODY()
145 struct lconv *lc; in ATF_TC_BODY() local
[all …]
/src/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()
/src/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()
/src/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 …]
/src/contrib/xz/src/liblzma/lzma/
H A Dlzma_common.h34 return options->lc <= LZMA_LCLP_MAX && options->lp <= LZMA_LCLP_MAX in is_lclppb_valid()
35 && options->lc + options->lp <= LZMA_LCLP_MAX in is_lclppb_valid()
134 #define literal_mask_calc(lc, lp) \ argument
135 ((UINT32_C(0x100) << (lp)) - (UINT32_C(0x100) >> (lc)))
141 #define literal_subcoder(probs, lc, literal_mask, pos, prev_byte) \ argument
143 (((((pos) << 8) + (prev_byte)) & (literal_mask)) << (lc)))
147 literal_init(probability *probs, uint32_t lc, uint32_t lp) in literal_init() argument
149 assert(lc + lp <= LZMA_LCLP_MAX); in literal_init()
151 const size_t coders = LITERAL_CODER_SIZE << (lc + lp); in literal_init()
H A Dlzma_encoder.c77 length_update_prices(lzma_length_encoder *lc, const uint32_t pos_state) in length_update_prices() argument
79 const uint32_t table_size = lc->table_size; in length_update_prices()
80 lc->counters[pos_state] = table_size; in length_update_prices()
82 const uint32_t a0 = rc_bit_0_price(lc->choice); in length_update_prices()
83 const uint32_t a1 = rc_bit_1_price(lc->choice); in length_update_prices()
84 const uint32_t b0 = a1 + rc_bit_0_price(lc->choice2); in length_update_prices()
85 const uint32_t b1 = a1 + rc_bit_1_price(lc->choice2); in length_update_prices()
86 uint32_t *const prices = lc->prices[pos_state]; in length_update_prices()
90 prices[i] = a0 + rc_bittree_price(lc->low[pos_state], in length_update_prices()
94 prices[i] = b0 + rc_bittree_price(lc->mid[pos_state], in length_update_prices()
[all …]
/src/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 …]
/src/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 …]
/src/usr.bin/limits/
H A Dlimits.c284 login_cap_t * lc = NULL; in main() local
389 lc = login_getpwclass(pwd); in main()
391 lc = login_getclassbyname(cls, NULL); in main()
392 if (lc == NULL || strcmp(cls, lc->lc_class) != 0) in main()
394 cls, lc?lc->lc_class:"current settings"); in main()
398 if (lc != NULL) { in main()
405 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_cur, limits[rcsw… in main()
406 limits[rcswhich].rlim_cur = resources[rcswhich].func(lc, str, val, val); in main()
409 …val = resources[rcswhich].func(lc, resources[rcswhich].cap, limits[rcswhich].rlim_max, limits[rcsw… in main()
410 limits[rcswhich].rlim_max = resources[rcswhich].func(lc, str, val, val); in main()
[all …]

12345678