/freebsd-current/sys/rpc/ |
H A D | types.h | 65 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO) 66 #define mem_free(ptr, bsize) free(ptr, M_RPC) 68 #define mem_alloc(bsize) calloc(1, bsize) 69 #define mem_free(ptr, bsize) free(ptr)
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | stride_dd.c | 24 static int bsize = 0; variable 72 bsize = atoi(optarg); 114 if (bsize <= 0 || count <= 0 || stride <= 0 || ifile == NULL || 151 int err = posix_memalign(&buf, 4096, bsize); 159 if (lseek(ofd, seek * bsize, SEEK_CUR) == -1) { 166 c = read(ifd, buf, bsize); 167 if (c != bsize) { 172 if (c != bsize) { 179 c, bsize); 184 c = write(ofd, buf, bsize); [all...] |
/freebsd-current/sbin/newfs/ |
H A D | newfs.h | 66 #define MAXBLKPG(bsize) ((bsize) / sizeof(ufs2_daddr_t)) 95 extern int bsize; /* block size */
|
/freebsd-current/crypto/openssl/include/openssl/ |
H A D | param_build.h | 52 const char *buf, size_t bsize); 54 char *buf, size_t bsize); 56 const void *buf, size_t bsize); 58 void *buf, size_t bsize);
|
H A D | params.h | 86 size_t bsize); 89 size_t bsize); 91 size_t bsize); 93 size_t bsize); 95 size_t bsize);
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
H A D | file_trunc.c | 53 static size_t bsize = BSIZE; variable 107 count = fsize / bsize; 112 bsize = atoi(optarg); 176 buf = (char *)calloc(1, bsize); 177 rbuf = (char *)calloc(1, bsize); 190 if (write(fd, buf, bsize) < bsize) { 201 if (read(fd, rbuf, bsize) < bsize) { 206 if (memcmp(buf, rbuf, bsize) ! [all...] |
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | file_trunc.c | 49 static size_t bsize = BSIZE; variable 105 count = fsize / bsize; 110 bsize = atoi(optarg); 174 buf = (char *)calloc(1, bsize); 175 rbuf = (char *)calloc(1, bsize); 188 if (write(fd, buf, bsize) < bsize) { 199 if (read(fd, rbuf, bsize) < bsize) { 204 if (memcmp(buf, rbuf, bsize) ! [all...] |
/freebsd-current/sys/geom/eli/ |
H A D | pkcs5v2.c | 56 u_int i, bsize, passlen; local 66 for (count = 1; keylen > 0; count++, keylen -= bsize, keyp += bsize) { 67 bsize = MIN(keylen, sizeof(md)); 75 xor(keyp, md, bsize); 81 xor(keyp, md, bsize);
|
/freebsd-current/usr.sbin/makefs/ |
H A D | ffs.h | 49 int bsize; /* block size */ member in struct:__anon6664
|
/freebsd-current/lib/libc/db/test/ |
H A D | run.test | 622 bsize=256 624 echo " bucketsize $bsize, fill factor $ffactor" 626 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 631 bsize=$bsize ffactor=$ffactor nelem=25000 cachesize=65536 failed" 635 bsize=512 637 echo " bucketsize $bsize, fill factor $ffactor" 639 -ibsize=$bsize,ffactor=$ffactor,nelem=25000,cachesize=65536\ 644 bsize=$bsize ffacto [all...] |
/freebsd-current/crypto/openssl/crypto/ |
H A D | param_build.c | 237 const char *buf, size_t bsize) 242 if (bsize == 0) 243 bsize = strlen(buf); 244 if (bsize > INT_MAX) { 249 pd = param_push(bld, key, bsize, bsize + 1, OSSL_PARAM_UTF8_STRING, secure); 257 char *buf, size_t bsize) 261 if (bsize == 0) 262 bsize = strlen(buf); 263 if (bsize > INT_MA 236 OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key, const char *buf, size_t bsize) argument 256 OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key, char *buf, size_t bsize) argument 274 OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD *bld, const char *key, const void *buf, size_t bsize) argument 292 OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD *bld, const char *key, void *buf, size_t bsize) argument [all...] |
/freebsd-current/stand/uboot/ |
H A D | uboot_disk.c | 62 u_int bsize; /* block size */ member in struct:__anon253 118 stor_info[stor_info_no].bsize = 157 if (size % SI(dev).bsize) { 160 size, SI(dev).bsize); 163 bcount = size / SI(dev).bsize; 204 return (disk_open(dev, SI(dev).blocks * SI(dev).bsize, 205 SI(dev).bsize)); 286 *(u_int *)data = SI(dev).bsize; 289 *(uint64_t *)data = SI(dev).bsize * SI(dev).blocks;
|
/freebsd-current/contrib/sendmail/src/ |
H A D | bf.c | 106 size_t bsize; local 114 bsize = ((struct bf_info *) info)->bi_bsize; 140 /* A zero bsize is valid, just don't allocate memory */ 141 if (bsize > 0) 143 bfp->bf_buf = (char *) sm_malloc(bsize); 159 bfp->bf_bufsize = bsize; 190 ** bsize -- amount of buffer space to allocate (may be 0) 216 bfopen(char *filename, MODE_T fmode, size_t bsize, long flags) argument 219 bfopen(filename, fmode, bsize, flags) 222 size_t bsize; 831 int bsize; local [all...] |
/freebsd-current/sbin/fsirand/ |
H A D | fsirand.c | 111 u_int32_t bsize = DEV_BSIZE; local 180 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { 181 warn("can't seek to %jd", (intmax_t)dblk * bsize); 211 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { 213 (intmax_t)dblk * bsize);
|
/freebsd-current/sbin/ggate/ggatel/ |
H A D | ggatel.c | 87 size_t bsize; local 98 bsize = sectorsize; 99 ggio.gctl_data = malloc(bsize); 103 ggio.gctl_length = bsize; 123 bsize = ggio.gctl_length; 136 if ((size_t)ggio.gctl_length > bsize) { 140 bsize = ggio.gctl_length;
|
/freebsd-current/usr.bin/tsort/ |
H A D | tsort.c | 107 int bsize, ch, nused; local 153 bsize = b->b_bsize; 156 if (nused == bsize) 157 b->b_buf = grow_buf(b->b_buf, bsize *= 2); 162 b->b_bsize = bsize; 196 int bsize, i; local 217 bsize = n1->n_arcsize * sizeof(*n1->n_arcs) * 2; 218 n1->n_arcs = grow_buf(n1->n_arcs, bsize); 219 n1->n_arcsize = bsize / sizeof(*n1->n_arcs);
|
/freebsd-current/sys/fs/ext2fs/ |
H A D | ext2_bmap.c | 101 int error, depth, maxrun = 0, bsize; local 110 bsize = EXT2_BLOCK_SIZE(ump->um_e2fs); 114 maxrun = mp->mnt_iosize_max / bsize - 1; 219 int error, num, maxrun = 0, bsize; local 227 bsize = EXT2_BLOCK_SIZE(ump->um_e2fs); 230 maxrun = mp->mnt_iosize_max / bsize - 1; 335 uint64_t bsize; local 350 bsize = mp->mnt_stat.f_iosize; 351 for (bn = *offp / bsize, numblks = howmany(ip->i_size, bsize); [all...] |
/freebsd-current/sys/contrib/zlib/ |
H A D | zutil.c | 204 ulg bsize = (ulg)items*size; local 211 if (bsize < 65520L) { 212 buf = farmalloc(bsize); 215 buf = farmalloc(bsize + 16L);
|
/freebsd-current/contrib/file/src/ |
H A D | print.c | 272 file_fmtdatetime(char *buf, size_t bsize, uint64_t v, int flags) argument 305 strlcpy(buf, "*Invalid datetime*", bsize); 314 file_fmtdate(char *buf, size_t bsize, uint16_t v) argument 323 if (strftime(buf, bsize, "%a, %b %d %Y", &tm) == 0) 328 strlcpy(buf, "*Invalid date*", bsize); 333 file_fmttime(char *buf, size_t bsize, uint16_t v) argument 342 if (strftime(buf, bsize, "%T", &tm) == 0) 347 strlcpy(buf, "*Invalid time*", bsize);
|
/freebsd-current/bin/cat/ |
H A D | cat.c | 401 static size_t bsize; local 412 bsize = MIN(BUFSIZE_MAX, MAXPHYS * 8); 414 bsize = BUFSIZE_SMALL; 416 bsize = sbuf.st_blksize; 419 bsize = MAX(bsize, (size_t)pagesize); 421 if ((buf = malloc(bsize)) == NULL) 424 while ((nr = read(rfd, buf, bsize)) > 0)
|
/freebsd-current/crypto/openssl/test/ |
H A D | punycode_test.c | 151 unsigned int bsize = OSSL_NELEM(buffer); local 155 buffer, &bsize))) 160 if (!TEST_mem_eq(buffer, bsize * sizeof(*buffer), 204 unsigned int bsize = OSSL_NELEM(buf) - 1; local 206 if (!TEST_false(ossl_punycode_decode(in, strlen(in), buf, &bsize))) { 207 if (TEST_mem_eq(buf, bsize * sizeof(*buf), out, sizeof(out)))
|
/freebsd-current/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_alloc.cpp | 141 bufsize bsize; /* Buffer size: positive if free, negative if allocated. */ member in struct:bhead2 200 /* End sentinel: value placed in bsize field of dummy block delimiting 300 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); 321 KMP_DEBUG_ASSERT(b->bh.bb.bsize != 0); 369 KMP_DEBUG_ASSERT(b->bh.bb.bsize % SizeQuant == 0); 371 bin = bget_get_bin(b->bh.bb.bsize); 408 *total_free += (b->bh.bb.bsize - sizeof(bhead_t)); 409 if ((best == &thr->freelist[bin]) || (b->bh.bb.bsize < best->bh.bb.bsize)) 416 if (*max_free < best->bh.bb.bsize) [all...] |
/freebsd-current/sbin/ggate/shared/ |
H A D | ggate.c | 279 int bsize, on; local 291 bsize = rcvbuf; 292 if (setsockopt(sfd, SOL_SOCKET, SO_RCVBUF, &bsize, sizeof(bsize)) == -1) 294 bsize = sndbuf; 295 if (setsockopt(sfd, SOL_SOCKET, SO_SNDBUF, &bsize, sizeof(bsize)) == -1)
|
/freebsd-current/sys/fs/msdosfs/ |
H A D | msdosfs_fat.c | 144 u_long bsize; local 203 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 207 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp); 214 if (bo >= bsize) { 473 u_long bn, bo, bsize, byteoffset; local 511 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 512 error = bread(pmp->pm_devvp, bn, bsize, NOCRED, &bp); 578 u_long bn, bo, bsize, byteoffset, readcn, newc; local 593 fatblock(pmp, byteoffset, &bn, &bsize, &bo); 594 error = bread(pmp->pm_devvp, bn, bsize, NOCRE 838 u_long bn, bo, bsize, byteoffset; local 903 u_long bn, bo, bsize, byteoffset, cn, readcn; local 1140 u_long bn, bo, bsize, byteoffset, fatval; local [all...] |
/freebsd-current/sys/fs/udf/ |
H A D | udf_vfsops.c | 311 int bsize; local 369 bsize = cp->provider->sectorsize; 376 if ((error = bread(devvp, sector * btodb(logical_secsize), bsize, 393 mvds_end = mvds_start + (le32toh(avdp.main_vds_ex.len) - 1) / bsize; 396 bsize, NOCRED, &bp)) != 0) { 402 udfmp->bsize = le32toh(lvd->lb_size); 403 if (udfmp->bsize < 0 || udfmp->bsize > maxbcachebuf) { 404 printf("lvd block size %d\n", udfmp->bsize); 408 udfmp->bmask = udfmp->bsize [all...] |