| /xnu-11215/bsd/kern/ |
| H A D | imageboot.c | 519 off_t fsize = 0; in ubc_getobject_from_filename() local 534 if (fsize < 0) { in ubc_getobject_from_filename() 543 *file_size = fsize; in ubc_getobject_from_filename() 564 off_t fsize = 0; in imageboot_read_file_internal() local 585 if (fsize < 0) { in imageboot_read_file_internal() 595 *fsizep = fsize; in imageboot_read_file_internal() 605 if (os_sub_overflow(fsize, offset, &fsize)) { in imageboot_read_file_internal() 606 fsize = 0; in imageboot_read_file_internal() 608 fsize = 0; in imageboot_read_file_internal() 614 fsize = maxsize; in imageboot_read_file_internal() [all …]
|
| H A D | chunklist.c | 190 off_t fsize = 0; in validate_root_image() local 202 vp = imgboot_get_image_file(root_path, &fsize, &err); in validate_root_image() 269 if (offset != fsize) { in validate_root_image() 270 AUTHPRNT("chunklist did not cover entire file (offset = %lld, fsize = %lld)", offset, fsize); in validate_root_image() 564 off_t fsize = 0; in authenticate_libkern_uuid() local 567 err = imageboot_read_file(libkern_path, &buf, &bufsz, &fsize); in authenticate_libkern_uuid() 572 if (fatfile_validate_fatarches((vm_offset_t)buf, bufsz, fsize) == LOAD_SUCCESS) { in authenticate_libkern_uuid()
|
| H A D | kern_core.c | 637 int64_t fsize = ((maxprot & VM_PROT_READ) == VM_PROT_READ in coredump() local 641 if (fsize) { in coredump() 646 error = vn_rdwr_64(UIO_WRITE, vp, vmoffset, fsize, in coredump() 654 fsize = 0; in coredump() 663 VATTR_SET(vap, va_data_size, foffset + fsize); in coredump() 684 sc64->filesize = fsize; in coredump() 698 sc->filesize = CAST_DOWN_EXPLICIT(uint32_t, fsize); /* will never truncate */ in coredump() 706 foffset += fsize; in coredump()
|
| H A D | mach_loader.c | 3615 off_t fsize = (off_t)0; in get_macho_vnode() local 3648 if ((error = vnode_size(vp, &fsize, ctx)) != 0) { in get_macho_vnode() 3694 sizeof(*header), fsize); in get_macho_vnode() 3746 *macho_size = fsize; in get_macho_vnode() 3752 ubc_setsize(vp, fsize); in get_macho_vnode()
|
| /xnu-11215/tests/vm/ |
| H A D | vm_tainted_executable.c | 52 size_t fsize; variable 67 fsize = (size_t)fs.st_size; 68 mapaddr1 = mmap(NULL, fsize, PROT_READ, MAP_FILE | MAP_PRIVATE, fd1, 0); 70 T_QUIET; T_ASSERT_POSIX_SUCCESS(write(fd2, mapaddr1, fsize), NULL); 73 big_ep = &mapaddr1[fsize]; /* end pointer in "big" byte string */ 94 T_QUIET; T_ASSERT_POSIX_SUCCESS(munmap(mapaddr1, fsize), NULL);
|
| /xnu-11215/osfmk/ipc/ |
| H A D | flipc.c | 200 mach_msg_size_t fsize = ikm_header(kmsg)->msgh_size; in flipc_msg_size_from_kmsg() local 206 return fsize; in flipc_msg_size_from_kmsg() 223 mach_msg_size_t fsize = flipc_msg_size_from_kmsg(kmsg); in mnl_msg_from_kmsg() local 225 mnl_msg_t fmsg = mnl_msg_alloc(fsize, 0); in mnl_msg_from_kmsg() 236 fmsg->size = fsize; // Payload size (does NOT include mnl_msg header) in mnl_msg_from_kmsg() 240 bcopy((const void*)ikm_header(kmsg), (void*)MNL_MSG_PAYLOAD(fmsg), fsize); in mnl_msg_from_kmsg()
|
| /xnu-11215/osfmk/kern/ |
| H A D | kext_alloc.c | 140 get_address_from_kext_map(vm_size_t fsize) in get_address_from_kext_map() argument 145 ret = kext_alloc(&addr, fsize, false); in get_address_from_kext_map() 152 kext_free(addr, fsize); in get_address_from_kext_map()
|
| H A D | kext_alloc.h | 36 vm_offset_t get_address_from_kext_map(vm_size_t fsize);
|
| /xnu-11215/bsd/sys/ |
| H A D | imageboot.h | 51 imgboot_get_image_file(const char *path, off_t *fsize, int *errp);
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_xattr.c | 2609 int64_t fsize; in default_getxattr_doubleagent() local 2621 if ((error = open_xattrfile(vp, fileflags, &xfg, &fsize, context))) { in default_getxattr_doubleagent() 2639 kr = doubleagent_lookup_xattr(doubleagentd_port, fileport, fsize, cName, in default_getxattr_doubleagent() 2697 int64_t fsize; in default_listxattr_doubleagent() local 2713 if ((error = open_xattrfile(vp, FREAD | O_SHLOCK, &xfg, &fsize, in default_listxattr_doubleagent() 2736 kr = doubleagent_list_xattrs(doubleagentd_port, fileport, fsize, &error, in default_listxattr_doubleagent() 2799 int64_t fsize; in default_setxattr_doubleagent() local 2873 &fsize, context))) { in default_setxattr_doubleagent() 2892 kr = doubleagent_allocate_xattr(doubleagentd_port, fileport, fsize, in default_setxattr_doubleagent() 2952 int64_t fsize; in default_removexattr_doubleagent() local [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_timer.c | 894 u_int32_t fsize; in tcp_rexmt_save_state() local 900 fsize = tp->snd_max - tp->snd_una; in tcp_rexmt_save_state() 901 tp->snd_ssthresh_prev = max(fsize, tp->snd_ssthresh); in tcp_rexmt_save_state()
|
| H A D | tcp_input.c | 1362 u_int32_t fsize, acked; in tcp_bad_rexmt_restore_state() local 1363 fsize = tp->snd_max - th->th_ack; in tcp_bad_rexmt_restore_state() 1377 tp->snd_cwnd = fsize + min(acked, tp->snd_cwnd); in tcp_bad_rexmt_restore_state()
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSKext.h | 658 vm_size_t fsize,
|
| /xnu-11215/libkern/c++/ |
| H A D | OSKext.cpp | 13483 off_t fsize; local 13501 fileset_control = ubc_getobject_from_filename(filepath, &vp, &fsize); 13544 err = OSKext::mapKCFileSet(fileset_control, (vm_size_t)fsize, &mh, 0, &slide, pageable, NULL); 13586 vm_size_t fsize, argument 13608 vm_map_offset_t pagealigned_addr = get_address_from_kext_map(fsize);
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | dtrace.c | 2539 uint32_t i, ndx, size, fsize; in dtrace_aggregate() local 2566 fsize = size + rec->dtrd_size; in dtrace_aggregate() 2718 if ((uintptr_t)tomax + offs + fsize > in dtrace_aggregate() 2730 buf->dtb_offset = offs + fsize; in dtrace_aggregate() 2768 for (i = size; i < fsize; i++) in dtrace_aggregate()
|