/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_rar.c | 1388 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() 1412 /* Use various combinations of SEEK_SET, SEEK_CUR, and SEEK_END */ 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 test_read_format_rar_multivolume_uncompressed_files_helper() 1589 assertA(0 == archive_seek_data(a, 0, SEEK_SET)); in test_read_format_rar_multivolume_uncompressed_files_helper() [all...] |
/freebsd/lib/libc/tests/stdio/ |
H A D | open_memstream2_test.c | 66 fseeko(fp, eob, SEEK_SET); in ATF_TC_BODY() 125 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY() 141 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY() 178 SEEK_FAIL(-1, SEEK_SET, EINVAL); in ATF_TC_BODY() 183 SEEK_OK(0, SEEK_SET, 0); in ATF_TC_BODY() 185 SEEK_OK(OFF_MAX - 1, SEEK_SET, OFF_MAX - 1); in ATF_TC_BODY()
|
H A D | open_wmemstream_test.c | 66 fseeko(fp, eob, SEEK_SET); in ATF_TC_BODY() 125 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY() 141 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY() 178 SEEK_FAIL(-1, SEEK_SET, EINVAL); in ATF_TC_BODY() 183 SEEK_OK(0, SEEK_SET, 0); in ATF_TC_BODY() 185 SEEK_OK(OFF_MAX - 1, SEEK_SET, OFF_MAX - 1); in ATF_TC_BODY()
|
/freebsd/tools/test/stress2/testcases/lockf/ |
H A D | lockf.c | 57 if (lseek(fd, 0, SEEK_SET) == -1) // XXX in get() 66 if (lseek(fd, 0, SEEK_SET) == -1) in get() 84 if (lseek(fd, 0, SEEK_SET) == -1) in incr() 89 if (lseek(fd, 0, SEEK_SET) == -1) in incr() 147 if (lseek(fd, 0, SEEK_SET) == -1) in test()
|
/freebsd/usr.sbin/makefs/cd9660/ |
H A D | cd9660_write.c | 311 SEEK_SET) == -1) in cd9660_write_file() 336 diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_write_file() 349 SEEK_SET) == -1) in cd9660_write_file() 399 if (fseeko(fd, sector * diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_write_filedata() 404 if (fseeko(fd, curpos, SEEK_SET) == -1) in cd9660_write_filedata() 443 if (fseeko(fd, start_sector * diskStructure->sectorSize, SEEK_SET) == -1) in cd9660_copy_file() 477 if (fseeko(fd, sector * diskStructure->sectorSize + offset, SEEK_SET) == in cd9660_write_rr() 495 SEEK_SET) == -1) in cd9660_write_rr() 508 SEEK_SET) == -1) in cd9660_write_rr()
|
/freebsd/tools/test/stress2/misc/ |
H A D | fcntl.sh | 93 fl.l_whence = SEEK_SET; 101 if (lseek(fd, pos, SEEK_SET) == -1) 107 if (lseek(fd, pos, SEEK_SET) == -1) 115 if (lseek(fd, pos, SEEK_SET) == -1) 120 if (lseek(fd, pos, SEEK_SET) == -1) 213 if (lseek(fd, 0, SEEK_SET) == -1)
|
H A D | nullfs22.sh | 113 fl.l_whence = SEEK_SET; 121 if (lseek(fd, pos, SEEK_SET) == -1) 127 if (lseek(fd, pos, SEEK_SET) == -1) 136 if (lseek(fd, pos, SEEK_SET) == -1) 141 if (lseek(fd, pos, SEEK_SET) == -1) 221 if (lseek(fd, 0, SEEK_SET) == -1)
|
H A D | lockf4.sh | 85 if (lseek(fd, offset, SEEK_SET) == -1) 103 if (lseek(fd, offset, SEEK_SET) == -1) 107 if (lseek(fd, offset, SEEK_SET) == -1) 122 if (lseek(fd, 0, SEEK_SET) == -1)
|
H A D | fts2.sh | 95 if (lseek(fd, 0, SEEK_SET) == -1) 109 if (lseek(fd, 0, SEEK_SET) == -1) 114 if (lseek(fd, 0, SEEK_SET) == -1) 132 if (lseek(fd, 0, SEEK_SET) == -1)
|
H A D | f_offset.sh | 84 if (lseek(fd, offset, SEEK_SET) == -1) 100 if (lseek(fd, offset, SEEK_SET) == -1) 137 if (lseek(fd, offset, SEEK_SET) == -1)
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | locks.cc | 231 fl.l_whence = SEEK_SET; in TEST_F() 281 fl.l_whence = SEEK_SET; in TEST_F() 294 ASSERT_EQ(fl.l_whence, SEEK_SET); in TEST_F() 344 fl.l_whence = SEEK_SET; in TEST_F() 351 EXPECT_EQ(SEEK_SET, fl.l_whence); in TEST_F() 397 ASSERT_NE(-1, lseek(fd, 500, SEEK_SET)); in TEST_F() 415 EXPECT_EQ(fl.l_whence, SEEK_SET); in TEST_F() 462 ASSERT_NE(-1, lseek(fd, 500, SEEK_SET)); in TEST_F() 480 EXPECT_EQ(fl.l_whence, SEEK_SET); in TEST_F() 507 fl.l_whence = SEEK_SET; in TEST_F() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_open_memstream.c | 56 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()
|
/freebsd/lib/libc/iconv/ |
H A D | citrus_db.c | 72 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()
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | test_store.c | 52 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()
|
/freebsd/contrib/netbsd-tests/rump/rumpvfs/ |
H A D | t_basic.c | 65 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()
|
/freebsd/tests/sys/file/ |
H A D | flock_helper.c | 153 fl1.l_whence = SEEK_SET; in test1() 197 fl.l_whence = SEEK_SET; in test2() 268 fl.l_whence = SEEK_SET; in test3() 337 fl.l_whence = SEEK_SET; in test4() 423 fl.l_whence = SEEK_SET; in test5() 509 fl.l_whence = SEEK_SET; in test6() 612 fl.l_whence = SEEK_SET; in test7() 684 fl.l_whence = SEEK_SET; in test8() 761 fl.l_whence = SEEK_SET; in test9() 832 fl.l_whence = SEEK_SET; in test10() [all …]
|
/freebsd/usr.bin/lastcomm/ |
H A D | readrec.c | 245 SEEK_SET) == EOF || in readrec_backward() 247 fseeko(f, pos - len, SEEK_SET) == EOF || in readrec_backward() 249 fseeko(f, pos - len, SEEK_SET) == EOF) in readrec_backward() 255 if (fseeko(f, pos - sizeof(struct acctv1), SEEK_SET) == EOF || in readrec_backward() 257 fseeko(f, pos - sizeof(struct acctv1), SEEK_SET) == EOF) in readrec_backward()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_file.c | 41 lock.l_whence = SEEK_SET; in zed_file_lock() 68 lock.l_whence = SEEK_SET; in zed_file_unlock() 94 lock.l_whence = SEEK_SET; in zed_file_is_locked()
|
/freebsd/sys/sys/ |
H A D | unistd.h | 105 #ifndef SEEK_SET 106 #define SEEK_SET 0 /* set file offset to offset */ macro 117 #define L_SET SEEK_SET
|
/freebsd/lib/libc/stdio/ |
H A D | fseek.c | 138 whence = SEEK_SET; in _fseeko() 142 case SEEK_SET: in _fseeko() 184 if (whence == SEEK_SET) in _fseeko() 258 if (_sseek(fp, curoff, SEEK_SET) == POS_ERR) in _fseeko()
|
/freebsd/lib/libsecureboot/ |
H A D | vectx.c | 181 lseek(fd, 0, SEEK_SET); in vectx_open() 182 vectx_lseek(ctx, off, SEEK_SET); in vectx_open() 325 whence = SEEK_SET; in vectx_lseek() 329 whence = SEEK_SET; in vectx_lseek() 332 if (whence != SEEK_SET || in vectx_lseek()
|
/freebsd/contrib/file/src/ |
H A D | pread.c | 13 if ((old = lseek(fd, off, SEEK_SET)) == -1) in pread() 19 if (lseek(fd, old, SEEK_SET) == -1) in pread()
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_io.h | 21 #if !defined(SEEK_SET) && defined(L_SET) 22 # define SEEK_SET L_SET macro
|
/freebsd/contrib/tcp_wrappers/ |
H A D | rfc931.c | 30 #ifndef SEEK_SET 31 #define SEEK_SET 0 macro 190 fseek(fp, 0, SEEK_SET);
|
/freebsd/lib/libsecureboot/tests/ |
H A D | tvo.c | 171 lseek(fd, 0, SEEK_SET); in main() 181 (st.st_size % 1024), SEEK_SET); in main() 183 off = vectx_lseek(vp, off/2, SEEK_SET); in main()
|