| /openbsd/src/usr.bin/tmux/ |
| D | layout.c | 53 struct layout_cell *lc; in layout_create_cell() local 55 lc = xmalloc(sizeof *lc); in layout_create_cell() 56 lc->type = LAYOUT_WINDOWPANE; in layout_create_cell() 57 lc->parent = lcparent; in layout_create_cell() 59 TAILQ_INIT(&lc->cells); in layout_create_cell() 61 lc->sx = UINT_MAX; in layout_create_cell() 62 lc->sy = UINT_MAX; in layout_create_cell() 64 lc->xoff = UINT_MAX; in layout_create_cell() 65 lc->yoff = UINT_MAX; in layout_create_cell() 67 lc->wp = NULL; in layout_create_cell() [all …]
|
| D | layout-custom.c | 37 layout_find_bottomright(struct layout_cell *lc) in layout_find_bottomright() argument 39 if (lc->type == LAYOUT_WINDOWPANE) in layout_find_bottomright() 40 return (lc); in layout_find_bottomright() 41 lc = TAILQ_LAST(&lc->cells, layout_cells); in layout_find_bottomright() 42 return (layout_find_bottomright(lc)); in layout_find_bottomright() 75 layout_append(struct layout_cell *lc, char *buf, size_t len) in layout_append() argument 85 if (lc->wp != NULL) { in layout_append() 87 lc->sx, lc->sy, lc->xoff, lc->yoff, lc->wp->id); in layout_append() 90 lc->sx, lc->sy, lc->xoff, lc->yoff); in layout_append() 97 switch (lc->type) { in layout_append() [all …]
|
| D | layout-set.c | 130 struct layout_cell *lc, *lcnew; in layout_set_even() local 142 lc = w->layout_root = layout_create_cell(NULL); in layout_set_even() 154 layout_set_size(lc, sx, sy, 0, 0); in layout_set_even() 155 layout_make_node(lc, type); in layout_set_even() 159 lcnew = layout_create_cell(lc); in layout_set_even() 163 TAILQ_INSERT_TAIL(&lc->cells, lcnew, entry); in layout_set_even() 167 layout_spread_cell(w, lc); in layout_set_even() 175 window_resize(w, lc->sx, lc->sy, -1, -1); in layout_set_even() 196 struct layout_cell *lc, *lcmain, *lcother, *lcchild; in layout_set_main_h() local 246 lc = w->layout_root = layout_create_cell(NULL); in layout_set_main_h() [all …]
|
| /openbsd/src/sys/arch/sparc64/dev/ |
| D | ldc.c | 44 ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl() argument 48 ldc_rx_ctrl_vers(lc, lp); in ldc_rx_ctrl() 52 ldc_rx_ctrl_rts(lc, lp); in ldc_rx_ctrl() 56 ldc_rx_ctrl_rtr(lc, lp); in ldc_rx_ctrl() 60 ldc_rx_ctrl_rdx(lc, lp); in ldc_rx_ctrl() 65 ldc_reset(lc); in ldc_rx_ctrl() 71 ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl_vers() argument 78 ldc_send_ack(lc); in ldc_rx_ctrl_vers() 85 if (lc->lc_state != LDC_SND_VERS) { in ldc_rx_ctrl_vers() 87 lc->lc_state)); in ldc_rx_ctrl_vers() [all …]
|
| D | vldcp.c | 135 struct ldc_conn *lc; in vldcp_attach() local 160 lc = &sc->sc_lc; in vldcp_attach() 161 lc->lc_id = ca->ca_id; in vldcp_attach() 162 lc->lc_sc = sc; in vldcp_attach() 164 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VLDCP_TX_ENTRIES); in vldcp_attach() 165 if (lc->lc_txq == NULL) { in vldcp_attach() 170 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VLDCP_RX_ENTRIES); in vldcp_attach() 171 if (lc->lc_rxq == NULL) { in vldcp_attach() 175 lc->lc_rx_state = LDC_CHANNEL_INIT; in vldcp_attach() 196 ldc_queue_free(sc->sc_dmatag, lc->lc_rxq); in vldcp_attach() [all …]
|
| D | vcctty.c | 103 struct ldc_conn *lc; in vcctty_attach() local 129 lc = &sc->sc_lc; in vcctty_attach() 130 lc->lc_id = ca->ca_id; in vcctty_attach() 131 lc->lc_sc = sc; in vcctty_attach() 133 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VCCTTY_TX_ENTRIES); in vcctty_attach() 134 if (lc->lc_txq == NULL) { in vcctty_attach() 139 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VCCTTY_RX_ENTRIES); in vcctty_attach() 140 if (lc->lc_rxq == NULL) { in vcctty_attach() 145 err = hv_ldc_tx_qconf(lc->lc_id, in vcctty_attach() 146 lc->lc_txq->lq_map->dm_segs[0].ds_addr, lc->lc_txq->lq_nentries); in vcctty_attach() [all …]
|
| D | lom.c | 398 lom_queue_cmd(struct lom_softc *sc, struct lom_cmd *lc) in lom_queue_cmd() argument 401 return lom1_queue_cmd(sc, lc); in lom_queue_cmd() 403 return lom2_queue_cmd(sc, lc); in lom_queue_cmd() 407 lom_dequeue_cmd(struct lom_softc *sc, struct lom_cmd *lc) in lom_dequeue_cmd() argument 413 if (lcp == lc) { in lom_dequeue_cmd() 414 TAILQ_REMOVE(&sc->sc_queue, lc, lc_next); in lom_dequeue_cmd() 424 struct lom_cmd lc; in lom1_read() local 430 lc.lc_cmd = reg; in lom1_read() 431 lc.lc_data = 0xff; in lom1_read() 432 lom1_queue_cmd(sc, &lc); in lom1_read() [all …]
|
| D | vnet.c | 253 struct ldc_conn *lc; in vnet_attach() local 281 lc = &sc->sc_lc; in vnet_attach() 282 lc->lc_id = ca->ca_id; in vnet_attach() 283 lc->lc_sc = sc; in vnet_attach() 284 lc->lc_reset = vnet_ldc_reset; in vnet_attach() 285 lc->lc_start = vnet_ldc_start; in vnet_attach() 286 lc->lc_rx_data = vio_rx_data; in vnet_attach() 291 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VNET_TX_ENTRIES); in vnet_attach() 292 if (lc->lc_txq == NULL) { in vnet_attach() 297 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VNET_RX_ENTRIES); in vnet_attach() [all …]
|
| D | vdsk.c | 236 struct ldc_conn *lc; in vdsk_attach() local 261 lc = &sc->sc_lc; in vdsk_attach() 262 lc->lc_id = ca->ca_id; in vdsk_attach() 263 lc->lc_sc = sc; in vdsk_attach() 264 lc->lc_reset = vdsk_ldc_reset; in vdsk_attach() 265 lc->lc_start = vdsk_ldc_start; in vdsk_attach() 266 lc->lc_rx_data = vdsk_rx_data; in vdsk_attach() 268 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VDSK_TX_ENTRIES); in vdsk_attach() 269 if (lc->lc_txq == NULL) { in vdsk_attach() 274 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VDSK_RX_ENTRIES); in vdsk_attach() [all …]
|
| D | vdsp.c | 332 struct ldc_conn *lc; in vdsp_attach() local 362 lc = &sc->sc_lc; in vdsp_attach() 363 lc->lc_id = ca->ca_id; in vdsp_attach() 364 lc->lc_sc = sc; in vdsp_attach() 365 lc->lc_reset = vdsp_ldc_reset; in vdsp_attach() 366 lc->lc_start = vdsp_ldc_start; in vdsp_attach() 367 lc->lc_rx_data = vdsp_rx_data; in vdsp_attach() 369 lc->lc_txq = ldc_queue_alloc(sc->sc_dmatag, VDSK_TX_ENTRIES); in vdsp_attach() 370 if (lc->lc_txq == NULL) { in vdsp_attach() 375 lc->lc_rxq = ldc_queue_alloc(sc->sc_dmatag, VDSK_RX_ENTRIES); in vdsp_attach() [all …]
|
| /openbsd/src/usr.sbin/ldomd/ |
| D | ds.c | 44 ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl() argument 48 ldc_rx_ctrl_vers(lc, lp); in ldc_rx_ctrl() 52 ldc_rx_ctrl_rts(lc, lp); in ldc_rx_ctrl() 56 ldc_rx_ctrl_rtr(lc, lp); in ldc_rx_ctrl() 60 ldc_rx_ctrl_rdx(lc, lp); in ldc_rx_ctrl() 65 ldc_reset(lc); in ldc_rx_ctrl() 71 ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl_vers() argument 77 if (lc->lc_state == LDC_RCV_VERS) { in ldc_rx_ctrl_vers() 79 lc->lc_state)); in ldc_rx_ctrl_vers() 85 ldc_send_ack(lc); in ldc_rx_ctrl_vers() [all …]
|
| /openbsd/src/lib/libc/gen/ |
| D | login_cap.c | 86 login_cap_t *lc; in login_getclass() local 89 if ((lc = calloc(1, sizeof(login_cap_t))) == NULL) { in login_getclass() 106 if ((lc->lc_class = strdup(class)) == NULL) { in login_getclass() 108 free(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() 122 if (strcmp(lc->lc_class, LOGIN_DEFCLASS) == 0 && in login_getclass() 124 return (lc); in login_getclass() 125 syslog(LOG_ERR, "%s: unknown class", lc->lc_class); in login_getclass() [all …]
|
| D | authenticate.c | 106 auth_checknologin(login_cap_t *lc) in auth_checknologin() argument 108 if (_auth_checknologin(lc, 1)) in auth_checknologin() 114 _auth_checknologin(login_cap_t *lc, int print) in _auth_checknologin() argument 120 if (login_getcapbool(lc, "ignorenologin", 0)) in _auth_checknologin() 127 nologin = login_getcapstr(lc, "nologin", "", NULL); in _auth_checknologin() 188 auth_approval(auth_session_t *as, login_cap_t *lc, char *name, char *type) in auth_approval() argument 196 close_lc_on_exit = lc == NULL; in auth_approval() 226 if (lc == NULL) { in auth_approval() 238 lc = login_getclass(pwd ? pwd->pw_class : NULL); in auth_approval() 239 if (lc == NULL) { in auth_approval() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/t/uni/ |
| D | overload.t | 57 my $lc = lc $u; 58 is (length $lc, 1); 59 is ($lc, $E_acute, "E acute -> e acute"); 60 $lc = lc $u; 61 is (length $lc, 1); 62 is ($lc, $e_acute, "E acute -> e acute"); 63 $lc = lc $u; 64 is (length $lc, 1); 65 is ($lc, $E_acute, "E acute -> e acute"); 79 $lc = lcfirst $u; [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.dg/format/ |
| D | xopen-1.c | 11 foo (int i, unsigned int u, wint_t lc, wchar_t *ls, int *ip, double d, in foo() argument 18 printf ("%C", lc); in foo() 19 printf ("%3C", lc); in foo() 20 printf ("%.3C", lc); /* { dg-warning "precision" "precision with %C" } */ in foo() 21 printf ("%hC", lc); /* { dg-warning "length" "bad %hC" } */ in foo() 22 printf ("%hhC", lc); /* { dg-warning "length" "bad %hhC" } */ in foo() 23 printf ("%lC", lc); /* { dg-warning "length" "bad %lC" } */ in foo() 24 printf ("%llC", lc); /* { dg-warning "length" "bad %llC" } */ in foo() 25 printf ("%jC", lc); /* { dg-warning "length" "bad %jC" } */ in foo() 26 printf ("%zC", lc); /* { dg-warning "length" "bad %zC" } */ in foo() [all …]
|
| /openbsd/src/usr.sbin/acme-client/ |
| D | netproc.c | 364 long lc; in donewacc() local 368 else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0) in donewacc() 370 else if (lc == 400) { in donewacc() 381 } else if (lc != 200 && lc != 201) in donewacc() 382 warnx("%s: bad HTTP: %ld", p->newaccount, lc); in donewacc() 410 long lc; in dochkacc() local 414 else if ((lc = sreq(c, p->newaccount, 0, req, &c->kid)) < 0) in dochkacc() 416 else if (lc != 200 && lc != 400) in dochkacc() 417 warnx("%s: bad HTTP: %ld", p->newaccount, lc); in dochkacc() 420 else if (lc == 400) in dochkacc() [all …]
|
| /openbsd/src/gnu/usr.bin/perl/t/op/ |
| D | lc.t | 22 is(lc(undef), "", "lc(undef) is ''"); 58 is(lc($a) , "hello\.\* world", 'lc'); 72 is(lc($b) , "hello\.\* world", 'lc'); 93 is(lc($a) , "\x{101}\x{101}aa", 'lc'); 107 is(lc($b) , "\x{101}\x{101}aa", 'lc'); 158 is(lc("\x{1C4}") , "\x{1C6}", "U+01C4 lc is U+01C6"); 159 is(lc("\x{1C5}") , "\x{1C6}", "U+01C5 lc is U+01C6, too"); 172 ($c = $b) =~ s/(\w+)/lc($1)/ge; 213 is(substr(lc($_), 0), lc($_), "[perl #38619] lc"); 239 my $return = lc($_) =~ /\G(.?)/g; [all …]
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_procmaps_mac.cpp | 252 const char *lc = layout_data->current_load_cmd_addr; in NextSegmentLoad() local 253 layout_data->current_load_cmd_addr += ((const load_command *)lc)->cmdsize; in NextSegmentLoad() 254 if (((const load_command *)lc)->cmd == kLCSegment) { in NextSegmentLoad() 255 const SegmentCommand* sc = (const SegmentCommand *)lc; in NextSegmentLoad() 279 (const char *)lc + sizeof(SegmentCommand); in NextSegmentLoad() 331 static const load_command *NextCommand(const load_command *lc) { in NextCommand() argument 332 return (const load_command *)((const char *)lc + lc->cmdsize); in NextCommand() 336 for (const load_command *lc = first_lc; lc->cmd != 0; lc = NextCommand(lc)) { in FindUUID() local 337 if (lc->cmd != LC_UUID) continue; in FindUUID() 339 const uuid_command *uuid_lc = (const uuid_command *)lc; in FindUUID() [all …]
|
| /openbsd/src/gnu/llvm/lldb/examples/python/ |
| D | mach_o.py | 850 lc = self.unpack_load_command(data) 851 self.commands.append(lc) 860 lc = Mach.LoadCommand() 861 lc.unpack(self, data) 862 lc_command = lc.command.get_enum_value() 865 lc = Mach.SegmentLoadCommand(lc) 866 lc.unpack(self, data) 871 lc = Mach.DylibLoadCommand(lc) 872 lc.unpack(self, data) 880 lc = Mach.LoadDYLDLoadCommand(lc) [all …]
|
| /openbsd/src/sbin/unwind/libunbound/sldns/ |
| D | parse.c | 289 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 …]
|
| /openbsd/src/usr.sbin/unbound/sldns/ |
| D | parse.c | 289 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 …]
|
| /openbsd/src/gnu/llvm/llvm/utils/lit/lit/ |
| D | discovery.py | 153 lc = getLocalConfig(ts, test_dir_in_suite, litConfig, localConfigCache) 154 test = Test.Test(ts, path_in_suite, lc) 166 and lc.test_format is not None 167 and not lc.standalone_tests 170 for res in lc.test_format.getTestsInDirectory(ts, test_dir_in_suite, 171 litConfig, lc): 186 lc = getLocalConfig(ts, path_in_suite, litConfig, localConfigCache) 189 if lc.standalone_tests: 190 if lc.suffixes or lc.excludes: 198 if lc.test_format is not None: [all …]
|
| /openbsd/src/gnu/usr.bin/texinfo/po/ |
| D | Makefile.in.in | 169 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 170 if test -n "$$lc"; then \ 171 …if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/nu… 172 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ 173 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 174 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 175 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ 178 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ 181 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 183 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ [all …]
|
| /openbsd/src/usr.bin/lock/ |
| D | lock.c | 78 login_cap_t *lc; in main() local 91 lc = login_getclass(pw->pw_class); in main() 92 if (lc != NULL) { in main() 97 tries = login_getcapnum(lc, "login-tries", 10, 10); in main() 98 backoff = login_getcapnum(lc, "login-backoff", 3, 3); in main() 104 if (lc) { in main() 105 style = login_getstyle(lc, optarg, "auth-lock"); in main() 132 if (usemine && lc == NULL) in main() 197 (nstyle = login_getstyle(lc, "skey", "auth-lock"))) in main()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/Encode/ |
| D | Encode.pm | 102 my $lc = lc($name); 103 define_alias( $lc => $obj ) unless $lc eq $name; 123 my $lc = lc $name; 124 exists $Encoding{$lc} and return $Encoding{$lc}; 128 $lc ne $name and $oc = $class->find_alias($lc); 132 if ( my $mod = $ExtModule{$name} || $ExtModule{$lc} ) {
|