Searched refs:fsize (Results 1 - 25 of 55) sorted by relevance

123

/freebsd-11-stable/usr.sbin/makefs/
H A Dffs.h51 int fsize; /* fragment size */ member in struct:__anon8785
H A Dffs.c158 { 'f', "fsize", &ffs_opts->fsize, OPT_INT32,
184 ffs_opts->fsize= -1;
333 if (ffs_opts->fsize == -1)
334 ffs_opts->fsize = MAX(DFL_FRAGSIZE, fsopts->sectorsize);
336 ffs_opts->bsize = MIN(DFL_BLKSIZE, 8 * ffs_opts->fsize);
459 printf("\tbsize %d, fsize %d, cpg %d, density %d\n",
460 fs->bsize, fs->fsize, fs->cpg, fs->density);
607 fsopts->size += roundup((x), ffs_opts->fsize); \
/freebsd-11-stable/contrib/elftoolchain/libelf/
H A Dlibelf_open.c129 size_t fsize; local
141 fsize = (size_t) sb.st_size;
179 if (fsize == 0) {
194 m = mmap(NULL, fsize, PROT_READ, MAP_PRIVATE, fd, (off_t) 0);
207 if ((m = malloc(fsize)) == NULL) {
212 if (read(fd, m, fsize) != (ssize_t) fsize) {
220 } else if ((m = _libelf_read_special_file(fd, &fsize)) != NULL)
225 if ((e = _libelf_memory(m, fsize, reporterror)) == NULL) {
232 (void) munmap(m, fsize);
[all...]
/freebsd-11-stable/usr.sbin/ndiscvt/
H A Dndiscvt.c166 bincvt(char *sysfile, char *outfile, void *img, int fsize) argument
179 if (fwrite(img, fsize, 1, binfp) != 1)
280 int n, fsize, cnt; local
324 fsize = ftell (fp);
326 img = calloc(fsize, 1);
327 n = fread (img, fsize, 1, fp);
333 if (insert_padding(&img, &fsize)) {
348 inffile == NULL ? "<notused>" : inffile, sysfile, fsize);
392 bincvt(sysfile, outfile, img, fsize);
402 fprintf(outfp, "__asm__(\".size drv_data, %d\");\n", fsize);
[all...]
/freebsd-11-stable/contrib/file/src/
H A Delfclass.h46 fsize, &flags, &notecount) == -1)
61 fsize, shnum, &flags, &notecount) == -1)
71 fsize, elf_getu16(swap, elfhdr.e_machine),
H A Dreadelf.c350 int num, size_t size, off_t fsize, int *flags, uint16_t *notecount)
385 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) {
408 ph_num, fsize);
932 off_t off, int num, off_t fsize, uint64_t virtaddr)
949 if (fsize != SIZE_UNKNOWN && xph_offset > fsize) {
963 off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen)
972 fsize, virtaddr);
999 int fd, off_t ph_off, int ph_num, off_t fsize)
349 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int *flags, uint16_t *notecount) argument
931 get_offset_from_virtaddr(struct magic_set *ms, int swap, int clazz, int fd, off_t off, int num, off_t fsize, uint64_t virtaddr) argument
961 get_string_on_virtaddr(struct magic_set *ms, int swap, int clazz, int fd, off_t ph_off, int ph_num, off_t fsize, uint64_t virtaddr, char *buf, ssize_t buflen) argument
994 do_auxv_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, int swap, uint32_t namesz __attribute__((__unused__)), uint32_t descsz __attribute__((__unused__)), size_t noff __attribute__((__unused__)), size_t doff, int *flags, size_t size __attribute__((__unused__)), int clazz, int fd, off_t ph_off, int ph_num, off_t fsize) argument
1133 donote(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap, size_t align, int *flags, uint16_t *notecount, int fd, off_t ph_off, int ph_num, off_t fsize) argument
1328 doshn(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int mach, int strtab, int *flags, uint16_t *notecount) argument
1616 dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off, int num, size_t size, off_t fsize, int sh_num, int *flags, uint16_t *notecount) argument
1773 off_t fsize; local
[all...]
/freebsd-11-stable/sbin/newfs/
H A Dnewfs.h94 extern int fsize; /* fragment size */
H A Dnewfs.c100 int fsize = 0; /* fragment size */ variable
229 rval = expand_number_int(optarg, &fsize);
230 if (rval < 0 || fsize <= 0)
375 if (fsize == 0)
376 fsize = pp->p_fsize;
384 if (fsize <= 0)
385 fsize = MAX(DFL_FRAGSIZE, sectorsize);
387 bsize = MIN(DFL_BLKSIZE, 8 * fsize);
/freebsd-11-stable/usr.sbin/bsdinstall/distfetch/
H A Ddistfetch.c114 off_t fsize; local
163 fsize = 0;
182 fsize += chunk;
191 (fsize*100)/ustat.size);
202 if (ustat.size > 0 && fsize < ustat.size) {
/freebsd-11-stable/stand/common/
H A Dinstall.c109 ssize_t fsize; local
112 fsize = read(fd, buf, sizeof(buf));
113 if (fsize == -1)
123 if (fsize == sizeof(buf))
126 buf[fsize] = '\0';
/freebsd-11-stable/sys/fs/udf/
H A Dudf_vnops.c185 off_t fsize; local
187 fsize = le64toh(np->fentry->inf_len);
188 vnode_create_vobject(ap->a_vp, fsize, ap->a_td);
450 off_t diff, fsize; local
463 fsize = le32toh(fentry->l_ad);
466 diff = fsize - uio->uio_offset;
475 fsize = le64toh(node->fentry->inf_len);
482 diff = fsize - uio->uio_offset;
490 if (lblktosize(udfmp, rablock) < fsize) {
491 error = cluster_read(vp, fsize, lb
632 udf_opendir(struct udf_node *node, int offset, int fsize, struct udf_mnt *udfmp) argument
1128 int fsize, lkflags, ltype, numdirpasses; local
[all...]
H A Dudf.h68 int fsize; member in struct:udf_dirstream
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dspa_config.c84 uint64_t fsize; local
100 if (kobj_get_filesize(file, &fsize) != 0)
103 buf = kmem_alloc(fsize, KM_SLEEP);
108 if (kobj_read_file(file, buf, fsize, 0) < 0)
114 if (nvlist_unpack(buf, fsize, &nvlist, KM_SLEEP) != 0)
139 kmem_free(buf, fsize);
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga_tools/
H A Dmlx5fpga_tools_char.c112 uint64_t fbase, fsize; local
123 fsize = mlx5_fpga_ddr_size_get(context->tdev->fdev);
126 else if (uio->uio_offset + *len > fbase + fsize)
127 *len = fbase + fsize - uio->uio_offset;
/freebsd-11-stable/contrib/netbsd-tests/dev/scsipi/libscsitest/
H A Dscsitest.c213 uint64_t fsize; local
216 if (rumpuser_getfileinfo(MYCDISO, &fsize, &ft, &error))
220 mycdsize = fsize / CDBLOCKSIZE;
/freebsd-11-stable/sys/dev/cxgbe/cudbg/
H A Dfastlz_api.c148 unsigned long fsize = pin_buff->size; local
168 buffer[0] = fsize & 255;
169 buffer[1] = (fsize >> 8) & 255;
170 buffer[2] = (fsize >> 16) & 255;
171 buffer[3] = (fsize >> 24) & 255;
/freebsd-11-stable/sys/cddl/compat/opensolaris/sys/
H A Delf.h82 #define elf_fsize __elfN(fsize)
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp195 uptr fsize = internal_filesize(fd); local
196 CHECK_NE(fsize, (uptr)-1);
197 CHECK_GT(fsize, 0);
198 *buff_size = RoundUpTo(fsize, GetPageSizeCached());
/freebsd-11-stable/sbin/ldconfig/
H A Dldconfig.c541 long fsize; local
576 fsize = hdr->hh_ehints;
578 addr = mmap(0, fsize, PROT_READ, MAP_COPY, fd, 0);
/freebsd-11-stable/usr.bin/mail/
H A Dcollect.c369 if (fsize(fbuf) == 0) {
586 if (fsize(nf) == 0) {
719 if (fsize(fp) == 0)
H A Dedit.c110 mp->m_size = (long)fsize(fp);
H A Dextern.h128 off_t fsize(FILE *);
/freebsd-11-stable/sys/mips/include/
H A Dasm.h179 #define NESTED(x, fsize, retpc) \
183 .frame sp, fsize, retpc; \
190 #define NESTED_NOPROFILE(x, fsize, retpc) \
194 .frame sp, fsize, retpc
/freebsd-11-stable/contrib/less/
H A Dch.c67 POSITION fsize; member in struct:filestate
76 #define ch_fsize thisfile->fsize
871 thisfile->fsize = NULL_POSITION;
952 printf(" file %d, flags %x, fpos %x, fsize %x, blk/off %x/%x\n",
954 fs->fsize, fs->block, fs->offset);
/freebsd-11-stable/sys/net/
H A Dif_fwsubr.c88 uint16_t psize, fsize, dsize; local
260 fsize = psize - 2*sizeof(uint32_t);
265 if (m->m_pkthdr.len > fsize) {
270 mtail = m_split(m, fsize, M_NOWAIT);

Completed in 403 milliseconds

123