| /netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ |
| H A D | tcs_aik.c | 90 size_t file_size; in get_credential() local 121 file_size = (size_t)stat_buf.st_size; in get_credential() 123 LogDebugFn("%s, (%zd bytes)", path, file_size); in get_credential() 125 file = mmap(0, file_size, PROT_READ, MAP_PRIVATE, fd, 0); in get_credential() 133 if ((*cred = malloc(file_size)) == NULL) { in get_credential() 134 LogError("malloc of %zd bytes failed.", file_size); in get_credential() 135 munmap(file, file_size); in get_credential() 139 memcpy(*cred, file, file_size); in get_credential() 140 *size = file_size; in get_credential() 141 munmap(file, file_size); in get_credential()
|
| /netbsd-src/external/gpl3/gdb/dist/readline/readline/ |
| H A D | histfile.c | 276 size_t file_size; in read_history_range() local 304 file_size = (size_t)finfo.st_size; in read_history_range() 307 if (file_size != finfo.st_size || file_size + 1 < file_size) in read_history_range() 313 if (file_size == 0) in read_history_range() 323 buffer = (char *)mmap (0, file_size, PROT_READ|PROT_WRITE, MAP_RFLAGS, file, 0); in read_history_range() 329 chars_read = file_size; in read_history_range() 331 buffer = (char *)malloc (file_size + 1); in read_history_range() 338 chars_read = read (file, buffer, file_size); in read_history_range() 454 munmap (buffer, file_size); in read_history_range() 525 size_t file_size; in history_truncate_file() local [all …]
|
| H A D | bind.c | 898 size_t file_size; in _rl_read_file() local 910 file_size = (size_t)finfo.st_size; in _rl_read_file() 913 if (file_size != finfo.st_size || file_size + 1 < file_size) in _rl_read_file() 924 buffer = (char *)xmalloc (file_size + 1); in _rl_read_file() 925 i = read (file, buffer, file_size); in _rl_read_file() 991 size_t file_size; in _rl_read_init_file() local 997 buffer = _rl_read_file (openname, &file_size); in _rl_read_init_file() 1016 end = buffer + file_size; in _rl_read_init_file()
|
| /netbsd-src/external/gpl2/texinfo/dist/info/ |
| H A D | makedoc.c | 326 long file_size; in process_one_file() local 337 file_size = (long) finfo.st_size; in process_one_file() 338 buffer = (char *)xmalloc (1 + file_size); in process_one_file() 342 file_size = read (descriptor, buffer, file_size); in process_one_file() 362 for (; offset < (file_size - decl_len); offset++) in process_one_file() 382 while (point < file_size) in process_one_file() 395 while (point++ < file_size) in process_one_file() 406 if (point >= file_size) in process_one_file() 459 while (point < file_size) in process_one_file() 475 while (offset < file_size) in process_one_file() [all …]
|
| /netbsd-src/sys/fs/nilfs/ |
| H A D | nilfs_vnops.c | 143 uint64_t file_size; in nilfs_read() local 165 file_size = nilfs_rw64(nilfs_node->inode.i_size); in nilfs_read() 172 if (file_size <= uio->uio_offset) in nilfs_read() 176 len = MIN(file_size - uio->uio_offset, uio->uio_resid); in nilfs_read() 214 uint64_t file_size; in nilfs_write() local 240 file_size = nilfs_rw64(nilfs_node->inode.i_size); in nilfs_write() 244 uio->uio_offset = file_size; in nilfs_write() 247 extended = (uio->uio_offset + uio->uio_resid > file_size); in nilfs_write() 250 file_size, uio->uio_offset + uio->uio_resid)); in nilfs_write() 254 file_size = uio->uio_offset + uio->uio_resid; in nilfs_write() [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/profile/ |
| H A D | GCDAProfiling.c | 88 static uint64_t file_size = 0; variable 221 file_size = ftell(output_file); in map_file() 225 if (file_size == 0) in map_file() 228 write_buffer = mmap(0, file_size, PROT_READ | PROT_WRITE, in map_file() 240 if (msync(write_buffer, file_size, MS_SYNC) == -1) { in unmap_file() 249 (void)munmap(write_buffer, file_size); in unmap_file() 251 file_size = 0; in unmap_file()
|
| /netbsd-src/sys/fs/udf/ |
| H A D | udf_vnops.c | 198 uint64_t file_size; in udf_read() local 231 file_size = udf_rw64(fe->inf_len); in udf_read() 235 file_size = udf_rw64(efe->inf_len); in udf_read() 243 if (file_size <= uio->uio_offset) in udf_read() 247 len = MIN(file_size - uio->uio_offset, uio->uio_resid); in udf_read() 293 uint64_t file_size, old_size, old_offset; in udf_write() local 328 file_size = udf_rw64(fe->inf_len); in udf_write() 332 file_size = udf_rw64(efe->inf_len); in udf_write() 334 old_size = file_size; in udf_write() 338 uio->uio_offset = file_size; in udf_write() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/bfd/ |
| H A D | pdb.c | 70 uint32_t first_dir_block, dir_offset, file_size, block_off, left; in pdb_get_elt_at_index() local 175 file_size = bfd_getl32 (int_buf); in pdb_get_elt_at_index() 178 if (file_size == 0xffffffff) in pdb_get_elt_at_index() 179 file_size = 0; in pdb_get_elt_at_index() 201 arch_eltdata (file)->parsed_size = file_size; in pdb_get_elt_at_index() 204 if (file_size == 0) in pdb_get_elt_at_index() 298 left = file_size; in pdb_get_elt_at_index() 303 if ((dir_offset % block_size) == 0 && left != file_size) in pdb_get_elt_at_index()
|
| H A D | bfdio.c | 610 ufile_ptr file_size, archive_size = (ufile_ptr) -1; in bfd_get_file_size() local 630 file_size = bfd_get_size (abfd) << compression_p2; in bfd_get_file_size() 631 if (archive_size < file_size) in bfd_get_file_size() 633 return file_size; in bfd_get_file_size()
|
| /netbsd-src/external/gpl2/diffutils/dist/src/ |
| H A D | io.c | 167 size_t file_size = current->stat.st_size; in slurp() local 168 cc = file_size + 2 * sizeof (word) - file_size % sizeof (word); in slurp() 169 if (file_size != current->stat.st_size || cc < file_size in slurp() 183 if (current->buffered <= file_size) in slurp() 185 file_block_read (current, file_size + 1 - current->buffered); in slurp() 186 if (current->buffered <= file_size) in slurp()
|
| /netbsd-src/external/bsd/wpa/dist/src/utils/ |
| H A D | pcsc_funcs.c | 1126 int file_size; in scard_get_imsi() local 1127 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) in scard_get_imsi() 1129 blen = file_size; in scard_get_imsi() 1185 int file_size; in scard_get_mnc_len() local 1198 file_size = WPA_GET_BE16(&buf[2]); in scard_get_mnc_len() 1200 if (scard_parse_fsp_templ(buf, blen, NULL, &file_size)) in scard_get_mnc_len() 1203 if (file_size == 3) { in scard_get_mnc_len() 1207 if (file_size < 4 || file_size > (int) sizeof(buf)) { in scard_get_mnc_len() 1209 (long) file_size); in scard_get_mnc_len() 1213 if (scard_read_file(scard, buf, file_size)) in scard_get_mnc_len()
|
| /netbsd-src/external/bsd/libarchive/dist/libarchive/test/ |
| H A D | test_read_format_rar.c | 1273 int file_size = sizeof(file_buff); in DEFINE_TEST() local 1293 assertEqualInt(file_size, archive_entry_size(ae)); in DEFINE_TEST() 1297 assertA(file_size == archive_read_data(a, file_buff, file_size)); in DEFINE_TEST() 1298 assertEqualMem(&file_buff[file_size - sizeof(file_test_txt) + 1], in DEFINE_TEST() 1317 int file_size = 20111; in DEFINE_TEST() local 1333 assertEqualInt(file_size, archive_entry_size(ae)); in DEFINE_TEST() 1355 int file_size = 20111; in DEFINE_TEST() local 1381 assertEqualInt(file_size, archive_entry_size(ae)); in DEFINE_TEST() 1387 assertA(file_size - (int)sizeof(buff) == in DEFINE_TEST() 1388 archive_seek_data(a, file_size - (int)sizeof(buff), SEEK_SET)); in DEFINE_TEST() [all …]
|
| /netbsd-src/external/gpl2/texinfo/dist/util/ |
| H A D | texindex.c | 740 long file_size; in sort_in_core() local 751 for (file_size = 0;;) in sort_in_core() 753 i = read (desc, data + file_size, total - file_size); in sort_in_core() 756 file_size += i; in sort_in_core() 759 data[file_size] = 0; in sort_in_core() 763 if (file_size > 0 && data[0] != '\\' && data[0] != '@') in sort_in_core() 790 nextline = parsefile (infile, nextline, file_data, file_size); in sort_in_core()
|
| /netbsd-src/usr.bin/tail/ |
| H A D | forward.c | 276 off_t file_size; in rlines() local 286 if (!(file_size = sbp->st_size)) in rlines() 288 file_remaining = file_size; in rlines()
|
| /netbsd-src/external/gpl2/texinfo/dist/makeinfo/ |
| H A D | files.c | 196 long file_size; in find_and_load() local 211 file_size = (long) fileinfo.st_size; in find_and_load() 218 result = xmalloc (file_size + 2); in find_and_load() 225 bytes_to_read = file_size; in find_and_load() 231 if (0 < count && count < file_size) in find_and_load()
|
| /netbsd-src/external/gpl2/mkhybrid/dist/ |
| H A D | rock.c | 530 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 */
|
| /netbsd-src/external/gpl3/binutils.old/dist/bfd/ |
| H A D | opncls.c | 1209 ufile_ptr file_size; in bfd_get_debug_link_info_1() local 1220 file_size = bfd_get_size (abfd); in bfd_get_debug_link_info_1() 1223 if (size < 8 || (file_size != 0 && size >= file_size)) in bfd_get_debug_link_info_1() 1299 ufile_ptr file_size; in bfd_get_alt_debug_link_info() local 1311 file_size = bfd_get_size (abfd); in bfd_get_alt_debug_link_info() 1312 if (size < 8 || (file_size != 0 && size >= file_size)) in bfd_get_alt_debug_link_info()
|
| H A D | bfdio.c | 517 ufile_ptr file_size, archive_size = (ufile_ptr) -1; in bfd_get_file_size() local 536 file_size = bfd_get_size (abfd); in bfd_get_file_size() 537 if (archive_size < file_size) in bfd_get_file_size() 539 return file_size; in bfd_get_file_size()
|
| /netbsd-src/external/public-domain/xz/dist/src/liblzma/common/ |
| H A D | index.c | 545 lzma_vli file_size = compressed_base + 2 * LZMA_STREAM_HEADER_SIZE in index_file_size() local 547 if (file_size > LZMA_VLI_MAX) in index_file_size() 551 file_size += index_size(record_count, index_list_size); in index_file_size() 552 if (file_size > LZMA_VLI_MAX) in index_file_size() 555 return file_size; in index_file_size() 725 lzma_vli file_size; member 754 this->node.compressed_base += info->file_size; in index_cat_helper() 842 .file_size = dest_file_size, in lzma_index_cat()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
| H A D | fs_dir.h | 244 file_size() const in _GLIBCXX_VISIBILITY() 245 { return filesystem::file_size(_M_path); } in _GLIBCXX_VISIBILITY() 248 file_size(error_code& __ec) const noexcept in _GLIBCXX_VISIBILITY() 249 { return filesystem::file_size(_M_path, __ec); } in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
| H A D | fs_dir.h | 253 file_size() const in _GLIBCXX_VISIBILITY() 254 { return filesystem::file_size(_M_path); } in _GLIBCXX_VISIBILITY() 257 file_size(error_code& __ec) const noexcept in _GLIBCXX_VISIBILITY() 258 { return filesystem::file_size(_M_path, __ec); } in _GLIBCXX_VISIBILITY()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libgfortran/io/ |
| H A D | unix.h | 150 extern GFC_IO_INT file_size (const char *file, gfc_charlen_type file_len); 151 internal_proto(file_size);
|
| /netbsd-src/external/gpl3/gcc/dist/libgfortran/io/ |
| H A D | unix.h | 150 extern GFC_IO_INT file_size (const char *file, gfc_charlen_type file_len); 151 internal_proto(file_size);
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm-c/ |
| H A D | lto.h | 228 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,
|
| /netbsd-src/usr.sbin/installboot/ |
| H A D | evboards.c | 1672 uint64_t file_size = evb_ubstep_get_file_size(params, step); in evb_uboot_do_step() local 1747 if (file_size) in evb_uboot_do_step() 1748 file_remaining = (off_t)file_size; in evb_uboot_do_step() 1902 uint64_t file_size = evb_ubstep_get_file_size(params, step); in evb_uboot_setboot() local 1918 if (file_size) in evb_uboot_setboot() 1919 this_max = file_size; in evb_uboot_setboot()
|