| /openbsd/src/usr.sbin/makefs/ffs/ |
| D | ffs_balloc.c | 73 int32_t nb; in ffs_balloc_ufs1() local 101 nb = lastlbn; in ffs_balloc_ufs1() 102 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1() 114 nb = ip->i_ffs1_db[lbn]; in ffs_balloc_ufs1() 115 if (nb != 0 && ip->i_ffs1_size >= lblktosize(fs, lbn + 1)) { in ffs_balloc_ufs1() 134 if (nb != 0) { in ffs_balloc_ufs1() 209 nb = ip->i_ffs1_ib[indirs[0].in_off]; in ffs_balloc_ufs1() 212 if (nb == 0) { in ffs_balloc_ufs1() 217 nb = newb; in ffs_balloc_ufs1() 218 *allocblk++ = nb; in ffs_balloc_ufs1() [all …]
|
| /openbsd/src/sys/ufs/ffs/ |
| D | ffs_balloc.c | 73 daddr_t lbn, nb, newb, pref; in ffs1_balloc() local 101 nb = lblkno(fs, ip->i_ffs1_size); in ffs1_balloc() 102 if (nb < NDADDR && nb < lbn) { in ffs1_balloc() 103 osize = blksize(fs, ip, nb); in ffs1_balloc() 105 error = ffs_realloccg(ip, nb, in ffs1_balloc() 106 ffs1_blkpref(ip, nb, (int)nb, &ip->i_ffs1_db[0]), in ffs1_balloc() 111 ip->i_ffs1_size = lblktosize(fs, nb + 1); in ffs1_balloc() 113 ip->i_ffs1_db[nb] = newb; in ffs1_balloc() 127 nb = ip->i_ffs1_db[lbn]; in ffs1_balloc() 128 if (nb != 0 && ip->i_ffs1_size >= lblktosize(fs, lbn + 1)) { in ffs1_balloc() [all …]
|
| /openbsd/src/usr.sbin/map-mbone/ |
| D | mapper.c | 150 Neighbor *nb; in find_neighbor() local 152 for (nb = ifc->neighbors; nb; nb = nb->next) in find_neighbor() 153 if (nb->addr == addr) in find_neighbor() 154 return nb; in find_neighbor() 386 Neighbor *nb; in accept_neighbors() local 399 for (nb = old_neighbors; nb; nb = nb->next) in accept_neighbors() 400 if (nb->addr == neighbor) { in accept_neighbors() 401 if (metric != nb->metric || threshold != nb->threshold) in accept_neighbors() 405 inet_fmt(nb->addr, s1), inet_fmt(node->addr, s2)); in accept_neighbors() 409 nb = malloc(sizeof(Neighbor)); in accept_neighbors() [all …]
|
| /openbsd/src/usr.bin/talk/ |
| D | io.c | 59 int nb; in talk() local 81 nb = poll(fds, 2, A_LONG_TIME * 1000); in talk() 86 if (nb <= 0) { in talk() 94 nb = read(sockt, buf, sizeof buf); in talk() 95 if (nb <= 0) in talk() 97 display(&his_win, buf, nb); in talk() 104 ioctl(0, FIONREAD, &nb); in talk() 105 nb = read(STDIN_FILENO, buf, nb); in talk() 106 display(&my_win, buf, nb); in talk() 108 write(sockt, buf, nb); in talk()
|
| /openbsd/src/sys/ufs/ext2fs/ |
| D | ext2fs_balloc.c | 62 u_int32_t nb, newb, *bap; in ext2fs_buf_alloc() local 77 nb = letoh32(ip->i_e2fs_blocks[bn]); in ext2fs_buf_alloc() 78 if (nb != 0) { in ext2fs_buf_alloc() 121 nb = letoh32(ip->i_e2fs_blocks[NDADDR + indirs[0].in_off]); in ext2fs_buf_alloc() 124 if (nb == 0) { in ext2fs_buf_alloc() 129 nb = newb; in ext2fs_buf_alloc() 130 *allocblk++ = nb; in ext2fs_buf_alloc() 156 nb = letoh32(bap[indirs[i].in_off]); in ext2fs_buf_alloc() 160 if (nb != 0) { in ext2fs_buf_alloc() 170 nb = newb; in ext2fs_buf_alloc() [all …]
|
| /openbsd/src/lib/libcrypto/bn/asm/ |
| D | co-586.pl | 18 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 35 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # load next b 36 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # load next b 46 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 65 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb); 75 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_; 101 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb); 159 $nb=($bi+1); 164 $nb=$bs+($i >= ($num-1)); 167 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb); [all …]
|
| /openbsd/src/gnu/llvm/libcxx/src/support/solaris/ |
| D | wcsnrtombs.inc | 36 size_t nb; 43 if ((nb = wcrtomb_l(buf, *s, ps, loc)) == (size_t)-1) 47 return (nbytes + nb - 1); 49 nbytes += nb; 57 if ((nb = wcrtomb_l(dst, *s, ps, loc)) == (size_t)-1) { 70 if ((nb = wcrtomb_l(buf, *s, ps, loc)) == (size_t)-1) { 74 if (nb > (int)len) { 79 memcpy(dst, buf, nb); 83 return (nbytes + nb - 1); 86 dst += nb; [all …]
|
| D | mbsnrtowcs.inc | 38 size_t nb; 46 if ((nb = mbrtowc_l(&wc, s, nms, ps, loc)) == (size_t)-1) 49 else if (nb == 0 || nb == (size_t)-2) 51 s += nb; 52 nms -= nb; 59 if ((nb = mbrtowc_l(dst, s, nms, ps, loc)) == (size_t)-1) { 62 } else if (nb == (size_t)-2) { 65 } else if (nb == 0) { 69 s += nb; 70 nms -= nb;
|
| /openbsd/src/regress/lib/libpthread/select/ |
| D | select.c | 82 int nb; in fg_routine() local 110 while ((nb = read(fd, buf, sizeof(buf) - 1)) > 0) { in fg_routine() 111 printf("read %d: `%.*s'\n", nb, nb, buf); in fg_routine() 113 printf("last read was %d, errno = %d %s\n", nb, errno, in fg_routine() 115 if (nb < 0) in fg_routine() 118 if (nb == 0) in fg_routine()
|
| /openbsd/src/lib/libc/db/btree/ |
| D | bt_overflow.c | 78 size_t nb, plen; in __ovfl_get() local 104 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { in __ovfl_get() 108 nb = MINIMUM(sz, plen); in __ovfl_get() 109 memmove(p, (char *)h + BTDATAOFF, nb); in __ovfl_get() 112 if ((sz -= nb) == 0) in __ovfl_get() 135 size_t nb, plen; in __ovfl_put() local 153 nb = MINIMUM(sz, plen); in __ovfl_put() 154 memmove((char *)h + BTDATAOFF, p, nb); in __ovfl_put() 162 if ((sz -= nb) == 0) { in __ovfl_put()
|
| /openbsd/src/usr.sbin/tcpdump/ |
| D | print-netbios.c | 49 netbios_print(struct p8022Hdr *nb, u_int length) in netbios_print() argument 56 TCHECK(*nb); in netbios_print() 58 if (nb->flags == UI) in netbios_print() 64 netbios_decode(nb, (u_char *)nb + p8022Size, length - p8022Size); in netbios_print()
|
| /openbsd/src/gnu/usr.bin/perl/ext/B/t/ |
| D | showlex.t | 30 my ($na,$nb,$nc); # holds regex-strs 45 $nb = padrep('$b',$newlex); 47 like ($out, qr/2: $nb/ms, 'found $b in "my ($a,$b)"'); 57 $nb = padrep('$bar',$newlex); 59 like ($buf, qr/2: $nb/ms, 'found $bar in "sub { my ($foo,$bar) }"'); 70 $nb = padrep('@arr',$newlex); 73 like ($buf, qr/2: $nb/ms, 'found @arr in "'. $src .'"');
|
| /openbsd/src/sys/dev/pci/drm/include/drm/ |
| D | drm_privacy_screen_consumer.h | 29 struct notifier_block *nb); 31 struct notifier_block *nb); 54 struct notifier_block *nb) in drm_privacy_screen_register_notifier() argument 59 struct notifier_block *nb) in drm_privacy_screen_unregister_notifier() argument
|
| /openbsd/src/sys/dev/pci/drm/i915/ |
| D | i915_iosf_mbi.h | 24 int iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb) in iosf_mbi_register_pmic_bus_access_notifier() argument 30 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb) in iosf_mbi_unregister_pmic_bus_access_notifier_unlocked() argument 36 int iosf_mbi_unregister_pmic_bus_access_notifier(struct notifier_block *nb) in iosf_mbi_unregister_pmic_bus_access_notifier() argument
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
| D | 921011-1.c | 2 fun (nb) in fun() argument 3 int nb; in fun() 7 while (nb--)
|
| /openbsd/src/lib/libcurses/tinfo/ |
| D | alloc_ttype.c | 56 merge_names(char **dst, char **a, int na, char **b, int nb) in merge_names() argument 59 while (na > 0 && nb > 0) { in merge_names() 66 nb--; in merge_names() 70 na--, nb--; in merge_names() 76 while (nb-- > 0) { in merge_names() 428 int nb; in _nc_align_termtype() local 432 nb = from ? ((int) NUM_EXT_NAMES(from)) : 0; in _nc_align_termtype() 436 nb, from ? NonNull(from->term_names) : "?")); in _nc_align_termtype() 438 if (to != NULL && from != NULL && (na != 0 || nb != 0)) { in _nc_align_termtype() 442 if ((na == nb) /* check if the arrays are equivalent */ in _nc_align_termtype() [all …]
|
| /openbsd/src/usr.bin/ssh/ |
| D | poly1305.c | 34 uint32_t b, nb; in poly1305_auth() local 139 nb = ~b; in poly1305_auth() 140 h0 = (h0 & nb) | (g0 & b); in poly1305_auth() 141 h1 = (h1 & nb) | (g1 & b); in poly1305_auth() 142 h2 = (h2 & nb) | (g2 & b); in poly1305_auth() 143 h3 = (h3 & nb) | (g3 & b); in poly1305_auth() 144 h4 = (h4 & nb) | (g4 & b); in poly1305_auth()
|
| /openbsd/src/gnu/usr.bin/perl/cpan/CPAN-Meta-YAML/t/tml-spec/ |
| D | basic-data.tml | 11 "a\nb": c 13 {"a\nb":"c"} 15 # "a\nb": c
|
| /openbsd/src/usr.bin/make/ |
| D | buf.c | 84 #define DO_STAT_BUF(bp, nb) \ argument 107 BufExpand(Buffer bp, size_t nb) in BufExpand() argument 111 DO_STAT_BUF(bp, nb); in BufExpand() 120 } while (size - occupied < nb+1+BUF_MARGIN); in BufExpand()
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/intl/ |
| D | loadmsgcat.c | 132 long int nb = (long int) read (fd, read_ptr, to_read); local 133 if (nb == -1) 139 read_ptr += nb; 140 to_read -= nb;
|
| /openbsd/src/gnu/usr.bin/binutils/intl/ |
| D | loadmsgcat.c | 132 long int nb = (long int) read (fd, read_ptr, to_read); local 133 if (nb == -1) 139 read_ptr += nb; 140 to_read -= nb;
|
| /openbsd/src/usr.bin/col/ |
| D | col.c | 349 int half, i, nb; in flush_blanks() local 352 nb = nblank_lines; in flush_blanks() 353 if (nb & 1) { in flush_blanks() 357 nb++; in flush_blanks() 359 nb /= 2; in flush_blanks() 360 for (i = nb; --i >= 0;) in flush_blanks() 369 if (!nb) in flush_blanks()
|
| /openbsd/src/usr.sbin/pppd/ |
| D | ccp.c | 666 int len, clen, type, nb; in ccp_reqci() local 699 ho->deflate_size = nb = DEFLATE_SIZE(p[2]); in ccp_reqci() 702 || nb > ao->deflate_size || nb < DEFLATE_MIN_SIZE) { in ccp_reqci() 723 if (res < 0 || nb == DEFLATE_MIN_SIZE || dont_nak) { in ccp_reqci() 729 --nb; in ccp_reqci() 730 p[2] = DEFLATE_MAKE_OPT(nb); in ccp_reqci() 742 ho->bsd_bits = nb = BSD_NBITS(p[2]); in ccp_reqci() 744 || nb > ao->bsd_bits || nb < BSD_MIN_BITS) { in ccp_reqci() 764 if (res < 0 || nb == BSD_MIN_BITS || dont_nak) { in ccp_reqci() 771 --nb; in ccp_reqci() [all …]
|
| /openbsd/src/sys/dev/pci/drm/i915/gt/uc/ |
| D | intel_huc.c | 179 static int gsc_notifier(struct notifier_block *nb, unsigned long action, void *data) in gsc_notifier() argument 185 struct intel_huc *huc = container_of(nb, struct intel_huc, delayed_load.nb); in gsc_notifier() 214 huc->delayed_load.nb.notifier_call = gsc_notifier; in intel_huc_register_gsc_notifier() 215 ret = bus_register_notifier(bus, &huc->delayed_load.nb); in intel_huc_register_gsc_notifier() 218 huc->delayed_load.nb.notifier_call = NULL; in intel_huc_register_gsc_notifier() 225 if (!huc->delayed_load.nb.notifier_call) in intel_huc_unregister_gsc_notifier() 230 bus_unregister_notifier(bus, &huc->delayed_load.nb); in intel_huc_unregister_gsc_notifier() 231 huc->delayed_load.nb.notifier_call = NULL; in intel_huc_unregister_gsc_notifier()
|
| /openbsd/src/sys/dev/pci/drm/include/asm/ |
| D | iosf_mbi.h | 35 iosf_mbi_register_pmic_bus_access_notifier(struct notifier_block *nb) in iosf_mbi_register_pmic_bus_access_notifier() argument 41 iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(struct notifier_block *nb) in iosf_mbi_unregister_pmic_bus_access_notifier_unlocked() argument
|