Home
last modified time | relevance | path

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

12345678910>>...17

/NextBSD/contrib/libarchive/libarchive/test/
HDtest_read_format_rar.c1199 archive_seek_data(a, file_size - (int)sizeof(buff), SEEK_SET)); in DEFINE_TEST()
1204 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1209 assertA(10054 == archive_seek_data(a, 10054, SEEK_SET)); in DEFINE_TEST()
1214 assertA(6860 == archive_seek_data(a, 6860, SEEK_SET)); in DEFINE_TEST()
1219 assertA(13752 == archive_seek_data(a, 13752, SEEK_SET)); in DEFINE_TEST()
1225 assertEqualInt(0, archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1250 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1391 archive_seek_data(a, file_size - (int)sizeof(buff), SEEK_SET)); in DEFINE_TEST()
1396 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in DEFINE_TEST()
1439 assertEqualIntA(a, 0, archive_seek_data(a, 0, SEEK_SET)); in test_read_format_rar_multivolume_uncompressed_files_helper()
[all …]
/NextBSD/lib/libc/tests/stdio/
HDopen_wmemstream_test.c69 fseeko(fp, eob, SEEK_SET); in ATF_TC_BODY()
128 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY()
144 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY()
181 SEEK_FAIL(-1, SEEK_SET, EINVAL); in ATF_TC_BODY()
186 SEEK_OK(0, SEEK_SET, 0); in ATF_TC_BODY()
188 SEEK_OK(OFF_MAX - 1, SEEK_SET, OFF_MAX - 1); in ATF_TC_BODY()
HDopen_memstream_test.c69 fseeko(fp, eob, SEEK_SET); in ATF_TC_BODY()
128 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY()
144 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY()
181 SEEK_FAIL(-1, SEEK_SET, EINVAL); in ATF_TC_BODY()
186 SEEK_OK(0, SEEK_SET, 0); in ATF_TC_BODY()
188 SEEK_OK(OFF_MAX - 1, SEEK_SET, OFF_MAX - 1); in ATF_TC_BODY()
/NextBSD/usr.sbin/makefs/cd9660/
HDcd9660_write.c322 SEEK_SET) == -1) in cd9660_write_file()
347 diskStructure.sectorSize, SEEK_SET) == -1) in cd9660_write_file()
360 SEEK_SET) == -1) in cd9660_write_file()
410 if (fseeko(fd, sector * diskStructure.sectorSize, SEEK_SET) == -1) in cd9660_write_filedata()
415 if (fseeko(fd, curpos, SEEK_SET) == -1) in cd9660_write_filedata()
457 if (fseeko(fd, start_sector * diskStructure.sectorSize, SEEK_SET) == -1) in cd9660_copy_file()
491 if (fseeko(fd, sector * diskStructure.sectorSize + offset, SEEK_SET) == in cd9660_write_rr()
509 SEEK_SET) == -1) in cd9660_write_rr()
522 SEEK_SET) == -1) in cd9660_write_rr()
/NextBSD/lib/libc/iconv/
HDcitrus_db.c72 if (_memstream_seek(&ms, be32toh(dhx->dhx_entry_offset), SEEK_SET)) in _citrus_db_open()
129 if (_citrus_memory_stream_seek(&ms, offset, SEEK_SET)) in _citrus_db_lookup()
154 SEEK_SET)) in _citrus_db_lookup()
166 SEEK_SET)) in _citrus_db_lookup()
311 if (_citrus_memory_stream_seek(&ms, offset, SEEK_SET)) in _citrus_db_get_entry()
318 if (_memstream_seek(&ms, be32toh(dex->dex_key_offset), SEEK_SET)) in _citrus_db_get_entry()
324 if (_memstream_seek(&ms, be32toh(dex->dex_data_offset), SEEK_SET)) in _citrus_db_get_entry()
/NextBSD/crypto/heimdal/lib/krb5/
HDtest_store.c52 krb5_storage_seek(sp, 0, SEEK_SET); in test_int8()
77 krb5_storage_seek(sp, 0, SEEK_SET); in test_int16()
102 krb5_storage_seek(sp, 0, SEEK_SET); in test_int32()
127 krb5_storage_seek(sp, 0, SEEK_SET); in test_uint8()
152 krb5_storage_seek(sp, 0, SEEK_SET); in test_uint16()
177 krb5_storage_seek(sp, 0, SEEK_SET); in test_uint32()
231 krb5_storage_seek(sp, 0, SEEK_SET); in check_too_large()
HDstore_mem.c76 case SEEK_SET: in mem_seek()
84 return sp->seek(sp, s->ptr - s->base + offset, SEEK_SET); in mem_seek()
86 return sp->seek(sp, s->size + offset, SEEK_SET); in mem_seek()
/NextBSD/usr.bin/lastcomm/
HDreadrec.c210 SEEK_SET) == EOF || in readrec_backward()
212 fseeko(f, pos - len, SEEK_SET) == EOF || in readrec_backward()
214 fseeko(f, pos - len, SEEK_SET) == EOF) in readrec_backward()
220 if (fseeko(f, pos - sizeof(struct acctv1), SEEK_SET) == EOF || in readrec_backward()
222 fseeko(f, pos - sizeof(struct acctv1), SEEK_SET) == EOF) in readrec_backward()
/NextBSD/tests/sys/file/
HDflock_helper.c155 fl1.l_whence = SEEK_SET; in test1()
199 fl.l_whence = SEEK_SET; in test2()
270 fl.l_whence = SEEK_SET; in test3()
339 fl.l_whence = SEEK_SET; in test4()
425 fl.l_whence = SEEK_SET; in test5()
511 fl.l_whence = SEEK_SET; in test6()
614 fl.l_whence = SEEK_SET; in test7()
686 fl.l_whence = SEEK_SET; in test8()
763 fl.l_whence = SEEK_SET; in test9()
834 fl.l_whence = SEEK_SET; in test10()
[all …]
/NextBSD/contrib/netbsd-tests/rump/rumpvfs/
HDt_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()
/NextBSD/sbin/fsirand/
HDfsirand.c136 if (lseek(devfd, sblockloc, SEEK_SET) == -1) { in fsirand()
172 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
217 if (lseek(devfd, sblockloc, SEEK_SET) == -1) { in fsirand()
235 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
250 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
279 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
/NextBSD/contrib/binutils/bfd/
HDsco5-core.c92 if (bfd_seek (abfd, (file_ptr) filepos, SEEK_SET) != 0
138 SEEK_SET) != 0)
148 if ((bfd_seek (abfd, (file_ptr) (coresize - coffset_siz), SEEK_SET) != 0)
196 SEEK_SET) != 0)
201 || (bfd_seek (abfd, (file_ptr) cheadoffs, SEEK_SET) != 0)
217 if ((bfd_seek (abfd, (file_ptr) chead.cs_hseek, SEEK_SET) != 0)
HDbfdio.c271 BFD_ASSERT (direction == SEEK_SET || direction == SEEK_CUR); in bfd_seek()
282 if (direction == SEEK_SET) in bfd_seek()
320 if (direction == SEEK_SET && (bfd_vma) position == abfd->where) in bfd_seek()
339 if (direction == SEEK_SET && abfd->my_archive != NULL) in bfd_seek()
367 if (direction == SEEK_SET) in bfd_seek()
HDcoff-ia64.c80 if (bfd_seek (abfd, (file_ptr) 0, SEEK_SET) != 0
106 if (bfd_seek (abfd, offset, SEEK_SET) != 0
125 if (bfd_seek (abfd, offset - sizeof (dos_hdr), SEEK_SET) != 0)
/NextBSD/contrib/gdb/gdb/
HDcoff-pe-read.c159 bfd_seek (abfd, (file_ptr) where, SEEK_SET); in pe_get16()
169 bfd_seek (abfd, (file_ptr) where, SEEK_SET); in pe_get32()
244 bfd_seek (dll, (file_ptr) secptr1, SEEK_SET); in read_pe_exported_syms()
273 bfd_seek (dll, (file_ptr) secptr1 + 0, SEEK_SET); in read_pe_exported_syms()
288 bfd_seek (dll, (file_ptr) expptr, SEEK_SET); in read_pe_exported_syms()
/NextBSD/sys/sys/
HDunistd.h106 #ifndef SEEK_SET
107 #define SEEK_SET 0 /* set file offset to offset */ macro
118 #define L_SET SEEK_SET
/NextBSD/include/apple/sys/_types/
HD_seek_set.h30 #ifndef SEEK_SET
31 #define SEEK_SET 0 /* set file offset to offset */ macro
/NextBSD/sbin/fsck_msdosfs/
HDboot.c104 SEEK_SET) != boot->bpbFSInfo * boot->bpbBytesPerSec in readboot()
130 boot->bpbBytesPerSec, SEEK_SET) in readboot()
151 SEEK_SET) in readboot()
242 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
256 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
/NextBSD/lib/libc/stdio/
HDfseek.c142 whence = SEEK_SET; in _fseeko()
146 case SEEK_SET: in _fseeko()
188 if (whence == SEEK_SET) in _fseeko()
262 if (_sseek(fp, curoff, SEEK_SET) == POS_ERR) in _fseeko()
/NextBSD/usr.bin/bsdiff/bspatch/
HDbspatch.c127 if (fseeko(cpf, 32, SEEK_SET)) in main()
134 if (fseeko(dpf, 32 + bzctrllen, SEEK_SET)) in main()
141 if (fseeko(epf, 32 + bzctrllen + bzdatalen, SEEK_SET)) in main()
150 (lseek(fd,0,SEEK_SET)!=0) || in main()
/NextBSD/contrib/file/src/
HDpread.c13 if ((old = lseek(fd, off, SEEK_SET)) == -1) in pread()
19 if (lseek(fd, old, SEEK_SET) == -1) in pread()
/NextBSD/contrib/ntp/include/
HDntp_io.h21 #if !defined(SEEK_SET) && defined(L_SET)
22 # define SEEK_SET L_SET macro
/NextBSD/contrib/tcp_wrappers/
HDrfc931.c30 #ifndef SEEK_SET
31 #define SEEK_SET 0 macro
197 fseek(fp, 0, SEEK_SET);
/NextBSD/contrib/opie/libmissing/
HDpututline.c38 if (fseek(f, i * sizeof(struct utmp), SEEK_SET) < 0)
49 if (fseek(f, i - sizeof(struct utmp), SEEK_SET) < 0)
/NextBSD/lib/libstand/
HDlseek.c84 case SEEK_SET: in lseek()
111 case SEEK_SET: in lseek()

12345678910>>...17