| /dragonfly/usr.bin/patch/ |
| HD | inp.c | 56 static size_t i_size; /* size of the input file */ variable 85 munmap(i_womp, i_size); in re_input() 88 i_size = 0; in re_input() 123 munmap(i_womp, i_size); in reallocate_lines() 180 i_size = (size_t)filestat.st_size; in plan_a() 189 if (i_size) { in plan_a() 190 i_womp = mmap(NULL, i_size, PROT_READ, MAP_PRIVATE, ifd, 0); in plan_a() 202 if (i_size) in plan_a() 203 madvise(i_womp, i_size, MADV_SEQUENTIAL); in plan_a() 206 lines_allocated = i_size / 25; in plan_a() [all …]
|
| /dragonfly/sys/vfs/ufs/ |
| HD | ufs_readwrite.c | 82 if ((int)ip->i_size < vp->v_mount->mnt_maxsymlinklen) in ffs_read() 95 bytesinfile = ip->i_size - uio->uio_offset; in ffs_read() 107 if ((bytesinfile = ip->i_size - uio->uio_offset) <= 0) in ffs_read() 238 uio->uio_offset = ip->i_size; in ffs_write() 239 if ((ip->i_flags & APPEND) && uio->uio_offset != ip->i_size) in ffs_write() 272 osize = ip->i_size; in ffs_write() 297 if (uio->uio_offset + xfersize > ip->i_size) { in ffs_write() 347 if (uio->uio_offset + xfersize > ip->i_size) { in ffs_write() 348 ip->i_size = uio->uio_offset + xfersize; in ffs_write() 380 … cluster_write(bp, (off_t)ip->i_size, fs->fs_bsize, seqcount); in ffs_write()
|
| HD | ffs_inode.c | 160 (oip->i_size < ovp->v_mount->mnt_maxsymlinklen || oip->i_din.di_blocks == 0)) { in ffs_truncate() 165 bzero((char *)&oip->i_shortlink, (uint)oip->i_size); in ffs_truncate() 166 oip->i_size = 0; in ffs_truncate() 170 if (oip->i_size == length) { in ffs_truncate() 205 osize = oip->i_size; in ffs_truncate() 231 oip->i_size = length; in ffs_truncate() 253 oip->i_size = length; in ffs_truncate() 288 oip->i_size = length; in ffs_truncate() 354 oip->i_size = osize; in ffs_truncate() 413 oip->i_size = length; in ffs_truncate() [all …]
|
| HD | ufs_lookup.c | 177 enduseful = dp->i_size; in ufs_lookup() 185 enduseful = dp->i_size; in ufs_lookup() 198 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup() 218 dp->i_diroff >= dp->i_size) { in ufs_lookup() 230 endsearch = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup() 335 enduseful = dp->i_size; in ufs_lookup() 391 dp->i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ufs_lookup() 434 if (dp->i_offset + DIRSIZ(OFSFMT(vdp), ep) > dp->i_size) { in ufs_lookup() 436 dp->i_size = dp->i_offset + DIRSIZ(OFSFMT(vdp), ep); in ufs_lookup() 729 dp->i_size = dp->i_offset + DIRBLKSIZ; in ufs_direnter() [all …]
|
| HD | ffs_balloc.c | 111 nb = lblkno(fs, ip->i_size); in ffs_balloc() 139 ip->i_size = smalllblktosize(fs, nb + 1); in ffs_balloc() 154 if (nb != 0 && ip->i_size >= smalllblktosize(fs, lbn + 1)) { in ffs_balloc() 168 osize = fragroundup(fs, blkoff(fs, ip->i_size)); in ffs_balloc() 193 if (ip->i_size < smalllblktosize(fs, lbn + 1)) in ffs_balloc() 418 error = cluster_read(vp, (off_t)ip->i_size, in ffs_balloc()
|
| HD | ufs_vnops.c | 1382 ip->i_size = DIRBLKSIZ; in ufs_mkdir() 1564 ip->i_size = len; in ufs_symlink() 1629 if (uio->uio_offset >= VTOI(vp)->i_size) { in ufs_readdir() 1650 if (bp->b_loffset + bp->b_bcount > VTOI(vp)->i_size) in ufs_readdir() 1651 eoffset = (int)(VTOI(vp)->i_size - bp->b_loffset); in ufs_readdir() 1700 uio->uio_offset >= VTOI(vp)->i_size) { in ufs_readdir() 1705 *ap->a_eofflag = VTOI(vp)->i_size <= uio->uio_offset; in ufs_readdir() 1741 isize = ip->i_size; in ufs_readlink() 1920 return (lf_advlock(ap, &(ip->i_lockf), ip->i_size)); in ufs_advlock() 1953 vinitvmio(vp, ip->i_size, in ufs_vinit() [all …]
|
| HD | ufs_dirhash.c | 109 if (ip->i_size < ufs_mindirhashsize || OFSFMT(ip->i_vnode)) in ufsdirhash_build() 113 if (ip->i_size < ufs_mindirhashsize || in ufsdirhash_build() 131 KASSERT(ip->i_size >= DIRBLKSIZ, ("ufsdirhash_build size")); in ufsdirhash_build() 132 nslots = ip->i_size / DIRECTSIZ(1); in ufsdirhash_build() 136 dirblocks = howmany(ip->i_size, DIRBLKSIZ); in ufsdirhash_build() 190 while (pos < ip->i_size) { in ufsdirhash_build() 361 if (offset < 0 || offset >= ip->i_size) in ufsdirhash_lookup()
|
| HD | ffs_subr.c | 118 if (next_loffset >= ip->i_size) { in ffs_blkatoff_ra() 128 error = cluster_read(vp, (off_t)ip->i_size, in ffs_blkatoff_ra()
|
| HD | inode.h | 127 #define i_size i_din.di_size macro
|
| /dragonfly/sys/vfs/ext2fs/ |
| HD | ext2_lookup.c | 167 if (uio->uio_offset >= ip->i_size) in ext2_readdir() 169 else if (ip->i_size - uio->uio_offset < ncookies) in ext2_readdir() 170 ncookies = ip->i_size - uio->uio_offset; in ext2_readdir() 184 uio->uio_offset < ip->i_size) { in ext2_readdir() 188 if (bp->b_loffset + bp->b_bcount > ip->i_size) in ext2_readdir() 189 readcnt = ip->i_size - bp->b_loffset; in ext2_readdir() 270 *ap->a_eofflag = ip->i_size <= uio->uio_offset; in ext2_readdir() 388 i_offset = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino() 411 i_diroff > dp->i_size) { in ext2_lookup_ino() 424 endsearch = roundup2(dp->i_size, DIRBLKSIZ); in ext2_lookup_ino() [all …]
|
| HD | ext2_inode.c | 244 osize = oip->i_size; in ext2_ind_truncate() 262 oip->i_size = length; in ext2_ind_truncate() 284 oip->i_size = length; in ext2_ind_truncate() 291 oip->i_size = length; in ext2_ind_truncate() 350 oip->i_size = osize; in ext2_ind_truncate() 410 oip->i_size = length; in ext2_ind_truncate() 437 oip->i_size = length; in ext2_ind_truncate() 470 ip->i_size < vp->v_mount->mnt_maxsymlinklen) { in ext2_truncate() 475 bzero((char *)&ip->i_shortlink, (u_int)ip->i_size); in ext2_truncate() 476 ip->i_size = 0; in ext2_truncate() [all …]
|
| HD | ext2_inode_cnv.c | 64 in->i_uid, in->i_gid, (uintmax_t)in->i_size); in ext2_print_inode() 148 ip->i_size = le32toh(ei->e2di_size); in ext2_ei2i() 150 ip->i_size |= (uint64_t)le32toh(ei->e2di_size_high) << 32; in ext2_ei2i() 221 ei->e2di_size = htole32(ip->i_size); in ext2_i2ei() 223 ei->e2di_size_high = htole32(ip->i_size >> 32); in ext2_i2ei()
|
| HD | ext2_vnops.c | 236 vap->va_size = ip->i_size; in ext2_getattr() 1224 ip->i_size = DIRBLKSIZ; in ext2_mkdir() 1324 ip->i_size = len; in ext2_symlink() 1352 isize = ip->i_size; in ext2_readlink() 1504 off = ip->i_size - kn->kn_fp->f_offset; in filt_ext2read() 1686 vinitvmio(vp, ip->i_size, PAGE_SIZE, -1); /* XXX */ in ext2_vinit() 1689 if ((ip->i_size >= vp->v_mount->mnt_maxsymlinklen) && in ext2_vinit() 1691 vinitvmio(vp, ip->i_size, PAGE_SIZE, -1); in ext2_vinit() 1833 if ((int)ip->i_size < vp->v_mount->mnt_maxsymlinklen) in ext2_read() 1844 if (uio->uio_offset < ip->i_size && in ext2_read() [all …]
|
| HD | ext2_balloc.c | 120 if (ip->i_size >= (lbn + 1) * fs->e2fs_bsize) { in ext2_balloc() 287 error = cluster_read(vp, ip->i_size, in ext2_balloc()
|
| HD | inode.h | 102 uint64_t i_size; /* File byte count. */ member
|
| HD | ext2_htree.c | 431 cursize = roundup(dp->i_size, blksize); in ext2_htree_append_block() 444 dp->i_size = newsize; in ext2_htree_append_block() 827 cursize = roundup(ip->i_size, blksize); in ext2_htree_add_entry() 923 cursize = roundup(ip->i_size, blksize); in ext2_htree_add_entry()
|
| /dragonfly/sys/vfs/isofs/cd9660/ |
| HD | cd9660_vnops.c | 175 vap->va_size = (u_quad_t)(unsigned long)ip->i_size; in cd9660_getattr() 176 if (ip->i_size == 0 && (vap->va_mode & S_IFMT) == S_IFLNK) { in cd9660_getattr() 202 vap->va_bytes = (u_quad_t) ip->i_size; in cd9660_getattr() 275 diff = (off_t)ip->i_size - uio->uio_offset; in cd9660_read() 284 if (raoffset < ip->i_size) { in cd9660_read() 285 error = cluster_read(vp, (off_t)ip->i_size, in cd9660_read() 296 lblktosize(imp, rablock) < ip->i_size) { in cd9660_read() 480 endsearch = dp->i_size; in cd9660_readdir() 803 return (lf_advlock(ap, &(ip->i_lockf), ip->i_size)); in cd9660_advlock()
|
| HD | cd9660_bmap.c | 86 nbytes = (off_t)ip->i_size - loffset; in cd9660_bmap()
|
| HD | cd9660_node.h | 77 unsigned long i_size; member
|
| HD | cd9660_lookup.c | 154 dp->i_diroff > dp->i_size) { in cd9660_lookup() 165 endsearch = dp->i_size; in cd9660_lookup()
|
| /dragonfly/sys/cpu/x86_64/misc/ |
| HD | db_disasm.c | 135 short i_size; /* operand size */ member 1170 int i_size; in db_disasm() local 1265 i_size = ip->i_size; in db_disasm() 1293 i_size = ip->i_size; in db_disasm() 1296 if (i_size == SDEP) { in db_disasm() 1305 i_size = NONE; in db_disasm() 1308 if (i_size != NONE) { in db_disasm() 1309 if (i_size == BYTE) { in db_disasm() 1313 else if (i_size == WORD) { in db_disasm()
|
| /dragonfly/usr.bin/fstat/ |
| HD | cd9660.c | 69 fsp->size = isonode.i_size; in isofs_filestat()
|
| HD | ext2fs.c | 56 fsp->size = ino.i_size; in ext2fs_filestat()
|
| /dragonfly/stand/boot/common/ |
| HD | fs.h | 580 (((lbn) >= NDADDR || (ip)->i_size >= smalllblktosize(fs, (lbn) + 1)) \ 582 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
|
| /dragonfly/usr.sbin/makefs/ffs/ |
| HD | ufs_inode.h | 55 uint64_t i_size; member
|