Searched refs:bsize (Results 1 - 25 of 167) sorted by relevance

1234567

/src/sys/stand/
H A Dcopy.c54 register int from, to, record, rcc, wcc, bsize = BSIZE; local in function:main
60 if (!(rcc = read(from, buf, bsize)))
67 if (rcc != bsize) {
69 bsize = rcc;
71 bsize);
74 record, bsize, rcc);
78 if (rcc > bsize)
79 rcc = bsize;
/src/common/include/rpc/
H A Dtypes.h71 #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/sparc/stand/ofwboot/
H A Dofdev.h40 int bsize; member in struct:of_dev
/src/sys/arch/shark/stand/ofwboot/
H A Dofdev.h40 int bsize; member in struct:of_dev
/src/sys/arch/ofppc/stand/ofwboot/
H A Dofdev.h42 int bsize; member in struct:of_dev
/src/distrib/atari/floppies/install/
H A DMakefile7 IMGMAKEFSOPTIONS= -o bsize=4096,fsize=512,density=4096
/src/sys/arch/macppc/stand/ofwboot/
H A Dofdev.h42 int bsize; member in struct:of_dev
/src/regress/sys/fs/lfs/9994/
H A D9994_f.c58 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) <
[all...]
/src/sys/arch/x68k/stand/boot_ufs/
H A Dreadufs.c86 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 local in function:ufs_read_indirect
[all...]
/src/sys/arch/hppa/stand/xxboot/
H A Dreadufs.c86 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 local in function:ufs_read_indirect
[all...]
/src/sbin/newfs_ext2fs/
H A Dextern.h42 extern uint bsize; /* block size */
/src/bin/ksh/
H A Dshf.c43 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
774 shf_snprintf(char * buf,int bsize,const char * fmt,...) argument
[all...]
H A Dshf.h57 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/
H A Dcompat_exec.c110 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/sbmips/stand/common/
H A Dbbinfo.h41 int32_t bsize; member in struct:bbinfo
/src/sys/arch/evbmips/stand/sbmips/common/
H A Dbbinfo.h41 int32_t bsize; member in struct:bbinfo
/src/sys/arch/alpha/stand/common/
H A Dbbinfo.h41 int32_t bsize; member in struct:bbinfo
/src/usr.sbin/makefs/
H A Dffs.h46 int bsize; /* block size */ member in struct:__anonfa978b910108
/src/sbin/clri/
H A Dclri.c82 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/
H A Dext2fs_balloc.c358 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) >> 3
[all...]
/src/sys/ufs/lfs/
H A Dulfs_quota2_subr.c49 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, argument
73 memset(bp, 0, bsize);
89 lfsquota2_addfreeq2e(q2h, bp, quota2_full_header_size, bsize, ns);
48 lfsquota2_addfreeq2e(struct quota2_header * q2h,void * bp,uint64_t baseoff,uint64_t bsize,int ns) argument
/src/sys/ufs/ufs/
H A Dquota2_subr.c46 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, argument
70 memset(bp, 0, bsize);
86 quota2_addfreeq2e(q2h, bp, quota2_full_header_size, bsize, ns);
45 quota2_addfreeq2e(struct quota2_header * q2h,void * bp,uint64_t baseoff,uint64_t bsize,int ns) argument
/src/lib/libc/compat/sys/
H A Dcompat_statfs.c107 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/kern/
H A Dexec_ecoff.c159 epp->ep_dsize = eap->dsize + eap->bsize;
169 if (eap->bsize > 0)
170 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, eap->bsize,
190 epp->ep_dsize = eap->dsize + eap->bsize;
204 if (eap->bsize > 0)
205 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, eap->bsize,
231 epp->ep_dsize = eap->dsize + eap->bsize;
249 if (eap->bsize > 0)
250 NEW_VMCMD(&epp->ep_vmcmds, vmcmd_map_zero, eap->bsize,
/src/sys/lib/libsa/
H A Dloadfile_ecoff.c123 if (coff->a.bsize != 0) {
125 PROGRESS(("+%lu", coff->a.bsize));
126 BZERO(coff->a.bss_start, coff->a.bsize);
132 pos = coff->a.bsize;

Completed in 29 milliseconds

1234567