Home
last modified time | relevance | path

Searched refs:fseek (Results 1 – 25 of 127) sorted by relevance

123456

/freebsd/contrib/netbsd-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()
74 ATF_CHECK(fseek(fp, 100, SEEK_END) == 0); in ATF_TC_BODY()
77 ATF_CHECK(fseek(fp, 8, SEEK_SET) == 0); in ATF_TC_BODY()
81 ATF_CHECK(fseek(fp, -1, SEEK_CUR) == 0); in ATF_TC_BODY()
83 ATF_CHECK(fseek(fp, 5, SEEK_CUR) == 0); in ATF_TC_BODY()
/freebsd/lib/libc/stdio/
H A DMakefile.inc11 fputwc.c fputws.c fread.c freopen.c fscanf.c fseek.c fsetpos.c \
37 fputws.3 fread.3 fseek.3 funopen.3 fwide.3 getc.3 \
66 MLINKS+=fseek.3 fgetpos.3 \
67 fseek.3 fseeko.3 \
68 fseek.3 fsetpos.3 \
69 fseek.3 ftell.3 \
70 fseek.3 ftello.3 \
71 fseek.3 rewind.3
/freebsd/lib/libc/tests/stdio/
H A Dopen_memstream2_test.c104 fseek(fp, 0, SEEK_END); in ATF_TC_BODY()
112 fseek(fp, 4, SEEK_END); in ATF_TC_BODY()
125 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY()
129 fseek(fp, 0, SEEK_END); in ATF_TC_BODY()
141 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY()
H A Dopen_wmemstream_test.c104 fseek(fp, 0, SEEK_END); in ATF_TC_BODY()
112 fseek(fp, 4, SEEK_END); in ATF_TC_BODY()
125 fseek(fp, 3, SEEK_SET); in ATF_TC_BODY()
129 fseek(fp, 0, SEEK_END); in ATF_TC_BODY()
141 fseek(fp, 4, SEEK_SET); in ATF_TC_BODY()
H A Dfmemopen2_test.c168 rc = fseek(fp, 0, SEEK_END); in ATF_TC_BODY()
186 rc = fseek(fp, 0, SEEK_SET); in ATF_TC_BODY()
/freebsd/sys/contrib/dev/acpica/common/
H A Dcmfsize.c190 Status = fseek (File, 0, SEEK_END); in CmGetFileSize()
204 Status = fseek (File, CurrentOffset, SEEK_SET); in CmGetFileSize()
H A Dacfileio.c465 fseek (File, TableOffset, SEEK_SET); in AcGetOneTableFromFile()
546 fseek (File, FileOffset, SEEK_SET); in AcIsFileBinary()
603 if (fseek (File, TableOffset, SEEK_SET)) in AcValidateTableHeader()
608 if (fseek (File, OriginalOffset, SEEK_SET)) in AcValidateTableHeader()
/freebsd/usr.sbin/pmcannotate/
H A Dpmcannotate.c211 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1) in asmparse()
250 if (fseek(fp, agg->ag_offset, SEEK_SET) == -1) in cparse()
547 fseek(fp, nbytes * -1, SEEK_CUR); in general_printasm()
578 fseek(fp, strlen(buffer) * -1, SEEK_CUR); in general_printc()
619 if (fseek(fp, nbytes * -1, SEEK_CUR) == -1) in printblock()
642 if (fseek(fp, lstart, SEEK_SET) == -1) in printblock()
668 if (fseek(fp, nbytes * -1, SEEK_CUR) == -1) in printblock()
673 if (fseek(fp, strlen(buffer) * -1, SEEK_CUR) == -1) in printblock()
/freebsd/contrib/libpcap/testprogs/fuzz/
H A Donefile.c24 if (fseek(fp, 0L, SEEK_END) != 0) { in main()
33 if (fseek(fp, 0L, SEEK_SET) != 0) { in main()
/freebsd/contrib/libcbor/examples/
H A Dreadfile.c25 fseek(f, 0, SEEK_END); in main()
27 fseek(f, 0, SEEK_SET); in main()
H A Dstreaming_parser.c46 fseek(f, 0, SEEK_END); in main()
48 fseek(f, 0, SEEK_SET); in main()
H A Dcjson2cbor.c123 fseek(f, 0, SEEK_END); in main()
125 fseek(f, 0, SEEK_SET); in main()
/freebsd/contrib/ntp/sntp/tests/
H A DfileHandlingTest.c52 fseek(file, 0L, SEEK_END); in GetFileSize()
54 fseek(file, 0L, SEEK_SET); in GetFileSize()
/freebsd/usr.bin/ctags/
H A Dprint.c53 (void)fseek(inf, lineftell, L_SET); in get_line()
83 (void)fseek(inf, saveftell, L_SET); in get_line()
/freebsd/contrib/libcbor/doc/source/
H A Dusing.rst106 fseek(f, 0, SEEK_END);
108 fseek(f, 0, SEEK_SET);
156 fseek(f, 0, SEEK_END);
158 fseek(f, 0, SEEK_SET);
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-section-file.c70 errcode = fseek(file, 0, SEEK_END); in pt_section_mk_status()
165 errcode = fseek(file, 0, SEEK_END); in pt_section_map()
/freebsd/contrib/bmake/
H A Darch.c541 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) in ArchStatMember()
559 if (fseek(arch, ((long)size + 1) & ~1, SEEK_CUR) != 0) in ArchStatMember()
727 if (fseek(arch, -(long)sizeof *out_arh, SEEK_CUR) != in ArchFindMember()
763 if (fseek(arch, in ArchFindMember()
771 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) { in ArchFindMember()
782 if (fseek(arch, (size + 1) & ~1L, SEEK_CUR) != 0) { in ArchFindMember()
/freebsd/crypto/openssl/doc/man3/
H A DBIO_s_file.pod38 using fseek(stream, 0, 0).
41 using fseek(stream, ofs, 0).
144 BIO_reset() and BIO_seek() are implemented using fseek() on the underlying
145 stream. The return value for fseek() is 0 for success or -1 if an error
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_section_file.c139 errcode = fseek(file, 0, SEEK_END); in pt_sec_file_map()
227 errcode = fseek(file, begin, SEEK_SET); in pt_sec_file_read()
/freebsd/contrib/dialog/
H A Dtailbox.c109 if (fseek(fp, 0L, SEEK_END) == -1 in last_lines()
130 if (fseek(fp, fpos, SEEK_SET) == -1) in last_lines()
159 if (fseek(fp, fpos + offset, SEEK_SET) == -1) in last_lines()
/freebsd/contrib/wpa/src/utils/
H A Dos_win32.c202 fseek(f, 0, SEEK_END); in os_readfile()
204 fseek(f, 0, SEEK_SET); in os_readfile()
/freebsd/usr.sbin/makefs/cd9660/
H A Dcd9660_eltorito.c613 fseek(fd, 32 - strlen(part_name) - 1, SEEK_CUR); in cd9660_write_apm_partition_entry()
615 fseek(fd, 32 - strlen(part_type) - 1, SEEK_CUR); in cd9660_write_apm_partition_entry()
679 fseek(fd, 0x1fe, SEEK_SET); in cd9660_write_boot()
708 fseek(fd, 0, SEEK_SET); in cd9660_write_boot()
/freebsd/contrib/flex/src/
H A Dfilter.c169 fseek (stdin, 0, SEEK_CUR); in filter_apply_chain()
196 fseek (stdout, 0, SEEK_CUR); in filter_apply_chain()
/freebsd/contrib/mandoc/
H A Ddba_write.c73 if (fseek(ofp, pos, SEEK_SET) == -1) in dba_seek()
/freebsd/crypto/openssl/ms/
H A Dapplink.c122 OPENSSL_ApplinkTable[APPLINK_FSEEK] = fseek; in OPENSSL_Applink()

123456