Searched refs:file_size (Results 1 - 25 of 44) sorted by relevance

12

/openbsd-current/gnu/lib/libreadline/
H A Dhistfile.c155 size_t file_size; local
166 file_size = (size_t)finfo.st_size;
169 if (file_size != finfo.st_size || file_size + 1 < file_size)
182 buffer = (char *)mmap (0, file_size, PROT_READ|PROT_WRITE, MAP_RFLAGS, file, 0);
185 chars_read = file_size;
187 buffer = (char *)malloc (file_size + 1);
191 chars_read = read (file, buffer, file_size);
247 munmap (buffer, file_size);
264 size_t file_size; local
[all...]
H A Dbind.c642 size_t file_size; local
649 file_size = (size_t)finfo.st_size;
652 if (file_size != finfo.st_size || file_size + 1 < file_size)
663 buffer = (char *)xmalloc (file_size + 1);
664 i = read (file, buffer, file_size);
730 size_t file_size; local
736 buffer = _rl_read_file (openname, &file_size);
754 end = buffer + file_size;
[all...]
/openbsd-current/gnu/usr.bin/texinfo/info/
H A Dmakedoc.c324 long file_size; local
335 file_size = (long) finfo.st_size;
336 buffer = (char *)xmalloc (1 + file_size);
340 file_size = read (descriptor, buffer, file_size);
360 for (; offset < (file_size - decl_len); offset++)
380 while (point < file_size)
393 while (point++ < file_size)
404 if (point >= file_size)
457 while (point < file_size)
[all...]
/openbsd-current/gnu/llvm/lldb/source/Plugins/ObjectContainer/BSD-Archive/
H A DObjectContainerBSDArchive.cpp57 file_size = 0;
122 file_size = size - ar_name_len;
200 file_size = size - ar_name_len;
231 offset += obj.file_size;
249 offset += obj.file_size;
409 "%p, file_offset = 0x%8.8" PRIx64 ", file_size = 0x%8.8" PRIx64 ")",
539 lldb::offset_t file_size = object->size; local
541 FileSystem::Instance().CreateDataBuffer(child, file_size,
543 if (child_data_sp->GetByteSize() != object->file_size)
548 object->file_size, child_data_s
560 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...]
H A DObjectContainerBSDArchive.h112 lldb::offset_t file_size = 0; member in struct:ObjectContainerBSDArchive::Object
/openbsd-current/gnu/llvm/lldb/source/Symbol/
H A DObjectFile.cpp37 lldb::offset_t file_offset, lldb::offset_t file_size,
45 module_sp, data_sp, data_offset, file, file_offset, file_size));
54 lldb::offset_t file_offset, lldb::offset_t file_size,
58 "0x%8.8" PRIx64 ", file_size = 0x%8.8" PRIx64 ")",
61 static_cast<uint64_t>(file_size));
76 module_sp, file, file_offset, file_size, data_sp, data_offset);
84 if (file_size > 0) {
101 file_size = FileSystem::Instance().GetByteSize(archive_file);
102 if (file_size > 0) {
113 module_sp, file, file_offset, file_size, data_s
36 CreateObjectFromContainer(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
53 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, DataBufferSP data_sp) 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...]
/openbsd-current/gnu/llvm/lldb/source/API/
H A DSBSection.cpp194 uint64_t file_size = size; local
195 if (file_size == UINT64_MAX) {
196 file_size = section_sp->GetByteSize();
197 if (file_size > offset)
198 file_size -= offset;
200 file_size = 0;
203 objfile->GetFileSpec().GetPath(), file_size, file_offset);
/openbsd-current/gnu/llvm/compiler-rt/lib/profile/
H A DGCDAProfiling.c78 static uint64_t file_size = 0; variable
223 file_size = ftell(output_file);
227 if (file_size == 0)
237 mmap_handle = CreateFileMapping(mmap_fd, NULL, PAGE_READWRITE, DWORD_HI(file_size), DWORD_LO(file_size), NULL);
244 write_buffer = MapViewOfFile(mmap_handle, FILE_MAP_WRITE, 0, 0, file_size);
252 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE,
279 if (munmap(write_buffer, file_size) == -1) {
287 file_size = 0;
347 /* The file has been created just now (file_size
[all...]
/openbsd-current/gnu/llvm/lldb/source/Plugins/ObjectContainer/Universal-Mach-O/
H A DObjectContainerUniversalMachO.cpp179 lldb::offset_t file_size, lldb_private::ModuleSpecList &specs) {
191 if (fat_arch.offset < file_size && file_size > slice_file_offset) {
193 file, slice_file_offset, file_size - slice_file_offset, specs);
176 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
/openbsd-current/gnu/llvm/lldb/include/lldb/Core/
H A DSection.h112 lldb::offset_t file_size, uint32_t log2align, uint32_t flags,
123 lldb::offset_t file_size, uint32_t log2align, uint32_t flags,
154 void SetFileSize(lldb::offset_t file_size) { m_file_size = file_size; } argument
/openbsd-current/gnu/usr.sbin/mkhybrid/src/diag/
H A Disovfy.c307 check_tree(int file_addr, int file_size, int parent_addr){ argument
324 printf("Starting directory %d %d %d\n", file_addr, file_size, parent_addr);
328 dir_size_count += file_size / blocksize;
330 if(file_size & 0x3ff) printf("********Directory has unusual size\n");
332 for(k=0; k < (file_size / sizeof(buffer)); k++){
535 int file_addr, file_size; local
560 file_size = isonum_733(idr->size);
562 printf("Root at extent %x, %d bytes\n", file_addr, file_size);
565 check_tree(file_addr, file_size, file_addr);
/openbsd-current/gnu/llvm/lldb/bindings/interface/
H A DSBSection.i140 file_size = property(GetFileByteSize, None, doc='''A read only property that returns the file size in bytes of this section as an integer.''')
/openbsd-current/gnu/llvm/lldb/source/Plugins/ObjectFile/JIT/
H A DObjectFileJIT.cpp206 lldb::offset_t file_size = section->GetFileSize(); local
207 if (section_offset < file_size) {
208 size_t src_len = file_size - section_offset;
/openbsd-current/gnu/llvm/lldb/include/lldb/Symbol/
H A DObjectFile.h158 /// \param[in] file_size
165 lldb::offset_t file_offset, lldb::offset_t file_size,
190 lldb::offset_t file_size, ModuleSpecList &specs,
197 lldb::offset_t file_size,
/openbsd-current/gnu/llvm/llvm/tools/llvm-xray/
H A Dxray-fdr-dump.cpp43 if (auto EC = sys::fs::file_size(DumpInput, FileSize))
/openbsd-current/gnu/usr.bin/texinfo/util/
H A Dtexindex.c982 long file_size;
993 for (file_size = 0;;)
995 i = read (desc, data + file_size, total - file_size);
998 file_size += i;
1001 data[file_size] = 0;
1005 if (file_size > 0 && data[0] != '\\' && data[0] != '@')
1032 nextline = parsefile (infile, nextline, file_data, file_size);
975 long file_size; local
/openbsd-current/gnu/llvm/llvm/include/llvm-c/
H A Dlto.h228 lto_module_create_from_fd(int fd, const char *path, size_t file_size);
237 lto_module_create_from_fd_at_offset(int fd, const char *path, size_t file_size,
/openbsd-current/gnu/usr.bin/texinfo/makeinfo/
H A Dfiles.c196 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
/openbsd-current/gnu/usr.sbin/mkhybrid/src/
H A Drock.c530 unsigned int file_size; local
535 file_size = 0;
557 file_size = ((unsigned int)header[7] << 24) |
561 fprintf(stderr,"Blocksize = %d %d\n", blocksize, file_size);
588 set_733((char*)Rock + ipnt, file_size); /* Real file size */
/openbsd-current/sbin/isakmpd/
H A Dutil.c529 check_file_secrecy_fd(int fd, char *name, size_t *file_size) argument
549 if (file_size)
550 *file_size = (size_t)st.st_size;
/openbsd-current/gnu/llvm/lldb/source/Host/common/
H A DHost.cpp496 uint64_t file_size =
498 if (file_size > 0) {
499 if (file_size > command_output_ptr->max_size()) {
/openbsd-current/gnu/llvm/lldb/source/Core/
H A DSection.cpp157 lldb::offset_t file_offset, lldb::offset_t file_size,
163 m_file_offset(file_offset), m_file_size(file_size),
173 lldb::offset_t file_offset, lldb::offset_t file_size,
179 m_file_offset(file_offset), m_file_size(file_size),
154 Section(const ModuleSP &module_sp, ObjectFile *obj_file, user_id_t sect_id, 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 log2align, uint32_t flags, uint32_t target_byte_size ) argument
169 Section(const lldb::SectionSP &parent_section_sp, const ModuleSP &module_sp, ObjectFile *obj_file, user_id_t sect_id, 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 log2align, uint32_t flags, uint32_t target_byte_size ) argument
/openbsd-current/gnu/llvm/lldb/source/Plugins/ObjectContainer/Mach-O-Fileset/
H A DObjectContainerMachOFileset.cpp223 lldb::offset_t file_size, lldb_private::ModuleSpecList &specs) {
235 file, entry_offset, file_size - entry_offset, specs)) {
220 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
/openbsd-current/distrib/special/more/
H A Dmore.c108 off_t file_pos, file_size; variable
331 (file_size != LONG_MAX)) {
460 if ((file_size = stbuf.st_size) == 0)
461 file_size = LONG_MAX;
647 (int)((file_pos * 100) / file_size));
/openbsd-current/gnu/llvm/lldb/source/Expression/
H A DREPL.cpp200 const size_t file_size = fs.GetByteSize(pathTwine); local
202 if (file_size > max_size) {
204 "file_size = %zu, max_size = %zu\n",
205 path.c_str(), file_size, max_size);

Completed in 208 milliseconds

12