Home
last modified time | relevance | path

Searched refs:file_size (Results 1 – 18 of 18) sorted by relevance

/xnu-8020.121.3/bsd/security/audit/
H A Daudit_worker.c140 off_t file_size; in audit_record_write() local
163 error = vnode_size(vp, &file_size, ctx); in audit_record_write()
167 audit_fstat.af_currsz = (u_quad_t)file_size; in audit_record_write()
221 ((u_quad_t)file_size >= audit_fstat.af_filesz)) { in audit_record_write()
/xnu-8020.121.3/bsd/vm/
H A Dvm_compressor_backing_file.c122 uint64_t file_size = 0; in vm_swapfile_preallocate() local
137 error = vnode_size(vp, (off_t*) &file_size, ctx); in vm_swapfile_preallocate()
143 assert(file_size == *size); in vm_swapfile_preallocate()
149 printf("pin for swap files failed: %d, file_size = %lld\n", error, file_size); in vm_swapfile_preallocate()
H A Dvm_unix.c2483 srfmp->file_size = fs; in shared_region_map_and_slide_setup()
/xnu-8020.121.3/bsd/dev/vn/
H A Dshadow.c418 block_bitmap_size(off_t file_size, uint32_t block_size) in block_bitmap_size() argument
420 off_t blocks = howmany(file_size, block_size); in block_bitmap_size()
559 shadow_map_create(off_t file_size, off_t shadow_size, in shadow_map_create() argument
572 off_t many = howmany(file_size, band_size); in shadow_map_create()
581 bitmap_size = block_bitmap_size(file_size, block_size); in shadow_map_create()
H A Dshadow.h51 shadow_map_create(off_t file_size, off_t shadow_size,
H A Dvn.c1124 off_t file_size; in vniocattach_file() local
1158 error = vnode_size(nd.ni_vp, &file_size, ctx); in vniocattach_file()
1175 vn->sc_fsize = file_size; in vniocattach_file()
1176 vn->sc_size = file_size / vn->sc_secsize; in vniocattach_file()
1203 off_t file_size; in vniocattach_shadow() local
1220 || (error = vnode_size(nd.ni_vp, &file_size, ctx))) { in vniocattach_shadow()
1225 map = shadow_map_create(vn->sc_fsize, file_size, in vniocattach_shadow()
/xnu-8020.121.3/bsd/kern/
H A Dmach_fat.h37 load_return_t fatfile_validate_fatarches(vm_offset_t data_ptr, vm_size_t data_size, off_t file_size
H A Dmach_fat.c236 fatfile_validate_fatarches(vm_offset_t data_ptr, vm_size_t data_size, off_t file_size) in fatfile_validate_fatarches() argument
285 if ((off_t)i_end > file_size) { in fatfile_validate_fatarches()
H A Dmach_loader.c444 off_t file_size = imgp->ip_vattr->va_data_size; in load_machfile() local
460 total_size > file_size) { in load_machfile()
1672 uint64_t file_size, in unprotect_dsmos_segment() argument
1689 slice_off + file_size <= APPLE_UNPROTECTED_HEADER_SIZE) { in unprotect_dsmos_segment()
1758 __unused uint64_t file_size, in unprotect_dsmos_segment() argument
2036 uint64_t file_offset, file_size; in load_segment() local
2135 file_size = scp->filesize; in load_segment()
2194 file_size == 0 && in load_segment()
2284 file_end = vm_map_round_page(file_offset + file_size, in load_segment()
2292 file_end - file_offset - file_size > FOURK_PAGE_MASK) { in load_segment()
[all …]
H A Dimageboot.c85 void *ubc_getobject_from_filename(const char *filename, struct vnode **vpp, off_t *file_size);
514 ubc_getobject_from_filename(const char *filename, struct vnode **vpp, off_t *file_size) in ubc_getobject_from_filename() argument
543 *file_size = fsize; in ubc_getobject_from_filename()
H A Duipc_syscalls.c3386 off_t file_size; in sendfile() local
3512 if ((error = vnode_size(vp, &file_size, vfs_context_current())) != 0) { in sendfile()
3573 if (off + xfsize > file_size) { in sendfile()
3574 xfsize = file_size - off; in sendfile()
3648 if (xfsize + off > file_size) { in sendfile()
3650 "%lld\n", xfsize, off, file_size); in sendfile()
/xnu-8020.121.3/SETUP/kextsymboltool/
H A Dkextsymboltool.c236 count_symbols(char * file, vm_size_t file_size) in count_symbols() argument
244 eol = memchr(scan, '\n', file_size - (scan - file)); in count_symbols()
285 store_symbols(char * file, vm_size_t file_size, struct symbol * symbols, uint32_t idx, uint32_t max… in store_symbols() argument
309 eol = memchr(scan, '\n', file_size - (scan - file)); in store_symbols()
/xnu-8020.121.3/bsd/vfs/
H A Dvfs_quota.c382 off_t file_size; in dqfileopen() local
391 if ((error = vnode_size(qfp->qf_vp, &file_size, &context)) != 0) { in dqfileopen()
410 (OSSwapBigToHostInt32(header.dqh_maxentries) > (file_size / sizeof(struct dqblk)))) { in dqfileopen()
H A Dvfs_vnops.c1623 off_t file_size; in vn_ioctl() local
1643 if ((error = vnode_size(vp, &file_size, ctx)) != 0) { in vn_ioctl()
1646 temp_nbytes = file_size - fp->fp_glob->fg_offset; in vn_ioctl()
H A Dvfs_syscalls.c5792 off_t offset = uap->offset, file_size; in lseek() local
5831 if ((error = vnode_size(vp, &file_size, ctx)) != 0) { in lseek()
5834 offset += file_size; in lseek()
/xnu-8020.121.3/osfmk/vm/
H A Dvm_shared_region.h258 memory_object_size_t file_size; member
/xnu-8020.121.3/tools/kt-dump/
H A Dkt-dump.cpp261 size_t size(std::filesystem::file_size(path)); in read_file()
/xnu-8020.121.3/libkern/c++/
H A DOSKext.cpp105 extern void *ubc_getobject_from_filename(const char *filename, struct vnode **, off_t *file_size);