Home
last modified time | relevance | path

Searched refs:b_buf (Results 1 – 21 of 21) sorted by relevance

/netbsd-src/usr.bin/tsort/
H A Dtsort.c99 char *b_buf; member
161 b->b_buf = erealloc(NULL, b->b_bsize = 1024); in main()
174 b->b_buf[nused++] = (char)c; in main()
176 b->b_buf = erealloc(b->b_buf, bsize *= 2); in main()
180 b->b_buf[nused] = '\0'; in main()
184 add_arc(bufs[1].b_buf, bufs[0].b_buf); in main()
186 add_arc(bufs[0].b_buf, bufs[1].b_buf); in main()
/netbsd-src/sbin/fsck_ext2fs/
H A Dpass5.c219 if (debug && memcmp(blk_bitmap->b_un.b_buf, bbmap, fs->e2fs_bsize)) { in pass5()
221 print_bmap(blk_bitmap->b_un.b_buf, fs->e2fs_bsize); in pass5()
228 if (memcmp(blk_bitmap->b_un.b_buf, bbmap, fs->e2fs_bsize) && in pass5()
230 memcpy(blk_bitmap->b_un.b_buf, bbmap, fs->e2fs_bsize); in pass5()
233 if (debug && memcmp(ino_bitmap->b_un.b_buf, ibmap, fs->e2fs_bsize)) { in pass5()
235 print_bmap(ino_bitmap->b_un.b_buf, fs->e2fs_bsize); in pass5()
241 if (memcmp(ino_bitmap->b_un.b_buf, ibmap, fs->e2fs_bsize) && in pass5()
243 memcpy(ino_bitmap->b_un.b_buf, ibmap, fs->e2fs_bsize); in pass5()
H A Ddir.c180 memcpy(bp->b_un.b_buf + idesc->id_loc - dsize, dbuf, in dirscan()
208 dp = (struct ext2fs_direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
215 dp = (struct ext2fs_direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
231 dp = (struct ext2fs_direct *)(bp->b_un.b_buf + dploc); in fsck_readdir()
236 ndp = (struct ext2fs_direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
246 dp = (struct ext2fs_direct *)(bp->b_un.b_buf + dploc); in fsck_readdir()
579 memcpy(firstblk, bp->b_un.b_buf, sblock.e2fs_bsize); in expanddir()
585 memcpy(bp->b_un.b_buf, firstblk, sblock.e2fs_bsize); in expanddir()
593 memcpy(bp->b_un.b_buf, &emptydir, sizeof emptydir); in expanddir()
646 memcpy(bp->b_un.b_buf, dirp, sizeof(struct ext2fs_dirtemplate)); in allocdir()
H A Dutilities.c167 bp->b_un.b_buf = bufp; in bufinit()
216 bp->b_errs = bread(fsreadfd, bp->b_un.b_buf, dblk, size); in getblk()
235 bwrite(fd, bp->b_un.b_buf, bp->b_bno, (long)bp->b_size); in flush()
281 free(bp->b_un.b_buf); in ckfini()
H A Dsetup.c148 sblk.b_un.b_buf = malloc(SBSIZE); in setup()
149 asblk.b_un.b_buf = malloc(SBSIZE); in setup()
150 if (sblk.b_un.b_buf == NULL || asblk.b_un.b_buf == NULL) in setup()
H A Dfsck.h87 char *b_buf; /* buffer space */ member
H A Dinode.c408 dp = (struct ext2fs_dinode *)(pbp->b_un.b_buf + in ginode()
/netbsd-src/sbin/fsck_ffs/
H A Ddir.c199 dp = (struct direct *)(bp->b_un.b_buf + off); in dirscan()
228 memmove(bp->b_un.b_buf + idesc->id_loc - dsize, dbuf, in dirscan()
253 dp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
260 dp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
278 dp = (struct direct *)(bp->b_un.b_buf + dploc); in fsck_readdir()
283 ndp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir()
293 dp = (struct direct *)(bp->b_un.b_buf + dploc); in fsck_readdir()
794 memmove(firstblk, bp->b_un.b_buf, dirblksiz); in expanddir()
798 memmove(bp->b_un.b_buf, firstblk, dirblksiz); in expanddir()
800 for (cp = &bp->b_un.b_buf[dirblksiz]; in expanddir()
[all …]
H A Dquota2.c66 quota2_create_blk0(sblock->fs_bsize, bp->b_un.b_buf, in quota2_create_inode()
80 struct quota2_header *q2h = (void *)hbp->b_un.b_buf; in quota2_alloc_quota()
93 quota2_addfreeq2e(q2h, bp->b_un.b_buf, baseoff, in quota2_alloc_quota()
112 q2e = (void *)((caddr_t)(bp->b_un.b_buf) + in quota2_alloc_quota()
159 q2e = (void *)((caddr_t)(bp->b_un.b_buf) + in quota2_walk_list()
309 q2h = (void *)hbp->b_un.b_buf; in quota2_check_inode()
352 q2h = (void *)hbp->b_un.b_buf; in quota2_check_inode()
402 q2e = (void *)((caddr_t)(bp->b_un.b_buf) + off); in quota2_check_inode()
485 q2h = (void *)hbp->b_un.b_buf; in quota2_check_usage()
H A Dutilities.c141 cgblk.b_un.b_buf = bufp; in bufinit()
147 appleufsblk.b_un.b_buf = bufp; in bufinit()
167 bp->b_un.b_buf = bufp; in bufinit()
216 bp->b_errs = bread(fsreadfd, bp->b_un.b_buf, dblk, size); in getblk()
236 bwrite(fd, bp->b_un.b_buf, bp->b_bno, (long)bp->b_size); in flush()
294 free(appleufsblk.b_un.b_buf); in ckfini()
297 free(cgblk.b_un.b_buf); in ckfini()
302 free(bp->b_un.b_buf); in ckfini()
H A Dsetup.c130 sblk.b_un.b_buf = aligned_alloc(DEV_BSIZE, SBLOCKSIZE); in setup()
132 asblk.b_un.b_buf = aligned_alloc(DEV_BSIZE, SBLOCKSIZE); in setup()
134 if (sblk.b_un.b_buf == NULL || asblk.b_un.b_buf == NULL || in setup()
H A Dpass5.c231 bwrite(fswritefd, sblk.b_un.b_buf, in pass5()
261 bwrite(fswritefd, sblk.b_un.b_buf, in pass5()
H A Dinode.c341 return ((union dinode *)((caddr_t)pbp->b_un.b_buf + blkoff)); in ginode()
344 return ((union dinode *)((caddr_t)pbp->b_un.b_buf + blkoff)); in ginode()
946 memset(bp->b_un.b_buf, 0, sblock->fs_bsize); in getnewblk()
H A Dfsck.h115 char *b_buf; /* buffer space */ member
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Darc.c1004 arc_buf_t *b_buf; member
2109 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_evictable_space_increment()
2120 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_evictable_space_increment()
2145 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_evitable_space_decrement()
2157 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_evitable_space_decrement()
2181 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in add_reference()
2277 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_change_state()
2295 ASSERT3P(hdr->b_l1hdr.b_buf, ==, NULL); in arc_change_state()
2331 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_change_state()
2386 for (arc_buf_t *buf = hdr->b_l1hdr.b_buf; buf != NULL; in arc_change_state()
[all …]
/netbsd-src/tests/net/if/
H A Dt_compat.c36 void *b_buf; member
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/ec/
H A Dec_asn1.c376 unsigned char *a_buf = NULL, *b_buf = NULL; in ec_asn1_group2curve() local
400 || (b_buf = OPENSSL_malloc(len)) == NULL) { in ec_asn1_group2curve()
405 || BN_bn2binpad(tmp_2, b_buf, len) < 0) { in ec_asn1_group2curve()
412 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve()
440 OPENSSL_free(b_buf); in ec_asn1_group2curve()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/ec/
H A Dec_asn1.c313 unsigned char *a_buf = NULL, *b_buf = NULL; in ec_asn1_group2curve() local
337 || (b_buf = OPENSSL_malloc(len)) == NULL) { in ec_asn1_group2curve()
342 || BN_bn2binpad(tmp_2, b_buf, len) < 0) { in ec_asn1_group2curve()
349 || !ASN1_OCTET_STRING_set(curve->b, b_buf, len)) { in ec_asn1_group2curve()
377 OPENSSL_free(b_buf); in ec_asn1_group2curve()
/netbsd-src/sys/compat/net/
H A Dif.h85 void *b_buf; member
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_ioctl.h269 netbsd32_caddr_t b_buf; member
296 netbsd32_caddr_t b_buf; member
/netbsd-src/sys/net/
H A Dif.h859 void *b_buf; member
876 #define ifr_buf ifr_ifru.ifru_b.b_buf /* new interface ioctls */