Home
last modified time | relevance | path

Searched refs:nb (Results 1 – 25 of 59) sorted by relevance

123

/mirbsd/src/sys/ufs/ffs/
Dffs_balloc.c63 daddr_t nb; in ffs_balloc() local
88 nb = lblkno(fs, ip->i_ffs_size); in ffs_balloc()
89 if (nb < NDADDR && nb < lbn) { in ffs_balloc()
90 osize = blksize(fs, ip, nb); in ffs_balloc()
92 error = ffs_realloccg(ip, nb, in ffs_balloc()
93 ffs_blkpref(ip, nb, (int)nb, &ip->i_ffs_db[0]), in ffs_balloc()
98 softdep_setup_allocdirect(ip, nb, newb, in ffs_balloc()
99 ip->i_ffs_db[nb], fs->fs_bsize, osize, in ffs_balloc()
102 ip->i_ffs_size = lblktosize(fs, nb + 1); in ffs_balloc()
104 ip->i_ffs_db[nb] = newb; in ffs_balloc()
[all …]
Dffs_inode.c441 daddr_t *copy = NULL, nb, nlbn, last; local
504 nb = bap[i];
505 if (nb == 0)
508 error = ffs_indirtrunc(ip, nlbn, fsbtodb(fs, nb),
515 ffs_blkfree(ip, nb, fs->fs_bsize);
524 nb = bap[i];
525 if (nb != 0) {
526 error = ffs_indirtrunc(ip, nlbn, fsbtodb(fs, nb),
/mirbsd/src/usr.sbin/makefs/ffs/
Dffs_balloc.c89 int32_t nb; in ffs_balloc_ufs1() local
118 nb = lastlbn; in ffs_balloc_ufs1()
119 osize = blksize(fs, ip, nb); in ffs_balloc_ufs1()
131 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap); in ffs_balloc_ufs1()
132 if (nb != 0 && (off_t)ip->i_ffs1_size >= lblktosize(fs, lbn + 1)) { in ffs_balloc_ufs1()
151 if (nb != 0) { in ffs_balloc_ufs1()
226 nb = ufs_rw32(ip->i_ffs1_ib[indirs[0].in_off], needswap); in ffs_balloc_ufs1()
229 if (nb == 0) { in ffs_balloc_ufs1()
234 nb = newb; in ffs_balloc_ufs1()
235 *allocblk++ = nb; in ffs_balloc_ufs1()
[all …]
/mirbsd/src/usr.sbin/map-mbone/
Dmapper.c151 Neighbor *nb; in find_neighbor() local
153 for (nb = ifc->neighbors; nb; nb = nb->next) in find_neighbor()
154 if (nb->addr == addr) in find_neighbor()
155 return nb; in find_neighbor()
387 Neighbor *nb; in accept_neighbors() local
400 for (nb = old_neighbors; nb; nb = nb->next) in accept_neighbors()
401 if (nb->addr == neighbor) { in accept_neighbors()
402 if (metric != nb->metric || threshold != nb->threshold) in accept_neighbors()
406 inet_fmt(nb->addr, s1), inet_fmt(node->addr, s2)); in accept_neighbors()
410 nb = (Neighbor *) malloc(sizeof(Neighbor)); in accept_neighbors()
[all …]
/mirbsd/src/usr.bin/talk/
Dio.c66 int nb; in talk() local
88 nb = poll(fds, 2, A_LONG_TIME * 1000); in talk()
93 if (nb <= 0) { in talk()
101 nb = read(sockt, buf, sizeof buf); in talk()
102 if (nb <= 0) in talk()
104 display(&his_win, buf, nb); in talk()
111 ioctl(0, FIONREAD, &nb); in talk()
112 nb = read(STDIN_FILENO, buf, nb); in talk()
113 display(&my_win, buf, nb); in talk()
115 write(sockt, buf, nb); in talk()
/mirbsd/src/sys/ufs/ext2fs/
Dext2fs_balloc.c63 ufs1_daddr_t nb; in ext2fs_buf_alloc() local
83 nb = fs2h32(ip->i_e2fs_blocks[bn]); in ext2fs_buf_alloc()
84 if (nb != 0) { in ext2fs_buf_alloc()
127 nb = fs2h32(ip->i_e2fs_blocks[NDADDR + indirs[0].in_off]); in ext2fs_buf_alloc()
130 if (nb == 0) { in ext2fs_buf_alloc()
135 nb = newb; in ext2fs_buf_alloc()
136 *allocblk++ = nb; in ext2fs_buf_alloc()
163 nb = fs2h32(bap[indirs[i].in_off]); in ext2fs_buf_alloc()
167 if (nb != 0) { in ext2fs_buf_alloc()
177 nb = newb; in ext2fs_buf_alloc()
[all …]
Dext2fs_inode.c449 ufs1_daddr_t *copy = NULL, nb, nlbn, last; local
509 nb = fs2h32(bap[i]);
510 if (nb == 0)
513 error = ext2fs_indirtrunc(ip, nlbn, fsbtodb(fs, nb),
520 ext2fs_blkfree(ip, nb);
529 nb = fs2h32(bap[i]);
530 if (nb != 0) {
531 error = ext2fs_indirtrunc(ip, nlbn, fsbtodb(fs, nb),
/mirbsd/src/lib/libssl/src/crypto/bn/asm/x86/
Dcomba.pl6 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
23 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # laod next b
24 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # laod next b
34 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
53 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb);
63 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
89 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb);
147 $nb=($bi+1);
152 $nb=$bs+($i >= ($num-1));
155 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb);
[all …]
/mirbsd/src/lib/libssl/src/crypto/bn/asm/
Dco-586.pl17 local($a,$ai,$b,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
34 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 0; # laod next b
35 &mov("edx",&DWP(($nb)*4,$b,"",0)) if $pos == 1; # laod next b
45 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
64 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos == 1) && ($na != $nb);
74 local($r,$a,$ai,$bi,$c0,$c1,$c2,$pos,$i,$na,$nb)=@_;
100 &mov("edx",&DWP(($nb)*4,$a,"",0)) if ($pos <= 1) && ($na != $nb);
158 $nb=($bi+1);
163 $nb=$bs+($i >= ($num-1));
166 &mul_add_c($a,$ai,$b,$bi,$c0,$c1,$c2,$v,$i,$na,$nb);
[all …]
/mirbsd/src/usr.sbin/ppp/ppp/
Dmbuf.c199 int nb; in mbuf_Read() local
204 nb = bp->m_len; in mbuf_Read()
206 nb = len; in mbuf_Read()
207 if (nb) { in mbuf_Read()
209 memcpy(ptr, tmp, nb); in mbuf_Read()
210 ptr += nb; in mbuf_Read()
211 bp->m_len -= nb; in mbuf_Read()
212 len -= nb; in mbuf_Read()
213 bp->m_offset += nb; in mbuf_Read()
228 size_t nb, l = len; in mbuf_View() local
[all …]
Dip.c553 const unsigned char *packet, int nb, struct filter *filter, in PacketCheck() argument
623 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb); in PacketCheck()
637 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), len, nb); in PacketCheck()
659 len, nb); in PacketCheck()
676 nb - (payload - packet) - sizeof *uh - 4, filter, in PacketCheck()
711 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck()
724 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck()
737 "%s (%d/%d)", ncpaddr_ntoa(&dstaddr), datalen, nb); in PacketCheck()
743 result = PacketCheck(bundle, AF_INET6, payload, nb - (payload - packet), in PacketCheck()
764 result = PacketCheck(bundle, AF_INET, payload, nb - (payload - packet), in PacketCheck()
[all …]
Dalias_nbt.c338 NBTNsRNB *nb; in AliasHandleResourceNB() local
347 nb = (NBTNsRNB *)((u_char *)q + SizeOfNsResource); in AliasHandleResourceNB()
354 while ( nb != NULL && bcount != 0 ) { in AliasHandleResourceNB()
355 if ((char *)(nb + 1) > pmax) { in AliasHandleResourceNB()
356 nb = NULL; in AliasHandleResourceNB()
360 printf("<%s>", inet_ntoa(nb->addr) ); in AliasHandleResourceNB()
362 if (!memcmp(&nbtarg->oldaddr,&nb->addr, sizeof(struct in_addr) ) ) { in AliasHandleResourceNB()
367 sptr = (u_short *) &(nb->addr); in AliasHandleResourceNB()
376 nb->addr = nbtarg->newaddr; in AliasHandleResourceNB()
386 nb=(NBTNsRNB *)((u_char *)nb + SizeOfNsRNB); in AliasHandleResourceNB()
[all …]
/mirbsd/src/lib/libc/db/btree/
Dbt_overflow.c78 size_t nb, plen; in __ovfl_get() local
104 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) { in __ovfl_get()
108 nb = MIN(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 = MIN(sz, plen); in __ovfl_put()
154 memmove((char *)h + BTDATAOFF, p, nb); in __ovfl_put()
162 if ((sz -= nb) == 0) { in __ovfl_put()
/mirbsd/src/usr.bin/oldroff/tbl/
Dt3.c77 char line[BUFSIZ], *cp, nb[25], *t; in getcomm() local
105 t=nb; in getcomm()
113 if (nb[0]) in getcomm()
114 *(lp->optadd) = nb[0]; in getcomm()
117 printf(".nr %d %s\n", LSIZE, nb); in getcomm()
120 delim1 = nb[0]; in getcomm()
121 delim2 = nb[1]; in getcomm()
/mirbsd/src/gnu/usr.bin/perl/ext/B/t/
Dshowlex.t53 my ($na,$nb,$nc); # holds regex-strs
68 $nb = padrep('$b',$newlex);
70 like ($out, qr/2: $nb/ms, 'found $b in "my ($a,$b)"');
84 $nb = padrep('$bar',$newlex);
86 like ($buf, qr/2: $nb/ms, 'found $bar in "sub { my ($foo,$bar) }"');
97 $nb = padrep('@arr',$newlex);
100 like ($buf, qr/2: $nb/ms, 'found @arr in "'. $src .'"');
/mirbsd/src/gnu/usr.bin/perl/t/op/
Dre_tests503 ((?s)^a(.))((?m)^b$) a\nb\nc\n y $1;$2;$3 a\n;\n;b
504 ((?m)^b$) a\nb\nc\n y $1 b
505 (?m)^b a\nb\n y $& b
506 (?m)^(b) a\nb\n y $1 b
507 ((?m)^b) a\nb\n y $1 b
508 \n((?m)^b) a\nb\n y $1 b
509 ((?s).)c(?!.) a\nb\nc\n y $1 \n
510 ((?s).)c(?!.) a\nb\nc\n y $1:$& \n:\nc
511 ((?s)b.)c(?!.) a\nb\nc\n y $1 b\n
512 ((?s)b.)c(?!.) a\nb\nc\n y $1:$& b\n:b\nc
[all …]
Dsubst.t456 my($na, $nb) = ("\x{ff}", "\x{fe}");
467 $a = "$na--$nb";
469 is($b, "$na$ua$nb", "s///: replace utf8 into non-utf8");
471 is($b, "$na--$ua--$nb", "s///: replace long utf8 into non-utf8");
483 $a = "$na--$nb";
485 is($b, "$na$ua$nb", "s///: replace utf8 into non-utf8 (utf8 pattern)");
487 is($b, "$na--$ua--$nb", "s///: replace long utf8 into non-utf8 (utf8 pattern)");
489 is($b, "$na$na$nb", "s///: replace non-utf8 into non-utf8 (utf8 pattern)");
491 is($b, "$na--$na--$nb", "s///: replace long non-utf8 into non-utf8 (utf8 pattern)");
/mirbsd/src/usr.bin/vi/ex/
Dex_usage.c65 char *name, *p, nb[MAXCMDNAMELEN + 5]; local
115 nb[0] = '[';
116 nb[1] = toupper(cp->name[0]);
117 nb[2] = cp->name[0];
118 nb[3] = ']';
120 p = nb + 4; (*p++ = *name++) != '\0';);
121 name = nb;
/mirbsd/src/lib/libncurses/src/ncurses/tinfo/
Dalloc_ttype.c54 merge_names(char **dst, char **a, int na, char **b, int nb) in merge_names() argument
57 while (na > 0 && nb > 0) { in merge_names()
64 nb--; in merge_names()
68 na--, nb--; in merge_names()
74 while (nb-- > 0) { in merge_names()
379 int nb = NUM_EXT_NAMES(from); in _nc_align_termtype() local
386 nb, from->term_names)); in _nc_align_termtype()
388 if (na != 0 || nb != 0) { in _nc_align_termtype()
389 if ((na == nb) /* check if the arrays are equivalent */ in _nc_align_termtype()
408 ext_Names = typeMalloc(char *, na + nb); in _nc_align_termtype()
[all …]
/mirbsd/src/lib/libssl/src/crypto/x509/
Dx509_cmp.c292 X509_NAME_ENTRY *na,*nb; in X509_NAME_cmp() local
303 nb=sk_X509_NAME_ENTRY_value(b->entries,i); in X509_NAME_cmp()
304 j=na->value->type-nb->value->type; in X509_NAME_cmp()
308 nbbit = ASN1_tag2bit(nb->value->type); in X509_NAME_cmp()
312 j = asn1_string_memcmp(na->value, nb->value); in X509_NAME_cmp()
315 j=nocase_spacenorm_cmp(na->value, nb->value); in X509_NAME_cmp()
318 j=nocase_cmp(na->value, nb->value); in X509_NAME_cmp()
320 j = asn1_string_memcmp(na->value, nb->value); in X509_NAME_cmp()
322 j=na->set-nb->set; in X509_NAME_cmp()
332 nb=sk_X509_NAME_ENTRY_value(b->entries,i); in X509_NAME_cmp()
[all …]
/mirbsd/src/usr.bin/make/
Dbuf.c80 #define DO_STAT_BUF(bp, nb) \ argument
92 #define BufExpand(bp,nb) \ argument
96 DO_STAT_BUF(bp, nb); \
100 } while (size - occupied < (nb)+1+BUF_MARGIN); \
/mirbsd/src/usr.bin/file/
Dfuncs.c128 file_buffer(struct magic_set *ms, const void *buf, size_t nb) in file_buffer() argument
132 if ((m = file_zmagic(ms, buf, nb)) == 0) { in file_buffer()
134 if ((m = file_is_tar(ms, buf, nb)) == 0) { in file_buffer()
136 if ((m = file_softmagic(ms, buf, nb)) == 0) { in file_buffer()
138 if ((m = file_ascmagic(ms, buf, nb)) == 0) { in file_buffer()
/mirbsd/src/usr.bin/col/
Dcol.c419 int half, i, nb; in flush_blanks() local
422 nb = nblank_lines; in flush_blanks()
423 if (nb & 1) { in flush_blanks()
427 nb++; in flush_blanks()
429 nb /= 2; in flush_blanks()
430 for (i = nb; --i >= 0;) in flush_blanks()
435 if (!nb) in flush_blanks()
/mirbsd/src/usr.sbin/pppd/
Dccp.c706 int len, clen, type, nb; local
739 ho->deflate_size = nb = DEFLATE_SIZE(p[2]);
742 || nb > ao->deflate_size || nb < DEFLATE_MIN_SIZE) {
763 if (res < 0 || nb == DEFLATE_MIN_SIZE || dont_nak) {
769 --nb;
770 p[2] = DEFLATE_MAKE_OPT(nb);
782 ho->bsd_bits = nb = BSD_NBITS(p[2]);
784 || nb > ao->bsd_bits || nb < BSD_MIN_BITS) {
804 if (res < 0 || nb == BSD_MIN_BITS || dont_nak) {
811 --nb;
[all …]
/mirbsd/src/lib/libssl/src/crypto/bn/
Dbn_mul.c746 void bn_mul_normal(BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) in bn_mul_normal() argument
751 printf(" bn_mul_normal %d * %d\n",na,nb); in bn_mul_normal()
754 if (na < nb) in bn_mul_normal()
759 itmp=na; na=nb; nb=itmp; in bn_mul_normal()
768 if (--nb <= 0) return; in bn_mul_normal()
770 if (--nb <= 0) return; in bn_mul_normal()
772 if (--nb <= 0) return; in bn_mul_normal()
774 if (--nb <= 0) return; in bn_mul_normal()

123