Searched refs:file_size (Results 1 - 25 of 62) sorted by last modified time

123

/macosx-10.10/xnu-2782.1.97/osfmk/vm/
H A Dvm_shared_region.c1026 memory_object_size_t file_size,
1091 (void *)VM_KERNEL_ADDRPERM(file_control), file_size));
1297 (void *)VM_KERNEL_ADDRPERM(file_control), file_size, kr));
1021 vm_shared_region_map_file( vm_shared_region_t shared_region, unsigned int mappings_count, struct shared_file_mapping_np *mappings, memory_object_control_t file_control, memory_object_size_t file_size, void *root_dir, uint32_t slide, user_addr_t slide_start, user_addr_t slide_size) argument
H A Dvm_shared_region.h196 memory_object_size_t file_size,
/macosx-10.10/xnu-2782.1.97/bsd/vfs/
H A Dvfs_syscalls.c4710 off_t offset = uap->offset, file_size; local
4747 if ((error = vnode_size(vp, &file_size, ctx)) != 0)
4749 offset += file_size;
H A Dvfs_vnops.c1361 off_t file_size; local
1380 if ((error = vnode_size(vp, &file_size, ctx)) != 0)
1382 *(int *)data = file_size - fp->f_fglob->fg_offset;
H A Dvfs_quota.c416 off_t file_size; local
425 if ((error = vnode_size(qfp->qf_vp, &file_size, &context)) != 0)
443 (OSSwapBigToHostInt32(header.dqh_maxentries) > (file_size / sizeof(struct dqblk)))) {
/macosx-10.10/xnu-2782.1.97/bsd/vm/
H A Ddp_backing_file.c289 off_t file_size; local
333 if ((error = vnode_size(vp, &file_size, ctx)) != 0)
344 if ((file_size < (off_t)size) && ((error = vnode_setsize(vp, (off_t)size, 0, ctx)) != 0))
428 PAGE_SIZE, (int)(file_size/PAGE_SIZE));
H A Dvm_unix.c1160 memory_object_size_t file_size; local
1343 file_size = fs;
1376 file_size,
H A Dvm_compressor_backing_file.c99 uint64_t file_size = 0; local
134 error = vnode_size(vp, (off_t*) &file_size, ctx);
140 assert(file_size == *size);
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dmach_loader.c299 off_t file_size = imgp->ip_vattr->va_data_size; local
316 if (macho_size > file_size) {
870 uint64_t file_size,
885 file_off + file_size <= APPLE_UNPROTECTED_HEADER_SIZE) {
923 __unused uint64_t file_size,
868 unprotect_dsmos_segment( uint64_t file_off, uint64_t file_size, struct vnode *vp, off_t macho_offset, vm_map_t map, vm_map_offset_t map_addr, vm_map_size_t map_size) argument
921 unprotect_dsmos_segment( __unused uint64_t file_off, __unused uint64_t file_size, __unused struct vnode *vp, __unused off_t macho_offset, __unused vm_map_t map, __unused vm_map_offset_t map_addr, __unused vm_map_size_t map_size) argument
H A Duipc_syscalls.c2872 off_t file_size; local
3001 if ((error = vnode_size(vp, &file_size, vfs_context_current())) != 0) {
3059 if (off + xfsize > file_size)
3060 xfsize = file_size - off;
3130 if (xfsize + off > file_size)
3131 printf("sendfile: xfsize: %lld + off: %lld > file_size:"
3132 "%lld\n", xfsize, off, file_size);
/macosx-10.10/llvmCore-3425.0.34/utils/unittest/googletest/
H A Dgtest-port.cc567 const size_t file_size = GetFileSize(file);
568 char* const buffer = new char[file_size];
578 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file);
580 } while (bytes_last_read > 0 && bytes_read < file_size);
/macosx-10.10/llvmCore-3425.0.34/tools/lto/
H A DLTOModule.cpp217 size_t file_size,
222 if (error_code ec = MemoryBuffer::getOpenFile(fd, path, buffer, file_size,
216 makeLTOModule(int fd, const char *path, size_t file_size, size_t map_size, off_t offset, std::string &errMsg) argument
H A DLTOModule.h85 size_t file_size,
H A Dlto.cpp79 size_t file_size,
82 return LTOModule::makeLTOModule(fd, path, file_size, map_size,
78 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size, size_t map_size, off_t offset) argument
/macosx-10.10/llvmCore-3425.0.34/unittests/Support/
H A DFileOutputBufferTest.cpp69 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size));
108 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size));
/macosx-10.10/llvmCore-3425.0.34/include/llvm-c/
H A Dlto.h137 lto_module_create_from_fd(int fd, const char *path, size_t file_size);
144 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
/macosx-10.10/llvmCore-3425.0.34/include/llvm/Support/
H A DFileSystem.h382 error_code file_size(const Twine &path, uint64_t &result);
523 /// \a path. Or the entire file if file_size(path) < len, in which
/macosx-10.10/syslog-267/libsystem_asl.tproj/src/
H A Dasl_file.c148 if ((off + sizeof(uint32_t)) > s->file_size) return ASL_STATUS_READ_FAILED;
170 if ((off + sizeof(uint64_t)) > s->file_size) return ASL_STATUS_READ_FAILED;
280 out->file_size = sizeof(buf);
440 out->file_size = (size_t)sb.st_size;
450 if ((out->last + MSG_RECORD_FIXED_LENGTH) > out->file_size)
465 if ((out->last + last_len) > out->file_size) out->last = 0;
483 out->file_size = (size_t)ftello(out->store);
1156 s->file_size = (size_t)ftello(s->store);
1204 if ((off + sizeof(uint16_t) + sizeof(uint32_t)) > s->file_size) return ASL_STATUS_READ_FAILED;
1221 if ((off + len) > s->file_size) retur
[all...]
/macosx-10.10/syslog-267/syslogd.tproj/
H A Dasl_action.c1182 r->dst->size = af_data->aslfile->file_size;
1229 if (status == ASL_STATUS_OK) r->dst->size = as_data->aslfile->file_size;
/macosx-10.10/syslog-267/aslmanager.tproj/
H A Daslmanager.c698 size_t file_size, store_size; local
780 file_size = 0;
781 if (stat(dent->d_name, &sb) == 0) file_size = sb.st_size;
785 ymd_list = add_to_name_list(ymd_list, dent->d_name, file_size);
786 store_size += file_size;
790 file_size = directory_size(dent->d_name);
791 aux_list = add_to_name_list(aux_list, dent->d_name, file_size);
792 store_size += file_size;
796 file_size = directory_size(dent->d_name);
797 bb_aux_list = add_to_name_list(bb_aux_list, dent->d_name, file_size);
[all...]
/macosx-10.10/dyld-353.2.1/launch-cache/
H A DMachOLayout.hpp72 Segment(uint64_t addr, uint64_t vmsize, uint64_t offset, uint64_t file_size, uint64_t align, argument
74 fOrigFileOffset(offset), fOrigFileSize(file_size), fOrigPermissions(prot),
75 fSize(vmsize), fFileOffset(offset), fFileSize(file_size), fAlignment(align),
/macosx-10.10/system_cmds-643.1.1/iosim.tproj/
H A Diosim.c48 int file_size = DEFAULT_FILE_SIZE; /* Unit: pages ; Desc.: File Size in 4096 byte blocks */ variable
424 file_size = atoi(optarg);
425 validate_option(file_size, 0, INT_MAX, "File Size", "bytes");
463 snprintf(dd_command, MAX_CMD_SIZE, "dd if=/dev/urandom of=%s bs=4096 count=%d", fname, file_size);
464 printf("Creating file %s of size %lld...\n", fname, ((int64_t)file_size * 4096));
/macosx-10.10/syslog-267/libsystem_asl.tproj/include/
H A Dasl_file.h122 size_t file_size; member in struct:asl_file_s
/macosx-10.10/apache-793/httpd/modules/cache/
H A Dmod_cache_disk.c563 dobj->file_size = finfo.size;
894 apr_brigade_insert_file(bb, dobj->data.fd, 0, dobj->file_size, p);
1212 dobj->file_size = 0;
1233 dobj->file_size += written;
1234 if (dobj->file_size > dconf->maxfs) {
1237 "(%" APR_OFF_T_FMT ">%" APR_OFF_T_FMT ")", h->cache_obj->key, dobj->file_size, dconf->maxfs);
1287 if (dobj->file_size < dconf->minfs) {
1290 "(%" APR_OFF_T_FMT "<%" APR_OFF_T_FMT ")", h->cache_obj->key, dobj->file_size, dconf->minfs);
1297 if ((errno == 0) && (dobj->file_size != cl)) {
/macosx-10.10/system_cmds-643.1.1/trace.tproj/
H A Dtrace.c2288 unsigned long file_size; local
2307 file_size = stat_buf.st_size;
2334 for (count = 0, j=1; j < file_size; j++)
2363 for (line = 1, j = 0; j < file_size && codesc_idx < total_count; codesc_idx++)
2385 while (file_addr[j] != '\n' && j < file_size)
2413 while ((j < file_size) && (file_addr[j] != '\n'))

Completed in 266 milliseconds

123