/dragonfly/bin/ls/ |
H A D | print.c | 139 printf("total %lu\n", howmany(dp->btotal, blocksize)); in printlong() 150 dp->s_block, howmany(sp->st_blocks, blocksize)); in printlong() 278 printf("total %lu\n", howmany(dp->btotal, blocksize)); in printcol() 331 (int)sizefield, howmany(sp->st_blocks, blocksize)); in printaname()
|
/dragonfly/contrib/file/src/ |
H A D | magic.c | 517 size_t howmany = in file_or_fd() local 522 if ((nbytes = read(fd, RCAST(void *, buf), howmany)) == -1) { in file_or_fd()
|
/dragonfly/contrib/ldns/ |
H A D | rr.c | 1210 ldns_rr_list_pop_rr_list(ldns_rr_list *rr_list, size_t howmany) in ldns_rr_list_pop_rr_list() argument 1215 size_t i = howmany; in ldns_rr_list_pop_rr_list() 1230 if (i == howmany) { /* so i <= 0 */ in ldns_rr_list_pop_rr_list()
|
/dragonfly/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 317 int n, howmany; in _nc_timed_wait() local 324 howmany = ioctl(0, 'ichr', &n); in _nc_timed_wait() 325 if (howmany >= 0 && n > 0) { in _nc_timed_wait()
|
H A D | tty_update.c | 399 int howmany = ioctl(0, 'ichr', &n); in check_pending() 400 if (howmany >= 0 && n > 0) { in check_pending()
|
/dragonfly/crypto/openssh/ |
H A D | defines.h | 429 # define howmany(x,y) (((x)+((y)-1))/(y)) macro
|
/dragonfly/lib/libc/stdio/ |
H A D | printfcommon.h | 115 io_pad(struct io_state *iop, int howmany, const CHAR * __restrict with, in io_pad() argument 120 while (howmany > 0) { in io_pad() 121 n = (howmany >= PADSIZE) ? PADSIZE : howmany; in io_pad() 124 howmany -= n; in io_pad()
|
H A D | vfprintf.c | 371 #define PAD(howmany, with) { \ in __vfprintf() argument 372 if (io_pad(&io, (howmany), (with), locale)) \ in __vfprintf()
|
H A D | vfwprintf.c | 448 #define PAD(howmany, with) { \ in __vfwprintf() argument 449 if (io_pad(&io, (howmany), (with), locale)) \ in __vfwprintf()
|
H A D | xprintf.c | 135 __printf_pad(struct __printf_io *io, int howmany, int zero) in __printf_pad() argument 146 if ((n = (howmany)) > 0) { in __printf_pad()
|
/dragonfly/lib/libc/stdlib/ |
H A D | strfmon.c | 82 #define GRPCPY(howmany) do { \ argument 83 int i = howmany; \
|
/dragonfly/sbin/dump/ |
H A D | main.c | 360 mapsize = roundup(howmany(maxino, NBBY), TP_BSIZE); in main() 364 tapesize = 3 * (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main() 420 (howmany(mapsize * sizeof(char), TP_BSIZE) + 1); in main()
|
H A D | traverse.c | 88 blkest = howmany(dbtob(dp->di_blocks), TP_BSIZE); in blockest() 89 sizeest = howmany(dp->di_size, TP_BSIZE); in blockest() 95 howmany(sizeest - UFS_NDADDR * sblock->fs_bsize / TP_BSIZE, in blockest() 411 cnt = howmany(dp->di_size, sblock->fs_fsize); in dumpino() 437 cnt = howmany(*size, sblock->fs_fsize); in dmpindir() 461 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in blksout() 497 spcl.c_count = howmany(mapsize * sizeof(char), TP_BSIZE); in dumpmap()
|
/dragonfly/sbin/ffsinfo/ |
H A D | ffsinfo.c | 441 rb=howmany(ino->di_size, sblock.fs_bsize)-UFS_NDADDR; in dump_whole_inode() 454 rb-=howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)); in dump_whole_inode() 467 howmany(rb, howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)))); in dump_whole_inode() 468 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, in dump_whole_inode() 481 rb-=howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)); in dump_whole_inode() 496 howmany(rb, in dump_whole_inode() 499 for(ind3ctr=0; ((ind3ctr < howmany(sblock.fs_bsize, in dump_whole_inode() 511 howmany(rb, in dump_whole_inode() 512 howmany(sblock.fs_bsize, sizeof(ufs_daddr_t)))); in dump_whole_inode() 513 for(ind2ctr=0; ((ind2ctr < howmany(sblock.fs_bsize, in dump_whole_inode() [all …]
|
/dragonfly/sbin/fsck/ |
H A D | inode.c | 76 ndb = howmany(dino.di_size, sblock.fs_bsize); in ckinode() 169 nif = howmany(isize , sizepb); in iblock() 379 blks = howmany(dp->di_size, sblock.fs_bsize); in cacheino()
|
H A D | main.c | 296 n_blks += howmany(sblock.fs_cssize, sblock.fs_fsize); in checkfilesys()
|
H A D | pass1.c | 78 cgd = i+ howmany(sblock.fs_cssize, sblock.fs_fsize); in pass1() 227 ndb = howmany(dp->di_size, sblock.fs_bsize); in checkinode() 260 ndb = howmany(dp->di_size, sizeof(ufs_daddr_t)); in checkinode()
|
H A D | pass5.c | 108 mapsize = &ocg->cg_free[howmany(fs->fs_fpg, NBBY)] - in pass5() 110 blkmapsize = howmany(fs->fs_fpg, NBBY); in pass5() 125 newcg->cg_iusedoff + howmany(fs->fs_ipg, NBBY); in pass5() 128 howmany(fs->fs_cpg * fs->fs_spc / NSPF(fs), NBBY); in pass5() 138 howmany(fs->fs_cpg * fs->fs_spc / NSPB(fs), NBBY); in pass5()
|
H A D | setup.c | 284 bmapsize = roundup(howmany(maxfsblock, NBBY), sizeof(short)); in setup()
|
/dragonfly/sbin/fsck_msdosfs/ |
H A D | fat.c | 1063 blobs = howmany(fat->fatsize, fat32_cache_size); in copyfat()
|
/dragonfly/sbin/fsdb/ |
H A D | fsdbutil.c | 241 ndb = howmany(dp->di_size, sblock.fs_bsize); in printblocks()
|
/dragonfly/sbin/growfs/ |
H A D | debug.c | 456 e=howmany((sb->fs_cpg * sb->fs_spc / NSPF(sb)), NBBY); in dbg_dump_frmap() 500 e=howmany(sb->fs_cpg * sb->fs_spc / NSPB(sb), NBBY); in dbg_dump_clmap() 625 remaining_blocks=howmany(ino->di_size, sb->fs_bsize); /* XXX ts - +1? */ in dbg_dump_ino() 635 remaining_blocks-=howmany(sb->fs_bsize, sizeof(ufs_daddr_t)); in dbg_dump_ino() 641 remaining_blocks-=SQUARE(howmany(sb->fs_bsize, sizeof(ufs_daddr_t))); in dbg_dump_ino() 681 for (i=0; (size_t)i<MIN(howmany(sb->fs_bsize, sizeof(ufs_daddr_t)), in dbg_dump_iblk()
|
H A D | growfs.c | 394 acg.cg_clustersumoff = acg.cg_freeoff + howmany in initcg() 401 acg.cg_nextfreeoff = acg.cg_clusteroff + howmany in initcg() 925 if(howmany(sblock.fs_cssize, sblock.fs_fsize) == in updcsloc() 926 howmany(osblock.fs_cssize, osblock.fs_fsize)) { in updcsloc() 936 howmany(osblock.fs_cssize, osblock.fs_bsize); in updcsloc() 1234 howmany(sblock.fs_cssize, sblock.fs_fsize); in updcsloc() 1236 howmany(osblock.fs_cssize, osblock.fs_fsize); in updcsloc() 2313 for(ictr=0; ictr < MIN(howmany(sblock.fs_bsize, in updrefs() 2337 for(ind2ctr=0; ind2ctr < howmany(sblock.fs_bsize, in updrefs() 2348 for(ictr=0; ictr<MIN(howmany((unsigned int) in updrefs() [all …]
|
/dragonfly/sbin/ifconfig/ |
H A D | ifconfig.c | 706 uint8_t afmask[howmany(AF_MAX, NBBY)]; in af_other_status() 723 uint8_t afmask[howmany(AF_MAX, NBBY)]; in af_all_tunnel_status()
|
/dragonfly/sbin/newfs/ |
H A D | mkfs.c | 324 roundup(howmany(sbsize, sblock.fs_fsize), sblock.fs_frag)); in mkfs() 327 howmany(sblock.fs_nsect, NSPF(&sblock)), sblock.fs_frag); in mkfs() 352 mincpgcnt = howmany(sblock.fs_cgoffset * (~sblock.fs_cgmask) + used, in mkfs() 787 dupper += howmany(sblock.fs_cssize, sblock.fs_fsize); in initcg() 805 acg.cg_freeoff = acg.cg_iusedoff + howmany(sblock.fs_ipg, NBBY); in initcg() 808 howmany(sblock.fs_cpg * sblock.fs_spc / NSPF(&sblock), NBBY); in initcg() 810 acg.cg_clustersumoff = acg.cg_freeoff + howmany in initcg() 817 acg.cg_nextfreeoff = acg.cg_clusteroff + howmany in initcg() 1083 frag = howmany(size, sblock.fs_fsize); in alloc() 1110 ncyl = howmany(fssize, (u_int)secpercyl); in calcipg() [all …]
|