Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 829) sorted by relevance

12345678910>>...34

/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dpdb.c77 if (bfd_seek (abfd, sizeof (pdb_magic), SEEK_SET)) in pdb_get_elt_at_index()
110 if (bfd_seek (abfd, block_map_addr * block_size, SEEK_SET)) in pdb_get_elt_at_index()
121 if (bfd_seek (abfd, first_dir_block * block_size, SEEK_SET)) in pdb_get_elt_at_index()
149 SEEK_SET)) in pdb_get_elt_at_index()
166 SEEK_SET)) in pdb_get_elt_at_index()
216 SEEK_SET)) in pdb_get_elt_at_index()
232 SEEK_SET)) in pdb_get_elt_at_index()
244 if (bfd_seek (abfd, block * block_size, SEEK_SET)) in pdb_get_elt_at_index()
278 SEEK_SET)) in pdb_get_elt_at_index()
312 SEEK_SET)) in pdb_get_elt_at_index()
[all …]
H A Dcoff-stgo32.c169 if ((long) lseek (f, exe_start, SEEK_SET) != exe_start) in go32exe_create_stub()
191 lseek (f, 0L, SEEK_SET); in go32exe_create_stub()
302 if (bfd_seek (abfd, 0, SEEK_SET) != 0) in go32exe_check_format()
320 if (bfd_seek (abfd, 0, SEEK_SET) != 0) in go32exe_check_format()
353 if (bfd_seek (abfd, 0, SEEK_SET) != 0) in go32exe_write_object_contents()
360 if (bfd_seek (abfd, pos, SEEK_SET) != 0) in go32exe_write_object_contents()
H A Delfcore.h183 if (bfd_seek (abfd, where, SEEK_SET) != 0) in elf_core_file_p()
218 if (bfd_seek (abfd, where, SEEK_SET) != 0) in elf_core_file_p()
225 if (bfd_seek (abfd, i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
314 if (bfd_seek (abfd, offset, SEEK_SET) != 0) in NAME()
370 if (bfd_seek (abfd, offset + i_ehdr.e_phoff, SEEK_SET) != 0) in NAME()
390 SEEK_SET) != 0) in NAME()
H A Di386msdos.c52 if (bfd_seek (abfd, 0, SEEK_SET) != 0 in msdos_object_p()
73 else if (bfd_seek (abfd, H_GET_32 (abfd, hdr.e_lfanew), SEEK_SET) != 0 in msdos_object_p()
107 if (bfd_seek (abfd, section->filepos + size, SEEK_SET) != 0) in msdos_object_p()
182 if (bfd_seek (abfd, 0, SEEK_SET) != 0 in msdos_write_object_contents()
204 if (bfd_seek (abfd, section->filepos + offset, SEEK_SET) != 0 in msdos_set_section_contents()
/netbsd-src/sys/arch/prep/stand/installboot/
H A Dinstallboot.c63 if (lseek(fd, (off_t)dbtob(blk), SEEK_SET) != dbtob(blk)) { in devread()
104 lseek(fd, 0L, SEEK_SET); in load_boot()
113 (void)lseek(fd, be32toh(eh.e_phoff) + sizeof(ph) * i, SEEK_SET); in load_boot()
124 lseek(fd, be32toh(ph.p_offset), SEEK_SET); in load_boot()
141 if (lseek(fd, (off_t)dbtob(1), SEEK_SET) != dbtob(1)) { in load_boot()
152 lseek(fd, le32toh(*(u_int32_t *)buf), SEEK_SET); in load_boot()
288 (void)lseek(devfd, (off_t)dbtob(ppp.mbrp_start), SEEK_SET); in main()
294 (void)lseek(devfd, (off_t)dbtob(ppp.mbrp_start+1), SEEK_SET); in main()
306 (void)lseek(devfd, (off_t)dbtob(1), SEEK_SET); in main()
312 (void)lseek(devfd, (off_t)dbtob(ppp.mbrp_start+2), SEEK_SET); in main()
/netbsd-src/sys/arch/powerpc/stand/mkbootimage/
H A Dmkbootimage.c181 lseek(prep_fd, sizeof(mbr), SEEK_SET); in prep_check_mbr()
219 lseek(prep_fd, 0, SEEK_SET); in prep_check_mbr()
308 SEEK_SET); in prep_build_image()
319 lseek(elf_fd, ELFGET32(phdr.p_offset), SEEK_SET); in prep_build_image()
334 lseek(prep_fd, 0x400, SEEK_SET); in prep_build_image()
354 lseek(kern_fd, 0, SEEK_SET); in prep_build_image()
382 lseek(prep_fd, lenpos, SEEK_SET); in prep_build_image()
388 lseek(prep_fd, sizeof(mbr) + 4, SEEK_SET); in prep_build_image()
473 SEEK_SET); in rs6000_build_image()
487 lseek(elf_fd, ELFGET32(phdr.p_offset), SEEK_SET); in rs6000_build_image()
[all...]
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_read_format_rar.c1388 archive_seek_data(a, file_size - (int)sizeof(buff), SEEK_SET)); in DEFINE_TEST()
1393 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1398 assertA(10054 == archive_seek_data(a, 10054, SEEK_SET)); in DEFINE_TEST()
1403 assertA(6860 == archive_seek_data(a, 6860, SEEK_SET)); in DEFINE_TEST()
1408 assertA(13752 == archive_seek_data(a, 13752, SEEK_SET)); in DEFINE_TEST()
1414 assertEqualInt(0, archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1439 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1584 archive_seek_data(a, file_size - (int)sizeof(buff), SEEK_SET)); in DEFINE_TEST()
1589 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1632 assertEqualIntA(a, 0, archive_seek_data(a, 0, SEEK_SET)); in test_read_format_rar_multivolume_uncompressed_files_helper()
[all …]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ps/
H A Dtcsps.c134 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_parent_uuid_by_uuid()
177 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_uuid()
220 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_cache_entry()
256 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_vendor_data()
330 rc = lseek(fd, file_offset, SEEK_SET); in psfile_is_pub_registered()
389 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_uuid_by_pub()
459 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_pub()
490 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_pub()
697 rc = lseek(fd, tail_offset, SEEK_SET); in psfile_remove_key()
709 rc = lseek(fd, head_offset, SEEK_SET); in psfile_remove_key()
[all …]
H A Dps_utils.c130 rc = lseek(fd, TSSPS_VERSION_OFFSET, SEEK_SET); in write_key_init()
137 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in write_key_init()
155 rc = lseek(fd, TSSPS_VERSION_OFFSET, SEEK_SET); in write_key_init()
167 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in write_key_init()
188 rc = lseek(fd, offset, SEEK_SET); in write_key_init()
196 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in write_key_init()
275 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in get_num_keys_in_file()
382 offset = lseek(fd, TSSPS_KEYS_OFFSET, SEEK_SET); in init_disk_cache()
/netbsd-src/usr.sbin/makefs/cd9660/
H A Dcd9660_write.c307 SEEK_SET) == -1) in cd9660_write_file()
332 diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_write_file()
345 SEEK_SET) == -1) in cd9660_write_file()
396 if (fseeko(fd, sector * diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_write_filedata()
401 if (fseeko(fd, curpos, SEEK_SET) == -1) in cd9660_write_filedata()
441 if (fseeko(fd, start_sector * diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_copy_file()
476 if (fseeko(fd, sector * diskStructure->sectorSize + offset, SEEK_SET) == in cd9660_write_rr()
494 SEEK_SET) == -1) in cd9660_write_rr()
507 SEEK_SET) == -1) in cd9660_write_rr()
/netbsd-src/sys/arch/atari/stand/tostools/libtos/
H A Delf.c78 lseek(fd, (off_t)0, SEEK_SET); in elf_load()
116 if (lseek(fd, (off_t)ehdr.e_shoff, SEEK_SET) != ehdr.e_shoff) in elf_load()
154 if (lseek(fd, (off_t)php->p_offset, SEEK_SET) != php->p_offset) in elf_load()
178 if (lseek(fd, (off_t)ehdr.e_shoff, SEEK_SET) != ehdr.e_shoff) in elf_load()
191 if (lseek(fd, (off_t)shp[i].sh_offset, SEEK_SET) != in elf_load()
204 if (lseek(fd, (off_t)shp[j].sh_offset, SEEK_SET) != in elf_load()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dlog.c219 (void) krb5_storage_seek(sp, off, SEEK_SET); in get_header()
241 new_off = krb5_storage_seek(sp, off, SEEK_SET); in get_header()
251 (void) krb5_storage_seek(sp, off, SEEK_SET); in get_header()
326 (void) krb5_storage_seek(sp, off, SEEK_SET); in seek_prev()
360 (void) krb5_storage_seek(sp, off, SEEK_SET); in seek_next()
373 (void) krb5_storage_seek(sp, off, SEEK_SET); in seek_next()
382 (void) krb5_storage_seek(sp, off, SEEK_SET); in seek_next()
420 if (krb5_storage_seek(sp, LOG_HEADER_SZ + 12, SEEK_SET) in get_version_prev()
424 if (krb5_storage_seek(sp, 0, SEEK_SET) != 0) in get_version_prev()
438 new_off = krb5_storage_seek(sp, off, SEEK_SET); in get_version_prev()
[all …]
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dtest_store.c54 krb5_storage_seek(sp, i, SEEK_SET); in test_int8()
79 krb5_storage_seek(sp, i * sizeof (v), SEEK_SET); in test_int16()
104 krb5_storage_seek(sp, i * sizeof (v), SEEK_SET); in test_int32()
129 krb5_storage_seek(sp, i * sizeof (v), SEEK_SET); in test_uint8()
154 krb5_storage_seek(sp, i * sizeof (v), SEEK_SET); in test_uint16()
179 krb5_storage_seek(sp, i * sizeof (v), SEEK_SET); in test_uint32()
233 krb5_storage_seek(sp, 0, SEEK_SET); in check_too_large()
/netbsd-src/lib/libc/citrus/
H A Dcitrus_db.c75 if (_memstream_seek(&ms, be32toh(dhx->dhx_entry_offset), SEEK_SET)) in _citrus_db_open()
134 if (_citrus_memory_stream_seek(&ms, offset, SEEK_SET)) in _citrus_db_lookup()
159 SEEK_SET)) in _citrus_db_lookup()
171 SEEK_SET)) in _citrus_db_lookup()
320 if (_citrus_memory_stream_seek(&ms, offset, SEEK_SET)) in _citrus_db_get_entry()
327 if (_memstream_seek(&ms, be32toh(dex->dex_key_offset), SEEK_SET)) in _citrus_db_get_entry()
333 if (_memstream_seek(&ms, be32toh(dex->dex_data_offset), SEEK_SET)) in _citrus_db_get_entry()
/netbsd-src/tests/lib/libc/stdio/
H A Dt_open_memstream.c56 ATF_CHECK(fseek(fp, -6, SEEK_SET) == -1); in ATF_TC_BODY()
57 ATF_CHECK(fseek(fp, OFFSET, SEEK_SET) == 0); in ATF_TC_BODY()
61 ATF_CHECK(fseek(fp, 0, SEEK_SET) == 0); in ATF_TC_BODY()
77 ATF_CHECK(fseek(fp, 8, SEEK_SET) == 0); in ATF_TC_BODY()
/netbsd-src/tests/rump/rumpvfs/
H A Dt_basic.c65 rv = rump_sys_lseek(37, FIVE_MEGS, SEEK_SET); in ATF_TC_BODY()
68 rv = rump_sys_lseek(fd, FIVE_MEGS, SEEK_SET); in ATF_TC_BODY()
71 rv = rump_sys_lseek(fd, FIVE_GIGS, SEEK_SET); in ATF_TC_BODY()
/netbsd-src/games/phantasia/
H A Dinterplayer.c33 fseek(Playersfp, 0L, SEEK_SET); in checkbattle()
376 fseek(Energyvoidfp, 0L, SEEK_SET); in checktampered()
525 fseek(Playersfp, 0L, SEEK_SET); in tampered()
561 fseek(Playersfp, 0L, SEEK_SET); in userlist()
623 fseek(Playersfp, 0L, SEEK_SET); in throneroom()
659 fseek(Energyvoidfp, 0L, SEEK_SET); in throneroom()
734 fseek(fp, 0L, SEEK_SET); in dotampered()
781 fseek(Energyvoidfp, 0L, SEEK_SET); in dotampered()
879 fseek(Energyvoidfp, loc, SEEK_SET); in writevoid()
882 fseek(Energyvoidfp, 0L, SEEK_SET); in writevoid()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dcoff-stgo32.c169 if ((long) lseek (f, exe_start, SEEK_SET) != exe_start) in go32exe_create_stub()
191 lseek (f, 0L, SEEK_SET); in go32exe_create_stub()
297 bfd_seek (abfd, 0, SEEK_SET); in go32exe_check_format()
314 if (bfd_seek (abfd, 0, SEEK_SET) != 0) in go32exe_check_format()
347 if (bfd_seek (abfd, 0, SEEK_SET) != 0) in go32exe_write_object_contents()
354 if (bfd_seek (abfd, pos, SEEK_SET) != 0) in go32exe_write_object_contents()
H A Dsco5-core.c82 if (bfd_seek (abfd, (file_ptr) filepos, SEEK_SET) != 0 in read_uarea()
127 SEEK_SET) != 0) in sco5_core_file_p()
137 if ((bfd_seek (abfd, (file_ptr) (coresize - coffset_siz), SEEK_SET) != 0) in sco5_core_file_p()
185 SEEK_SET) != 0) in sco5_core_file_p()
190 || (bfd_seek (abfd, (file_ptr) cheadoffs, SEEK_SET) != 0) in sco5_core_file_p()
206 if ((bfd_seek (abfd, (file_ptr) chead.cs_hseek, SEEK_SET) != 0) in sco5_core_file_p()
H A Delfcore.h183 if (bfd_seek (abfd, where, SEEK_SET) != 0) in elf_core_file_p()
218 if (bfd_seek (abfd, where, SEEK_SET) != 0) in elf_core_file_p()
225 if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_phoff, SEEK_SET) != 0) in elf_core_file_p()
314 if (bfd_seek (abfd, offset, SEEK_SET) != 0) in NAME()
370 if (bfd_seek (abfd, (file_ptr) (offset + i_ehdr.e_phoff), SEEK_SET) != 0) in NAME()
390 SEEK_SET) != 0) in NAME()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/ps/
H A Dtspps.c314 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_uuid()
352 rc = lseek(fd, file_offset, SEEK_SET); in psfile_get_key_by_pub()
396 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in psfile_change_num_keys()
414 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in psfile_change_num_keys()
437 rc = lseek(fd, TSSPS_VERSION_OFFSET, SEEK_SET); in psfile_write_key_header()
449 rc = lseek(fd, TSSPS_NUM_KEYS_OFFSET, SEEK_SET); in psfile_write_key_header()
516 rc = lseek(fd, file_offset, SEEK_SET); in psfile_write_key()
611 rc = lseek(fd, tail_offset, SEEK_SET); in psfile_remove_key()
623 rc = lseek(fd, head_offset, SEEK_SET); in psfile_remove_key()
638 rc = lseek(fd, tail_offset, SEEK_SET); in psfile_remove_key()
[all …]
/netbsd-src/sys/arch/hpcmips/stand/pbsdboot/
H A Delf.c141 if (lseek(fd, 0, SEEK_SET) == -1) { in scanfile()
159 if (lseek(fd, elf->e_phoff, SEEK_SET) == -1) { in scanfile()
171 if (lseek(fd, elf->e_shoff, SEEK_SET) == -1) { in scanfile()
202 if (lseek(fd, phtbl[i].p_offset, SEEK_SET) == -1) { in scanfile()
308 if (lseek(fd, shtbl[sh_symidx].sh_offset, SEEK_SET) == -1) { in scanfile()
321 if (lseek(fd, shtbl[sh_stridx].sh_offset, SEEK_SET) == -1) { in scanfile()
/netbsd-src/libexec/ftpd/
H A Dlogutmp.c111 (void)lseek(fd, (off_t)(topslot * sizeof(UTMP)), SEEK_SET); in ftpd_login()
122 SEEK_SET); in ftpd_login()
140 (void)lseek(fd, 0, SEEK_SET); in ftpd_logout()
/netbsd-src/usr.sbin/kvm_mkdb/
H A Dnlist_aout.c147 if (lseek(fd, N_STROFF(ebuf), SEEK_SET) == -1) in create_knlist_aout()
169 if (fseek(fp, N_SYMOFF(ebuf), SEEK_SET) == -1) { in create_knlist_aout()
212 if (fseek(fp, voff, SEEK_SET) == -1) in create_knlist_aout()
235 if (fseek(fp, cur_off, SEEK_SET) == -1) in create_knlist_aout()
/netbsd-src/sbin/gpt/
H A Drestore.c281 if (lseek(gpt->fd, 0LL, SEEK_SET) == -1) { in restore()
291 if (lseek(gpt->fd, (lastdata + 1) * gpt->secsz, SEEK_SET) == -1) { in restore()
320 if (lseek(gpt->fd, 0LL, SEEK_SET) == -1 || in restore()
336 if (lseek(gpt->fd, 2 * gpt->secsz, SEEK_SET) == -1 || in restore()
342 if (lseek(gpt->fd, (lastdata + 1) * gpt->secsz, SEEK_SET) == -1 || in restore()
363 if (lseek(gpt->fd, gpt->secsz, SEEK_SET) == -1 || in restore()
374 if (lseek(gpt->fd, last * gpt->secsz, SEEK_SET) == -1 || in restore()

12345678910>>...34