HomeSort by: relevance | last modified time | path
    Searched defs:nb (Results 1 - 25 of 47) sorted by relevancy

1 2

  /src/usr.bin/talk/
io.c 64 int nb; local in function:talk
79 nb = poll(set, 2, A_LONG_TIME * 1000);
80 if (nb <= 0) {
89 nb = read(sockt, buf, sizeof buf);
90 if (nb <= 0) {
94 display(&his_win, buf, nb);
101 ioctl(0, FIONREAD, (void *) &nb);
102 nb = read(0, buf, nb);
103 display(&my_win, buf, nb);
    [all...]
  /src/sys/crypto/blake2/
blake2s.h 43 uint8_t nb; /* number of bytes in buffer */ member in struct:blake2s
  /src/lib/libc/db/btree/
bt_overflow.c 87 uint32_t sz, nb, plen; local in function:__ovfl_get
114 for (p = *buf;; p = (char *)p + nb, pg = h->nextpg) {
118 nb = MIN(sz, plen);
119 memmove(p, (char *)(void *)h + BTDATAOFF, nb);
122 if ((sz -= nb) == 0)
145 uint32_t sz, nb, plen; local in function:__ovfl_put
169 nb = MIN(sz, plen);
170 (void)memmove((char *)(void *)h + BTDATAOFF, p, (size_t)nb);
178 if ((sz -= nb) == 0) {
  /src/lib/libc/gdtoa/
strtoIg.c 44 int i, nb, nw, nw1, rv, rv1, swap; local in function:strtoIg
62 nb = fpi->nbits;
63 nb1 = nb & 31;
98 b1 = set_ones(b1, nb);
strtodg.c 187 int bdif, e, j, k, k1, nb, rv; local in function:rvOK
191 bdif -= nb = fpi->nbits;
198 if (P == nb) {
241 if ( (j = nb & kmask) !=0)
259 if (k > nb || fpi->sudden_underflow) {
291 copybits(bits, nb, b);
  /src/sys/arch/atari/stand/libsa/
diskio.c 97 size_t nb = size >> 9; local in function:rootstrategy
99 if ((flag == F_READ) && !(size & 511) && (stb + nb <= dd->rend)) {
100 if (!dd->rds(buf, stb, nb)) {
  /src/sys/net/npf/
npf_ext_log.c 106 struct nbuf *nb = npc->npc_nbuf; local in function:npf_log
107 npf_ifmap_copyname(npc->npc_ctx, nb ? nb->nb_ifid : 0,
  /src/sys/external/bsd/drm2/include/linux/
interval_tree.h 55 const struct interval_tree_node *nb = vb; local in function:interval_tree_compare_nodes
57 if (na->start < nb->start)
59 if (na->start > nb->start)
61 if (na->last < nb->last)
63 if (na->last > nb->last)
  /src/sys/sys/
sha3.h 37 unsigned nb; /* number of bytes remaining to fill buffer */ member in struct:sha3
  /src/sys/ufs/ext2fs/
ext2fs_balloc.c 99 daddr_t nb; local in function:ext2fs_balloc
127 nb = fs2h32(ip->i_e2fs_blocks[bn]);
128 if (nb != 0) {
183 nb = fs2h32(ip->i_e2fs_blocks[EXT2FS_NDADDR + indirs[0].in_off]);
186 if (nb == 0) {
191 nb = newb;
192 *allocblk++ = nb;
219 nb = fs2h32(bap[indirs[i].in_off]);
223 if (nb != 0) {
233 nb = newb
    [all...]
ext2fs_inode.c 494 * NB: triple indirect blocks are untested.
505 daddr_t nb, nlbn, last; local in function:ext2fs_indirtrunc
572 nb = fs2h32(bap[i]);
573 if (nb == 0)
576 error = ext2fs_indirtrunc(ip, nlbn, EXT2_FSBTODB(fs, nb),
583 ext2fs_blkfree(ip, nb);
593 nb = fs2h32(bap[i]);
594 if (nb != 0) {
595 error = ext2fs_indirtrunc(ip, nlbn, EXT2_FSBTODB(fs, nb),
  /src/usr.bin/flock/
flock.c 53 { "nb", no_argument, 0, 'n' },
95 int nb = l & LOCK_NB; local in function:lock2name
98 if (nb)
114 snprintf(buf, sizeof(buf), "*%d*", l | nb);
  /src/usr.sbin/makefs/ffs/
ffs_balloc.c 89 int32_t nb; local in function:ffs_balloc_ufs1
118 nb = lastlbn;
119 osize = ffs_blksize(fs, ip, nb);
131 nb = ufs_rw32(ip->i_ffs1_db[lbn], needswap);
132 if (nb != 0 && ip->i_ffs1_size >= ffs_lblktosize(fs, lbn + 1)) {
150 if (nb != 0) {
224 nb = ufs_rw32(ip->i_ffs1_ib[indirs[0].in_off], needswap);
227 if (nb == 0) {
232 nb = newb;
233 *allocblk++ = nb;
339 daddr_t newb, pref, nb; local in function:ffs_balloc_ufs2
    [all...]
  /src/games/dab/
algor.cc 131 BOARD nb(b); local in function:ALGOR::find_max_closure
138 while ((nbox = count_closure(ty, tx, tdir, nb)) != 0)
187 BOARD nb(b); local in function:ALGOR::find_good_turn
193 BOX box(y, x, nb);
194 if (box.count() < 2 && try_good_turn(box, y, x, dir, nb))
239 BOARD nb(b); local in function:ALGOR::find_min_closure1
242 size_t nbox, minbox = nb.nx() * nb.ny() + 1;
246 while (find_bad_turn(ty, tx, tdir, nb, last)) {
249 if ((mv = nb.domove(ty, tx, tdir, getWho())) != 0
    [all...]
  /src/sys/external/bsd/drm2/dist/drm/nouveau/
nouveau_backlight.c 59 const int nb = ida_simple_get(&bl_ida, 0, 0, GFP_KERNEL); local in function:nouveau_get_backlight_name
60 if (nb < 0 || nb >= 100)
62 if (nb > 0)
63 snprintf(backlight_name, BL_NAME_SIZE, "nv_backlight%d", nb);
66 bl->id = nb;
  /src/sys/external/bsd/drm2/drm/
drm_vma_manager.c 45 const struct drm_vma_offset_node *const nb = vb; local in function:drm_vma_node_compare
47 if (na->von_startpage < nb->von_startpage)
49 if (na->von_startpage > nb->von_startpage)
  /src/sys/ufs/ffs/
ffs_balloc.c 81 ffs_extb(struct fs *fs, struct ufs2_dinode *dp, daddr_t nb)
83 return ufs_rw64(dp->di_extb[nb], UFS_FSNEEDSWAP(fs));
119 daddr_t newb, pref, nb; local in function:ffs_balloc_ufs1
149 nb = lastlbn;
150 osize = ffs_blksize(fs, ip, nb);
153 error = ffs_realloccg(ip, nb, ffs_getdb(fs, ip, nb),
154 ffs_blkpref_ufs1(ip, lastlbn, nb, flags,
160 ip->i_size = ffs_lblktosize(fs, nb + 1);
163 ip->i_ffs1_db[nb] = ufs_rw32((u_int32_t)newb, needswap)
537 daddr_t newb, pref, nb; local in function:ffs_balloc_ufs2
    [all...]
ffs_inode.c 623 * NB: triple indirect blocks are untested.
635 daddr_t nb, nlbn, last; local in function:ffs_indirtrunc
732 nb = RBAP(ip, i);
733 if (nb == 0)
740 FFS_FSBTODB(fs, nb), fs->fs_bsize,
749 error = ffs_indirtrunc(ip, nlbn, FFS_FSBTODB(fs, nb),
762 ffs_blkfree(fs, ip->i_devvp, nb, fs->fs_bsize,
774 nb = RBAP(ip, i);
775 if (nb != 0) {
776 error = ffs_indirtrunc(ip, nlbn, FFS_FSBTODB(fs, nb),
    [all...]
  /src/libexec/lfs_cleanerd/
coalesce.c 171 blkcnt_t i, nb, onb; local in function:clean_inode
180 onb = nb = lfs_lblkno(fs, lfs_dino_getsize(fs, dip));
183 if (nb < ULFS_NDADDR) {
197 if (nb > lfs_dino_getblocks(fs, dip)) {
199 (uintmax_t)ino, (intmax_t)nb,
216 if (nb > INT64_MAX / sizeof(BLOCK_INFO)) {
218 (uintmax_t)ino, (uintmax_t)nb);
223 bip = (BLOCK_INFO *)malloc(sizeof(BLOCK_INFO) * nb);
226 (unsigned long long)ino, (intmax_t)nb,
231 for (i = 0; i < nb; i++)
    [all...]
  /src/sys/kern/
core_elf32.c 126 struct note_buf *nb; local in function:ELFNAMEEND
139 notesize = ns.ns_count * sizeof nb->nb_data + ns.ns_offset;
264 for (nb = ns.ns_first; nb != NULL; nb = nb->nb_next) {
266 nb->nb_data,
267 nb->nb_next == NULL ? ns.ns_offset : sizeof nb->nb_data),
296 while ((nb = ns.ns_first) != NULL)
552 struct note_buf *nb = ns->ns_last; local in function:save_note_bytes
    [all...]
  /src/usr.bin/rusers/
rusers.c 231 struct netbuf nb; local in function:onehost
250 nb.buf = ai->ai_addr;
251 nb.len = nb.maxlen = ai->ai_addrlen;
252 rusers_reply((char *)&up, &nb, NULL);
  /src/usr.sbin/nfsd/
nfsd.c 145 struct netbuf nb; member in struct:conf
188 cfg->nb.buf = cfg->ai->ai_addr;
189 cfg->nb.len = cfg->nb.maxlen = cfg->ai->ai_addrlen;
191 if (!rpcb_set(RPCPROG_NFS, 2, cfg->nc, &cfg->nb)) {
251 if (!rpcb_set(RPCPROG_NFS, 2, cfg->nc, &cfg->nb) ||
252 !rpcb_set(RPCPROG_NFS, 3, cfg->nc, &cfg->nb)) {
  /src/usr.sbin/fwctl/
fwdv.c 101 int len, tlen, npad, fd, k, m, vec, lsystem = -1, nb; local in function:dvrecv
209 nb = nblocks[lsystem];
217 if (m > 0 && m != nb) {
219 npad = ((nb - m) % nb);
221 npad += nb;
  /src/sys/fs/adosfs/
advnops.c 403 long nb, flblk, flblkoff, fcnt; local in function:adosfs_bmap
437 nb = ap->block; /* pointer to ourself */
439 nb = ap->linkto; /* pointer to real file */
456 nb = ap->lastindblk;
461 if (nb == 0) {
468 error = bread(ap->amp->devvp, nb * ap->amp->bsize / DEV_BSIZE,
475 printf("adosfs: blk %ld failed cksum.\n", nb);
485 ap->lastindblk = nb;
487 nb = adoswordn(flbp, ap->nwords - 2);
  /src/games/hack/
hack.pri.c 716 char *ob = oldbot, *nb = newbot; local in function:bot
768 if (*ob != *nb) {
770 (void) putchar(*nb ? *nb : ' ');
775 if (*nb)
776 nb++;

Completed in 21 milliseconds

1 2