/freebsd-10-stable/contrib/libreadline/ |
H A D | histfile.c | 170 size_t file_size; local 186 file_size = (size_t)finfo.st_size; 189 if (file_size != finfo.st_size || file_size + 1 < file_size) 198 buffer = (char *)mmap (0, file_size, PROT_READ|PROT_WRITE, MAP_RFLAGS, file, 0); 204 chars_read = file_size; 206 buffer = (char *)malloc (file_size + 1); 213 chars_read = read (file, buffer, file_size); 295 munmap (buffer, file_size); 312 size_t file_size; local [all...] |
H A D | bind.c | 769 size_t file_size; local 776 file_size = (size_t)finfo.st_size; 779 if (file_size != finfo.st_size || file_size + 1 < file_size) 790 buffer = (char *)xmalloc (file_size + 1); 791 i = read (file, buffer, file_size); 859 size_t file_size; local 865 buffer = _rl_read_file (openname, &file_size); 883 end = buffer + file_size; [all...] |
/freebsd-10-stable/tools/regression/fsx/ |
H A D | fsx.c | 104 off_t file_size = 0; variable 359 save_buffer(good_buf, file_size, fsxgoodfd); 427 if (file_size != statbuf.st_size || file_size != size_by_seek) { 429 (unsigned long long)file_size, 466 if (size + offset > file_size) { 509 if (offset + size <= (file_size & ~page_mask)) 519 for (should_be_zero = last_page + (file_size & page_mask); 524 s, file_size - 1, should_be_zero & page_mask, 545 if (size + offset > file_size) { [all...] |
/freebsd-10-stable/tools/regression/aio/aiop/ |
H A D | aiop.c | 131 off_t file_size, offset; local 181 file_size = sb.st_size; 183 file_size = disk_getsize(fd); 186 if (file_size <= 0) 189 printf("File: %s; File size %jd bytes\n", fn, (intmax_t)file_size); 199 offset = random() % (file_size / io_size); 209 offset = random() % (file_size / io_size);
|
/freebsd-10-stable/tools/regression/sockets/sendfile/ |
H A D | sendfile.c | 77 uint32_t file_size; member in struct:sendfile_test 96 static int write_test_file(size_t file_size); 339 write_test_file(size_t file_size) argument 345 if (file_size == current_file_size) 347 else if (file_size < current_file_size) { 348 if (ftruncate(file_fd, file_size) != 0) 350 current_file_size = file_size; 354 page_buffer = malloc(file_size); 357 bzero(page_buffer, file_size); 359 len = write(file_fd, page_buffer, file_size); [all...] |
/freebsd-10-stable/contrib/llvm/tools/lldb/source/API/ |
H A D | SBSection.cpp | 219 uint64_t file_size = size; local 220 if (file_size == UINT64_MAX) 222 file_size = section_sp->GetByteSize(); 223 if (file_size > offset) 224 file_size -= offset; 226 file_size = 0; 228 DataBufferSP data_buffer_sp (objfile->GetFileSpec().ReadFileContents (file_offset, file_size));
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Symbol/ |
H A D | ObjectFile.cpp | 34 lldb::offset_t file_size, 43 "ObjectFile::FindPlugin (module = %s, file = %p, file_offset = 0x%8.8" PRIx64 ", file_size = 0x%8.8" PRIx64 ")", 45 file, (uint64_t) file_offset, (uint64_t) file_size); 62 std::unique_ptr<ObjectContainer> object_container_ap(create_object_container_callback(module_sp, data_sp, data_offset, file, file_offset, file_size)); 75 if (file_size > 0) 77 data_sp = file->ReadFileContents(file_offset, std::min<size_t>(512, file_size)); 92 file_size = archive_file.GetByteSize(); 93 if (file_size > 0) 104 std::unique_ptr<ObjectContainer> object_container_ap(create_object_container_callback(module_sp, data_sp, data_offset, file, file_offset, file_size)); 126 object_file_sp.reset (create_object_file_callback(module_sp, data_sp, data_offset, file, file_offset, file_size)); 31 FindPlugin(const lldb::ModuleSP &module_sp, const FileSpec* file, lldb::offset_t file_offset, lldb::offset_t file_size, DataBufferSP &data_sp, lldb::offset_t &data_offset) argument 187 GetModuleSpecifications(const FileSpec &file, lldb::offset_t file_offset, lldb::offset_t file_size, ModuleSpecList &specs) argument 212 GetModuleSpecifications(const lldb_private::FileSpec& file, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, lldb::offset_t file_offset, lldb::offset_t file_size, lldb_private::ModuleSpecList &specs) argument [all...] |
/freebsd-10-stable/contrib/llvm/include/llvm-c/ |
H A D | lto.h | 150 lto_module_create_from_fd(int fd, const char *path, size_t file_size); 157 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
|
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Core/ |
H A D | Section.h | 121 lldb::offset_t file_size, 134 lldb::offset_t file_size, 188 SetFileSize (lldb::offset_t file_size) argument 190 m_file_size = file_size;
|
/freebsd-10-stable/crypto/heimdal/appl/ftp/ftpd/ |
H A D | extern.h | 135 extern off_t file_size;
|
/freebsd-10-stable/contrib/diff/src/ |
H A D | io.c | 168 size_t file_size = current->stat.st_size; 169 cc = file_size + 2 * sizeof (word) - file_size % sizeof (word); 170 if (file_size != current->stat.st_size || cc < file_size 184 if (current->buffered <= file_size) 186 file_block_read (current, file_size + 1 - current->buffered); 187 if (current->buffered <= file_size) 165 size_t file_size = current->stat.st_size; local
|
/freebsd-10-stable/contrib/llvm/tools/lldb/include/lldb/Symbol/ |
H A D | ObjectFile.h | 144 /// @param[in] file_size 154 lldb::offset_t file_size, 185 lldb::offset_t file_size, 193 lldb::offset_t file_size,
|
/freebsd-10-stable/contrib/wpa/src/utils/ |
H A D | pcsc_funcs.c | 320 wpa_printf(MSG_DEBUG, "SCARD: file_size=%d", 1109 int file_size; local 1110 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) 1112 blen = file_size; 1168 int file_size; local 1181 file_size = (buf[2] << 8) | buf[3]; 1183 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) 1186 if (file_size == 3) { 1190 if (file_size < 4 || file_size > (in [all...] |
/freebsd-10-stable/sbin/savecore/ |
H A D | savecore.c | 188 file_size(const char *path) function 207 dumpsize += file_size(path); 209 dumpsize += file_size(path); 211 dumpsize += file_size(path); 213 dumpsize += file_size(path); 215 dumpsize += file_size(path);
|
/freebsd-10-stable/sys/fs/nandfs/ |
H A D | nandfs_dir.c | 266 uint64_t file_size, blocknr; local 272 file_size = dir_node->nn_inode.i_size; 273 if (!file_size)
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Core/ |
H A D | Section.cpp | 27 lldb::offset_t file_size, 39 m_file_size (file_size), 46 // this, module_sp.get(), sect_id, file_addr, file_addr + byte_size, file_offset, file_offset + file_size, flags, name.GetCString()); 58 lldb::offset_t file_size, 70 m_file_size (file_size), 77 // this, module_sp.get(), sect_id, file_addr, file_addr + byte_size, file_offset, file_offset + file_size, flags, parent_section_sp->GetName().GetCString(), name.GetCString()); 19 Section(const ModuleSP &module_sp, ObjectFile *obj_file, user_id_t sect_id, const ConstString &name, SectionType sect_type, addr_t file_addr, addr_t byte_size, lldb::offset_t file_offset, lldb::offset_t file_size, uint32_t flags) argument 49 Section(const lldb::SectionSP &parent_section_sp, const ModuleSP &module_sp, ObjectFile *obj_file, user_id_t sect_id, const ConstString &name, SectionType sect_type, addr_t file_addr, addr_t byte_size, lldb::offset_t file_offset, lldb::offset_t file_size, uint32_t flags) argument
|
H A D | DataBufferMemoryMap.cpp | 202 const size_t file_size = (file_size_high << 32) | file_size_low; local 203 const size_t max_bytes_available = file_size - offset;
|
/freebsd-10-stable/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_rar.c | 1220 int file_size = sizeof(file_buff); local 1240 assertEqualInt(file_size, archive_entry_size(ae)); 1244 assertA(file_size == archive_read_data(a, file_buff, file_size)); 1245 assertEqualMem(&file_buff[file_size - sizeof(file_test_txt) + 1], 1264 int file_size = 20111; local 1280 assertEqualInt(file_size, archive_entry_size(ae)); 1302 int file_size = 20111; local 1328 assertEqualInt(file_size, archive_entry_size(ae)); 1334 assertA(file_size 1436 int file_size = 20111; local [all...] |
/freebsd-10-stable/contrib/texinfo/util/ |
H A D | texindex.c | 1026 long file_size; 1037 for (file_size = 0;;) 1039 i = read (desc, data + file_size, total - file_size); 1042 file_size += i; 1045 data[file_size] = 0; 1049 if (file_size > 0 && data[0] != '\\' && data[0] != '@') 1076 nextline = parsefile (infile, nextline, file_data, file_size); 1019 long file_size; local
|
/freebsd-10-stable/contrib/subversion/subversion/libsvn_fs_fs/ |
H A D | stats.c | 183 get_file_size(apr_off_t *file_size, argument 192 *file_size = finfo.size; 732 apr_off_t file_size = 0; local 737 SVN_ERR(get_file_size(&file_size, rev_file, scratch_pool)); 758 info->end = file_size; 801 apr_off_t file_size = 0; local 811 SVN_ERR(get_file_size(&file_size, rev_file, scratch_pool)); 819 info->end = file_size;
|
/freebsd-10-stable/contrib/xz/src/liblzma/common/ |
H A D | index.c | 545 lzma_vli file_size = compressed_base + 2 * LZMA_STREAM_HEADER_SIZE local 547 if (file_size > LZMA_VLI_MAX) 551 file_size += index_size(record_count, index_list_size); 552 if (file_size > LZMA_VLI_MAX) 555 return file_size; 725 lzma_vli file_size; member in struct:__anon447 754 this->node.compressed_base += info->file_size; 842 .file_size = dest_file_size,
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ |
H A D | ObjectContainerBSDArchive.cpp | 336 "ObjectContainerBSDArchive::CreateInstance (module = %s, file = %p, file_offset = 0x%8.8" PRIx64 ", file_size = 0x%8.8" PRIx64 ")", 530 lldb::offset_t file_size, 548 DataBufferSP data_sp (file.MemoryMapFileContents(file_offset, file_size)); 562 if (object->ar_file_offset < file_size && file_size > object_file_offset) 566 file_size - object_file_offset, 526 GetModuleSpecifications(const lldb_private::FileSpec& file, lldb::DataBufferSP& data_sp, lldb::offset_t data_offset, lldb::offset_t file_offset, lldb::offset_t file_size, lldb_private::ModuleSpecList &specs) argument
|
/freebsd-10-stable/contrib/texinfo/makeinfo/ |
H A D | files.c | 196 long file_size; 211 file_size = (long) fileinfo.st_size; 218 result = xmalloc (file_size + 2); 225 bytes_to_read = file_size; 231 if (0 < count && count < file_size) 194 long file_size; local
|
/freebsd-10-stable/bin/ls/tests/ |
H A D | ls_tests.sh | 547 file_size=$(stat -f '%z' "$file") || \ 550 if [ $file_size -lt $KB ]; then 554 elif [ $file_size -lt $MB ]; then 557 elif [ $file_size -lt $GB ]; then 560 elif [ $file_size -lt $TB ]; then 563 elif [ $file_size -lt $PB ]; then 571 bc_expr="$(printf "scale=%s\n%s/%s\nquit" $scale $file_size $divisor)"
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Host/common/ |
H A D | FileSpec.cpp | 784 // file, and "file_size" bytes will be mapped. If "file_size" is 791 FileSpec::MemoryMapFileContents(off_t file_offset, size_t file_size) const 797 const size_t mapped_length = mmap_data->MemoryMapFromFileSpec (this, file_offset, file_size); 798 if (((file_size == SIZE_MAX) && (mapped_length > 0)) || (mapped_length >= file_size)) 848 // file, and "file_size" bytes will be mapped. If "file_size" is 855 FileSpec::ReadFileContents (off_t file_offset, size_t file_size, Error *error_ptr) const argument 867 error = file.Read (file_size, file_offse [all...] |