Home
last modified time | relevance | path

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

1234567

/minix3/external/bsd/tmux/dist/
H A Dlayout.c41 struct layout_cell *lc; in layout_create_cell() local
43 lc = xmalloc(sizeof *lc); in layout_create_cell()
44 lc->type = LAYOUT_WINDOWPANE; in layout_create_cell()
45 lc->parent = lcparent; in layout_create_cell()
47 TAILQ_INIT(&lc->cells); in layout_create_cell()
49 lc->sx = UINT_MAX; in layout_create_cell()
50 lc->sy = UINT_MAX; in layout_create_cell()
52 lc->xoff = UINT_MAX; in layout_create_cell()
53 lc->yoff = UINT_MAX; in layout_create_cell()
55 lc->wp = NULL; in layout_create_cell()
[all …]
H A Dlayout-custom.c34 layout_find_bottomright(struct layout_cell *lc) in layout_find_bottomright() argument
36 if (lc->type == LAYOUT_WINDOWPANE) in layout_find_bottomright()
37 return (lc); in layout_find_bottomright()
38 lc = TAILQ_LAST(&lc->cells, layout_cells); in layout_find_bottomright()
39 return (layout_find_bottomright(lc)); in layout_find_bottomright()
72 layout_append(struct layout_cell *lc, char *buf, size_t len) in layout_append() argument
82 if (lc->wp != NULL) { in layout_append()
84 lc->sx, lc->sy, lc->xoff, lc->yoff, lc->wp->id); in layout_append()
87 lc->sx, lc->sy, lc->xoff, lc->yoff); in layout_append()
94 switch (lc->type) { in layout_append()
[all …]
H A Dlayout-set.c127 struct layout_cell *lc, *lcnew; in layout_set_even_h() local
144 lc = w->layout_root = layout_create_cell(NULL); in layout_set_even_h()
145 layout_set_size(lc, w->sx, w->sy, 0, 0); in layout_set_even_h()
146 layout_make_node(lc, LAYOUT_LEFTRIGHT); in layout_set_even_h()
152 lcnew = layout_create_cell(lc); in layout_set_even_h()
155 TAILQ_INSERT_TAIL(&lc->cells, lcnew, entry); in layout_set_even_h()
163 lc = TAILQ_LAST(&lc->cells, layout_cells); in layout_set_even_h()
164 layout_resize_adjust(lc, LAYOUT_LEFTRIGHT, w->sx - (xoff - 1)); in layout_set_even_h()
168 layout_fix_offsets(lc); in layout_set_even_h()
180 struct layout_cell *lc, *lcnew; in layout_set_even_v() local
[all …]
/minix3/lib/libutil/
H A Dlogin_cap.c75 login_cap_t *lc; in login_getclass() local
87 if ((lc = malloc(sizeof(login_cap_t))) == NULL) { in login_getclass()
92 lc->lc_cap = 0; in login_getclass()
93 lc->lc_style = 0; in login_getclass()
98 if ((lc->lc_class = strdup(class)) == NULL) { in login_getclass()
100 free(lc); in login_getclass()
110 return(lc); in login_getclass()
112 if ((res = cgetent(&lc->lc_cap, classfiles, lc->lc_class)) != 0) { in login_getclass()
113 lc->lc_cap = 0; in login_getclass()
117 lc->lc_class); in login_getclass()
[all …]
/minix3/external/bsd/atf/dist/atf-c/
H A Dconfig_test.c43 const char *lc; member
72 for (v = all_vars; v->lc != NULL; v++) in unset_all()
84 for (v = all_vars; v->lc != NULL; v++) { in compare_one()
85 if (strcmp(v->lc, var) == 0) in compare_one()
86 ATF_CHECK_STREQ(atf_config_get(v->lc), test_value); in compare_one()
88 ATF_CHECK(strcmp(atf_config_get(v->lc), test_value) != 0); in compare_one()
109 for (v = all_vars; v->lc != NULL; v++) in ATF_TC_BODY()
110 ATF_CHECK(strcmp(atf_config_get(v->lc), test_value) != 0); in ATF_TC_BODY()
113 for (v = all_vars; v->lc != NULL; v++) { in ATF_TC_BODY()
115 if (strcmp(atf_config_get(v->lc), "") != 0) { in ATF_TC_BODY()
[all …]
/minix3/external/bsd/bind/dist/unit/atf-src/atf-c/
H A Dconfig_test.c45 const char *lc; member
78 for (v = all_vars; v->lc != NULL; v++) in unset_all()
90 for (v = all_vars; v->lc != NULL; v++) { in compare_one()
91 if (strcmp(v->lc, var) == 0) in compare_one()
92 ATF_CHECK_STREQ(atf_config_get(v->lc), test_value); in compare_one()
94 ATF_CHECK(strcmp(atf_config_get(v->lc), test_value) != 0); in compare_one()
115 for (v = all_vars; v->lc != NULL; v++) in ATF_TC_BODY()
116 ATF_CHECK(strcmp(atf_config_get(v->lc), test_value) != 0); in ATF_TC_BODY()
119 for (v = all_vars; v->lc != NULL; v++) { in ATF_TC_BODY()
121 if (strcmp(atf_config_get(v->lc), "") != 0) { in ATF_TC_BODY()
[all …]
/minix3/external/bsd/bind/dist/unit/atf-src/atf-c++/
H A Dconfig_test.cpp43 const char *lc; member
103 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in all_vars_count()
112 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in unset_all()
122 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in compare_one()
123 if (std::strcmp(v->lc, var) == 0) in compare_one()
124 ATF_REQUIRE_EQ(atf::config::get(v->lc), test_value); in compare_one()
126 ATF_REQUIRE(atf::config::get(v->lc) != test_value); in compare_one()
145 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in ATF_TEST_CASE_BODY()
146 ATF_REQUIRE(atf::config::get(v->lc) != test_value); in ATF_TEST_CASE_BODY()
149 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in ATF_TEST_CASE_BODY()
[all …]
/minix3/external/bsd/atf/dist/tools/
H A Dconfig_test.cpp42 const char *lc; member
102 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in all_vars_count()
111 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in unset_all()
121 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in compare_one()
122 if (std::strcmp(v->lc, var) == 0) in compare_one()
123 ATF_REQUIRE_EQ(tools::config::get(v->lc), test_value); in compare_one()
125 ATF_REQUIRE(tools::config::get(v->lc) != test_value); in compare_one()
144 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in ATF_TEST_CASE_BODY()
145 ATF_REQUIRE(tools::config::get(v->lc) != test_value); in ATF_TEST_CASE_BODY()
148 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in ATF_TEST_CASE_BODY()
[all …]
/minix3/external/bsd/atf/dist/atf-c++/
H A Dconfig_test.cpp43 const char *lc; member
99 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in all_vars_count()
108 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in unset_all()
118 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in compare_one()
119 if (std::strcmp(v->lc, var) == 0) in compare_one()
120 ATF_REQUIRE_EQ(atf::config::get(v->lc), test_value); in compare_one()
122 ATF_REQUIRE(atf::config::get(v->lc) != test_value); in compare_one()
141 for (const struct varnames* v = all_vars; v->lc != NULL; v++) in ATF_TEST_CASE_BODY()
142 ATF_REQUIRE(atf::config::get(v->lc) != test_value); in ATF_TEST_CASE_BODY()
145 for (const struct varnames* v = all_vars; v->lc != NULL; v++) { in ATF_TEST_CASE_BODY()
[all …]
/minix3/lib/libc/stdlib/
H A Dstrfmon.c118 struct lconv *lc; /* pointer to lconv structure */ in strfmon() local
141 lc = localeconv(); in strfmon()
246 currency_symbol = strdup(lc->int_curr_symbol); in strfmon()
250 currency_symbol = strdup(lc->currency_symbol); in strfmon()
421 struct lconv *lc = localeconv(); in __setup_vars() local
424 *cs_precedes = lc->int_n_cs_precedes; in __setup_vars()
425 *sep_by_space = lc->int_n_sep_by_space; in __setup_vars()
426 *sign_posn = (flags & PARENTH_POSN) ? 0 : lc->int_n_sign_posn; in __setup_vars()
427 *signstr = (lc->negative_sign == '\0') ? "-" in __setup_vars()
428 : lc->negative_sign; in __setup_vars()
[all …]
/minix3/external/bsd/flex/dist/examples/fastwc/
H A Dwc4.l10 int cc = 0, wc = 0, lc = 0;
13 {word}{ws}*\n ++wc; cc += yyleng; ++lc;
15 {words}{word}{ws}*\n wc += 2; cc += yyleng; ++lc;
17 {words}{2}{word}{ws}*\n wc += 3; cc += yyleng; ++lc;
19 {words}{3}{word}{ws}*\n wc += 4; cc += yyleng; ++lc;
23 \n+ cc += yyleng; lc += yyleng;
26 printf( "%8d %8d %8d\n", lc, wc, cc );
H A Dwc2.l9 int cc = 0, wc = 0, lc = 0;
12 {word}{ws}*\n cc += yyleng; ++wc; ++lc;
16 \n+ cc += yyleng; lc += yyleng;
19 printf( "%8d %8d %8d\n", lc, wc, cc );
H A Dwc3.l10 int cc = 0, wc = 0, lc = 0;
13 {word}{ws}*\n cc += yyleng; ++wc; ++lc;
20 \n+ cc += yyleng; lc += yyleng;
23 printf( "%8d %8d %8d\n", lc, wc, cc );
H A Dwc5.l10 int cc = 0, wc = 0, lc = 0;
13 {word}{ws}*\n cc += yyleng; ++wc; ++lc;
20 \n+ cc += yyleng; lc += yyleng;
23 printf( "%8d %8d %8d\n", lc, wc, cc );
/minix3/external/bsd/flex/dist/po/
H A DMakefile.in236 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
237 if test -n "$$lc"; then \
238 …if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/nu…
239 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
240 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
241 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
242 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
245 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
248 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
250 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
[all …]
H A DMakefile295 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
296 if test -n "$$lc"; then \
297 …if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/nu…
298 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
299 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
300 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
301 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
304 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
307 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
309 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
[all …]
/minix3/external/public-domain/xz/dist/src/liblzma/lzma/
H A Dlzma_common.h35 return options->lc <= LZMA_LCLP_MAX && options->lp <= LZMA_LCLP_MAX in is_lclppb_valid()
36 && options->lc + options->lp <= LZMA_LCLP_MAX in is_lclppb_valid()
124 #define literal_subcoder(probs, lc, lp_mask, pos, prev_byte) \ argument
125 ((probs)[(((pos) & lp_mask) << lc) + ((prev_byte) >> (8 - lc))])
130 uint32_t lc, uint32_t lp) in literal_init() argument
132 assert(lc + lp <= LZMA_LCLP_MAX); in literal_init()
134 const uint32_t coders = 1U << (lc + lp); in literal_init()
H A Dlzma_encoder.c78 length_update_prices(lzma_length_encoder *lc, const uint32_t pos_state) in length_update_prices() argument
80 const uint32_t table_size = lc->table_size; in length_update_prices()
81 lc->counters[pos_state] = table_size; in length_update_prices()
83 const uint32_t a0 = rc_bit_0_price(lc->choice); in length_update_prices()
84 const uint32_t a1 = rc_bit_1_price(lc->choice); in length_update_prices()
85 const uint32_t b0 = a1 + rc_bit_0_price(lc->choice2); in length_update_prices()
86 const uint32_t b1 = a1 + rc_bit_1_price(lc->choice2); in length_update_prices()
87 uint32_t *const prices = lc->prices[pos_state]; in length_update_prices()
91 prices[i] = a0 + rc_bittree_price(lc->low[pos_state], in length_update_prices()
95 prices[i] = b0 + rc_bittree_price(lc->mid[pos_state], in length_update_prices()
[all …]
/minix3/usr.bin/locale/
H A Dlocale.c526 struct lconv *lc; in kwval_lconv() local
530 lc = localeconv(); in kwval_lconv()
533 rval = lc->grouping; in kwval_lconv()
536 rval = lc->int_curr_symbol; in kwval_lconv()
539 rval = lc->currency_symbol; in kwval_lconv()
542 rval = lc->mon_decimal_point; in kwval_lconv()
545 rval = lc->mon_thousands_sep; in kwval_lconv()
548 rval = lc->mon_grouping; in kwval_lconv()
551 rval = lc->positive_sign; in kwval_lconv()
554 rval = lc->negative_sign; in kwval_lconv()
[all …]
/minix3/usr.bin/passwd/
H A Dlocal_passwd.c142 login_cap_t *lc; in pwlocal_process() local
188 if((lc = login_getclass(pw->pw_class)) != NULL) { in pwlocal_process()
189 min_pw_len = (int) login_getcapnum(lc, "minpasswordlen", 0, 0); in pwlocal_process()
190 pw_expiry = (int) login_getcaptime(lc, "passwordtime", 0, 0); in pwlocal_process()
191 login_close(lc); in pwlocal_process()
276 login_cap_t *lc; in local_chpw() local
297 if((lc = login_getclass(pw->pw_class))) { in local_chpw()
298 min_pw_len = (int) login_getcapnum(lc, "minpasswordlen", 0, 0); in local_chpw()
299 pw_expiry = (int) login_getcaptime(lc, "passwordtime", 0, 0); in local_chpw()
300 login_close(lc); in local_chpw()
/minix3/lib/libcurses/
H A Dchgat.c62 __LDATA *lc; in mvwchgat() local
80 lc = &lp->line[x]; in mvwchgat()
90 lc->attr = (lc->attr & ~WA_ATTRIBUTES) | attr; in mvwchgat()
92 lc->attr = attr; in mvwchgat()
94 ++lc; in mvwchgat()
/minix3/usr.bin/login/
H A Dlogin.c165 login_cap_t *lc = NULL; in main() local
288 if ((lc = login_getclass(NULL)) != NULL) { in main()
289 login_retries = (int)login_getcapnum(lc, "login-retries", in main()
291 login_backoff = (int)login_getcapnum(lc, "login-backoff", in main()
293 login_close(lc); in main()
294 lc = NULL; in main()
356 lc = login_getclass(pwd ? pwd->pw_class : NULL); in main()
483 if (!login_getcapbool(lc, "ignorenologin", rootlogin)) in main()
484 checknologin(login_getcapstr(lc, "nologin", NULL, NULL)); in main()
491 quietlog = login_getcapbool(lc, "hushlogin", 0); in main()
[all …]
H A Dlogin_pam.c116 login_cap_t *lc = NULL; in main() local
227 if ((lc = login_getclass(NULL)) != NULL) { in main()
228 login_retries = (int)login_getcapnum(lc, "login-retries", in main()
230 login_backoff = (int)login_getcapnum(lc, "login-backoff", in main()
232 login_close(lc); in main()
233 lc = NULL; in main()
301 lc = login_getclass(pwd ? pwd->pw_class : NULL); in main()
340 lc = login_getpwclass(pwd); in main()
411 quietlog = login_getcapbool(lc, "hushlogin", 0); in main()
427 if (login_getcapbool(lc, "requirehome", 0)) { in main()
[all …]
/minix3/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()
/minix3/usr.bin/newgrp/
H A Dnewgrp.c71 login_cap_t *lc; in main() local
81 if ((lc = login_getclass(pwd->pw_class)) == NULL) in main()
112 addgroup(lc, *argv, pwd, getuid(), "Password:"); in main()
128 if (setusercontext(lc, pwd, uid, flags) == -1) in main()
131 login_close(lc); in main()
168 if (setusercontext(lc, pwd, uid, LOGIN_SETENV | LOGIN_SETPATH) == -1) in main()
170 login_close(lc); in main()

1234567