/src/sys/stand/ |
copy.c | 46 #define BSIZE 10240 54 register int from, to, record, rcc, wcc, bsize = BSIZE; local in function:main 55 char buf[BSIZE]; 60 if (!(rcc = read(from, buf, bsize))) 67 if (rcc != bsize) { 69 bsize = rcc; 71 bsize); 74 record, bsize, rcc); 78 if (rcc > bsize) [all...] |
/src/common/include/rpc/ |
types.h | 71 #define mem_alloc(bsize) kmem_alloc(bsize, KM_SLEEP) 72 #define mem_free(ptr, bsize) kmem_free(ptr, bsize) 76 #define mem_alloc(bsize) calloc((size_t)1, bsize) 77 #define mem_free(ptr, bsize) free(ptr)
|
/src/sys/arch/shark/stand/ofwboot/ |
ofdev.h | 40 int bsize; member in struct:of_dev
|
/src/sys/arch/sparc/stand/ofwboot/ |
ofdev.h | 40 int bsize; member in struct:of_dev
|
/src/sys/arch/macppc/stand/ofwboot/ |
ofdev.h | 42 int bsize; member in struct:of_dev
|
/src/sys/arch/ofppc/stand/ofwboot/ |
ofdev.h | 42 int bsize; member in struct:of_dev
|
/src/distrib/atari/floppies/install/ |
Makefile | 7 IMGMAKEFSOPTIONS= -o bsize=4096,fsize=512,density=4096
|
/src/regress/sys/fs/lfs/9994/ |
9994_f.c | 58 int bsize, quiet, usepid; local in function:main 67 bsize = 8192; 77 bsize = atoi(optarg); 95 errx(1, "usage: %s [-b bsize] [-c control-dir] [-n count] [-pq] [-s randseed]", prog); 101 hoge = (char *)malloc(bsize); 102 buf = (char *)malloc(bsize); 104 for(i = 0; i < bsize; i++) 153 if (read(testfd, buf, bsize) < 0) { 157 if (read(controlfd, buf, bsize) < 0) { 163 if (write(testfd, hoge, bsize) < 0) [all...] |
/src/sys/arch/x68k/stand/boot_ufs/ |
readufs.c | 86 size_t bsize = ufsinfo->bsize; local in function:ufs_read 101 if (disize < count + off * bsize) 102 count = disize - off * bsize; 106 count = (count + bsize - 1) & ~(bsize - 1); 124 raw_read_queue(b, pos << ufsinfo->fsbtodb, bsize); 125 b += bsize; 126 count -= bsize; 153 size_t bsize = ufsinfo->bsize local in function:ufs_read_indirect [all...] |
/src/sys/arch/hppa/stand/xxboot/ |
readufs.c | 86 size_t bsize = ufsinfo->bsize; local in function:ufs_read 101 if (disize < count + off * bsize) 102 count = disize - off * bsize; 106 count = (count + bsize - 1) & ~(bsize - 1); 124 raw_read_queue(b, pos << ufsinfo->fsbtodb, bsize); 125 b += bsize; 126 count -= bsize; 153 size_t bsize = ufsinfo->bsize local in function:ufs_read_indirect [all...] |
/src/sbin/newfs_ext2fs/ |
extern.h | 42 extern uint bsize; /* block size */
|
/src/bin/ksh/ |
shf.c | 43 int bsize = sflags & SHF_UNBUF ? (sflags & SHF_RD ? 1 : 0) : SHF_BSIZE; local in function:shf_open 47 shf = (struct shf *) alloc(sizeof(struct shf) + bsize, ATEMP); 50 shf->bsize = bsize; 85 int bsize = sflags & SHF_UNBUF ? (sflags & SHF_RD ? 1 : 0) : SHF_BSIZE; local in function:shf_fdopen 106 if (bsize) { 107 shf->buf = (unsigned char *) alloc(bsize, ATEMP); 112 shf = (struct shf *) alloc(sizeof(struct shf) + bsize, ATEMP); 120 shf->rbsize = bsize; 122 shf->wbsize = sflags & SHF_UNBUF ? 0 : bsize; 138 int bsize = sflags & SHF_UNBUF ? (sflags & SHF_RD ? 1 : 0) : SHF_BSIZE; local in function:shf_reopen [all...] |
shf.h | 57 int bsize; /* actual size of buf */ member in struct:shf 67 struct shf *shf_sopen ARGS((char *buf, int bsize, int sflags, 75 int shf_read ARGS((char *buf, int bsize, struct shf *shf)); 76 char *shf_getse ARGS((char *buf, int bsize, struct shf *shf)); 83 int shf_snprintf ARGS((char *buf, int bsize, const char *fmt, ...));
|
/src/sys/compat/common/ |
compat_exec.c | 110 long bsize, baddr; local in function:exec_aout_prep_oldnmagic 130 bsize = epp->ep_daddr + epp->ep_dsize - baddr; 131 if (bsize > 0) 132 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr, 152 long dsize, bsize, baddr; local in function:exec_aout_prep_oldomagic 167 bsize = epp->ep_daddr + epp->ep_dsize - baddr; 168 if (bsize > 0) 169 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr,
|
/src/sys/arch/alpha/stand/common/ |
bbinfo.h | 41 int32_t bsize; member in struct:bbinfo
|
/src/sys/arch/evbmips/stand/sbmips/common/ |
bbinfo.h | 41 int32_t bsize; member in struct:bbinfo
|
/src/sys/arch/sbmips/stand/common/ |
bbinfo.h | 41 int32_t bsize; member in struct:bbinfo
|
/src/usr.sbin/makefs/ |
ffs.h | 46 int bsize; /* block size */ member in struct:__anon6ccfc86b0108
|
/src/sbin/clri/ |
clri.c | 82 size_t bsize; local in function:main 160 bsize = sbp->fs_bsize; 161 ibuf = malloc(bsize); 180 if ((size_t)read(fd, ibuf, bsize) != bsize) 203 if ((size_t)write(fd, ibuf, bsize) != bsize)
|
/src/sys/ufs/ext2fs/ |
ext2fs_balloc.c | 358 int error, delta, bshift, bsize; local in function:ext2fs_gop_alloc 362 bsize = 1 << bshift; 364 delta = off & (bsize - 1); 369 bsize = uimin(bsize, len); 370 UVMHIST_LOG(ubchist, "off 0x%x len 0x%x bsize 0x%x", 371 off, len, bsize, 0); 373 error = ext2fs_balloc(ip, ext2_lblkno(fs, off), bsize, cred, 385 if (ext2fs_size(ip) < off + bsize) { 390 (off + bsize) >> 32 [all...] |
/src/sys/ufs/lfs/ |
ulfs_quota2_subr.c | 49 uint64_t bsize, int ns) 51 uint64_t blkoff = baseoff % bsize; 56 nq2e = (bsize - blkoff) / sizeof(*q2e); 64 lfsquota2_create_blk0(uint64_t bsize, void *bp, int q2h_hash_shift, int type, 73 memset(bp, 0, bsize); 89 lfsquota2_addfreeq2e(q2h, bp, quota2_full_header_size, bsize, ns);
|
/src/sys/ufs/ufs/ |
quota2_subr.c | 46 uint64_t bsize, int ns) 48 uint64_t blkoff = baseoff % bsize; 53 nq2e = (bsize - blkoff) / sizeof(*q2e); 61 quota2_create_blk0(uint64_t bsize, void *bp, int q2h_hash_shift, int type, 70 memset(bp, 0, bsize); 86 quota2_addfreeq2e(q2h, bp, quota2_full_header_size, bsize, ns);
|
/src/lib/libc/compat/sys/ |
compat_statfs.c | 107 size_t bsize = (size_t)(size / sizeof(*ost)) * sizeof(*nst); local in function:__compat_getfsstat 110 if ((nst = malloc(bsize)) == NULL) 115 if ((ret = __getvfsstat90(nst, bsize, flags)) == -1)
|
/src/sys/arch/hppa/stand/common/ |
lif.c | 164 size_t bsize, count = sizeof(bbuf); local in function:lif_read 173 for (p = bbuf; size; fp->f_seek += bsize, p += bsize) { 178 btodb(foff), count, p, &bsize))) 181 bsize = sizeof(bbuf) - (foff & (sizeof(bbuf) - 1)); 182 bsize = uimin(bsize, size); 183 memcpy(buf, bbuf + (foff & (sizeof(bbuf) - 1)), bsize); 186 count = size -= bsize;
|
/src/sys/compat/netbsd32/ |
netbsd32_exec_aout.c | 201 long bsize, baddr; local in function:netbsd32_exec_aout_prep_nmagic 223 bsize = epp->ep_daddr + epp->ep_dsize - baddr; 224 if (bsize > 0) 225 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr, 240 long dsize, bsize, baddr; local in function:netbsd32_exec_aout_prep_omagic 257 bsize = epp->ep_daddr + epp->ep_dsize - baddr; 258 if (bsize > 0) 259 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, bsize, baddr, 338 long bsize, baddr; local in function:netbsd32_exec_aout_prep_oldnmagic 360 bsize = epp->ep_daddr + epp->ep_dsize - baddr 382 long dsize, bsize, baddr; local in function:netbsd32_exec_aout_prep_oldomagic [all...] |