Home
last modified time | relevance | path

Searched refs:lseek (Results 1 – 25 of 406) sorted by relevance

12345678910>>...17

/freebsd/tests/sys/fs/fusefs/
H A Dlseek.cc76 EXPECT_EQ(offset_in, lseek(fd, offset_in, SEEK_DATA)); in TEST_F()
105 SET_OUT_HEADER_LEN(out, lseek); in TEST_F()
106 out.body.lseek.offset = i.body.lseek.offset; in TEST_F()
110 EXPECT_EQ(offset, lseek(fd, offset, SEEK_DATA)); in TEST_F()
237 SET_OUT_HEADER_LEN(out, lseek); in TEST_F()
238 out.body.lseek.offset = offset_out; in TEST_F()
268 SET_OUT_HEADER_LEN(out, lseek); in TEST_F()
269 out.body.lseek.offset = offset_out; in TEST_F()
274 EXPECT_EQ(offset_initial, lseek(fd, offset_initial, SEEK_SET)); in TEST_F()
277 EXPECT_EQ(offset_initial, lseek(fd, 0, SEEK_CUR)); in TEST_F()
[all …]
/freebsd/lib/libfigpar/
H A Dfigpar.c163 if ((curpos = lseek(fd, 0, SEEK_CUR)) == -1) { in parse_config()
189 if (lseek(fd, curpos, SEEK_SET) == -1) { in parse_config()
206 if (lseek(fd, 1, SEEK_CUR) != -1) in parse_config()
247 if ((curpos = lseek(fd, 0, SEEK_CUR)) == -1) { in parse_config()
269 if ((charpos = lseek(fd, 0, SEEK_CUR)) == -1) { in parse_config()
280 if (lseek(fd, -2, SEEK_CUR) == -1) { in parse_config()
292 if (lseek(fd, -2, SEEK_CUR) == -1) { in parse_config()
300 if (lseek(fd, charpos, SEEK_SET) == -1) { in parse_config()
351 if ((charpos = lseek(fd, 0, SEEK_CUR)) == -1) { in parse_config()
362 if (lseek(fd, curpos, SEEK_SET) == -1) { in parse_config()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dstride_dd.c216 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
220 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_entire_file()
262 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_on_count()
266 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) { in read_on_count()
318 if (lseek(ifd, skipamt, SEEK_CUR) == -1) { in main()
326 if (lseek(ofd, seekamt, SEEK_CUR) == -1) { in main()
H A Dclonefile.c266 off_t spos = lseek(sfd, 0, SEEK_CUR); in main()
267 off_t slen = lseek(sfd, 0, SEEK_END); in main()
268 off_t dpos = lseek(dfd, 0, SEEK_CUR); in main()
269 off_t dlen = lseek(dfd, 0, SEEK_END); in main()
/freebsd/tools/test/stress2/testcases/lockf/
H A Dlockf.c57 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/contrib/elftoolchain/libpe/
H A Dlibpe_dos.c115 if (lseek(pe->pe_fd, (off_t) dh->dh_lfanew, SEEK_SET) < 0) { in libpe_parse_msdos_header()
144 if (lseek(pe->pe_fd, (off_t) sizeof(PE_DosHdr), SEEK_SET) < in libpe_read_msdos_stub()
238 if (lseek(pe->pe_fd, in libpe_write_msdos_stub()
254 if (lseek(pe->pe_fd, off, SEEK_SET) < 0) { in libpe_write_msdos_stub()
278 if (lseek(pe->pe_fd, off, SEEK_SET) < 0) { in libpe_write_msdos_stub()
357 if (lseek(pe->pe_fd, (off_t) sizeof(PE_DosHdr), SEEK_CUR) < in libpe_write_msdos_stub()
374 if (lseek(pe->pe_fd, d, SEEK_SET) < 0) { in libpe_write_msdos_stub()
383 if (lseek(pe->pe_fd, (off_t) pe->pe_stub_ex, SEEK_CUR) < 0) { in libpe_write_msdos_stub()
/freebsd/tools/test/stress2/misc/
H A Dfcntl.sh101 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 Df_offset.sh84 if (lseek(fd, offset, SEEK_SET) == -1)
100 if (lseek(fd, offset, SEEK_SET) == -1)
114 if ((offset = lseek(fd, 0, SEEK_CUR)) == -1)
137 if (lseek(fd, offset, SEEK_SET) == -1)
H A Dlockf4.sh85 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 Dnullfs22.sh121 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 Dfts2.sh95 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)
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_open_fd.c30 #ifdef lseek
31 #undef lseek
33 #define lseek _lseek
90 assert(lseek(fd, 0, SEEK_SET) == 0); in DEFINE_TEST()
34 #define lseek _lseek global() macro
H A Dtest_archive_read_multiple_data_objects.c34 #ifdef lseek
35 #undef lseek
37 #define lseek(f, o, w) _lseek(f, (long)(o), (int)(w)) macro
205 int64_t result = lseek(mydata->fd, SEEK_CUR, request); in file_skip()
250 r = lseek(mine->fd, request, whence); in file_seek()
/freebsd/bin/pax/
H A Dar_io.c177 else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE)) in ar_open()
460 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || in ar_set_wr()
619 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_write()
755 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_rdsync()
758 if (lseek(arfd, mpos, SEEK_CUR) < 0) in ar_rdsync()
816 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) { in ar_fow()
828 if (lseek(arfd, mpos, SEEK_SET) >= 0) in ar_fow()
884 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) { in ar_rev()
909 if (lseek(arfd, cpos, SEEK_SET) < 0) { in ar_rev()
/freebsd/contrib/netbsd-tests/kernel/kqueue/read/
H A Dt_file.c101 RL(lseek(fd, 0, SEEK_END)); in ATF_TC_BODY()
123 RL(lseek(fd, 0, SEEK_END)); in ATF_TC_BODY()
125 RL(lseek(fd, event[0].data, SEEK_END)); in ATF_TC_BODY()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_read_open_filename.c374 lseek(fd, 0, SEEK_CUR) == 0 && in file_open()
375 lseek(fd, 0, SEEK_SET) == 0 && in file_open()
376 lseek(fd, 0, SEEK_END) > 0 && in file_open()
377 lseek(fd, 0, SEEK_SET) == 0) { in file_open()
494 if ((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0 && in file_skip_lseek()
495 (new_offset = lseek(mine->fd, request, SEEK_CUR)) >= 0) in file_skip_lseek()
547 r = lseek(mine->fd, request, whence); in file_seek()
H A Darchive_read_disk_entry_from_file.c986 initial_off = lseek(*fd, 0, SEEK_CUR); in setup_sparse()
988 lseek(*fd, 0, SEEK_SET); in setup_sparse()
1008 off_s = lseek(*fd, 0, SEEK_HOLE); in setup_sparse()
1016 lseek(*fd, 0, SEEK_SET); in setup_sparse()
1022 off_s = lseek(*fd, off_s, SEEK_DATA); in setup_sparse()
1037 off_e = lseek(*fd, off_s, SEEK_HOLE); in setup_sparse()
1040 off_e = lseek(*fd, 0, SEEK_END); in setup_sparse()
1057 if (lseek(*fd, 0, SEEK_HOLE) == 0 && in setup_sparse()
1058 lseek(*fd, 0, SEEK_END) == size) { in setup_sparse()
1064 lseek(*fd, initial_off, SEEK_SET); in setup_sparse()
H A Darchive_read_open_fd.c154 if (((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0) && in file_skip()
155 ((new_offset = lseek(mine->fd, skip, SEEK_CUR)) >= 0)) in file_skip()
185 r = lseek(mine->fd, request, whence); in file_seek()
/freebsd/contrib/file/src/
H A Dpread.c13 if ((old = lseek(fd, off, SEEK_SET)) == -1) in pread()
19 if (lseek(fd, old, SEEK_SET) == -1) in pread()
/freebsd/usr.bin/mkuzip/
H A Dmkuz_blockcache.c63 if (lseek(fd, bcep->hit.offset, SEEK_SET) < 0) { in verify_match()
72 lseek(fd, cbp->info.offset, SEEK_SET); in verify_match()
103 assert((unsigned)lseek(fd, 0, SEEK_CUR) == bp->info.offset); in mkuz_blkcache_regblock()
/freebsd/bin/cp/tests/
H A Dsparse.c29 (hole = lseek(fd, 0, SEEK_HOLE)) < 0 || in sparse()
30 (end = lseek(fd, 0, SEEK_END)) < 0) in sparse()
/freebsd/tests/sys/cddl/zfs/bin/
H A Dlargest_file.c76 lseek_ret = lseek(fd, offset, SEEK_SET); in main()
91 lseek_ret = lseek(fd, offset, SEEK_CUR); in main()
/freebsd/tools/test/stress2/tools/
H A Dzapsb.c47 if (lseek(fd, (off_t)(sblock_try[i]), SEEK_SET) < 0) in main()
69 if (lseek(fd, (off_t)(sblock_try[i]), SEEK_SET) < 0) in main()
H A Dlsholes.c66 hole = lseek(fd, pos, SEEK_HOLE); in main()
69 data = lseek(fd, pos, SEEK_DATA); in main()
/freebsd/sbin/fsck_msdosfs/
H A Dboot.c200 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
226 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
341 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
355 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()

12345678910>>...17