Home
last modified time | relevance | path

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

12345678910

/dragonfly/test/stress/stress2/testcases/lockf/
H A Dlockf.c54 if (lseek(fd, 0, SEEK_SET) == -1) in get()
68 if (lseek(fd, 0, SEEK_SET) == -1) in incr()
73 if (lseek(fd, 0, SEEK_SET) == -1) in incr()
100 if (lseek(fd, 0, SEEK_SET) == -1) in test()
/dragonfly/test/sysperf/
H A Dread1.c70 lseek(fd, 0L, 0); in main()
78 lseek(fd, 0L, 0); in main()
82 lseek(fd, 0L, 0); in main()
86 lseek(fd, 0L, 0); in main()
H A Drandread.c92 lseek(fd, 0L, 2); in main()
93 limit = lseek(fd, 0L, 1); in main()
127 lseek(fd, pos, 0); in main()
/dragonfly/sbin/fsirand/
H A Dfsirand.c135 if (lseek(devfd, SBOFF, SEEK_SET) == -1) { in fsirand()
168 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
212 if (lseek(devfd, SBOFF, SEEK_SET) == -1) { in fsirand()
229 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
243 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
266 if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) { in fsirand()
/dragonfly/test/debug/
H A Dseekbench.c50 lseek(fd, 0L, 2); in main()
51 bytes = lseek(fd, 0L, 1); in main()
59 lseek(fd, base, 0); in main()
/dragonfly/bin/pax/
H A Dar_io.c179 else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE)) in ar_open()
461 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || in ar_set_wr()
620 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_write()
756 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_rdsync()
759 if (lseek(arfd, mpos, SEEK_CUR) < 0) in ar_rdsync()
817 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) { in ar_fow()
829 if (lseek(arfd, mpos, SEEK_SET) >= 0) in ar_fow()
885 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) { in ar_rev()
910 if (lseek(arfd, cpos, SEEK_SET) < 0) { in ar_rev()
H A Dtables.c393 if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) { in chk_ftime()
443 if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) { in chk_ftime()
1130 if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) { in add_dir()
1176 if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0) in proc_dir()
1180 if (lseek(dirfd, dblk.npos, SEEK_SET) < 0) in proc_dir()
1184 if (lseek(dirfd, dblk.npos, SEEK_SET) < 0) in proc_dir()
/dragonfly/sbin/clri/
H A Dclri.c77 if (lseek(fd, (off_t)SBOFF, SEEK_SET) < 0) in main()
101 if (lseek(fd, offset, SEEK_SET) < 0) in main()
115 if (lseek(fd, (off_t)-bsize, SEEK_CUR) < 0) in main()
/dragonfly/contrib/libarchive/libarchive/
H A Darchive_read_open_filename.c344 lseek(fd, 0, SEEK_CUR) == 0 && in file_open()
345 lseek(fd, 0, SEEK_SET) == 0 && in file_open()
346 lseek(fd, 0, SEEK_END) > 0 && in file_open()
347 lseek(fd, 0, SEEK_SET) == 0) { in file_open()
464 if ((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0 && in file_skip_lseek()
465 (new_offset = lseek(mine->fd, request, SEEK_CUR)) >= 0) in file_skip_lseek()
517 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.c155 if (((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0) && in file_skip()
156 ((new_offset = lseek(mine->fd, skip, SEEK_CUR)) >= 0)) in file_skip()
186 r = lseek(mine->fd, request, whence); in file_seek()
/dragonfly/games/hangman/
H A Dgetsym.c46 if (lseek(symfd, pos + symoffs, SEEK_SET) == -1) in sym_getword()
117 if (lseek(symfd, 0, SEEK_SET) == -1) in ksyms_elf_parse()
126 if (lseek(symfd, eh.e_shoff, SEEK_SET) == -1) in ksyms_elf_parse()
/dragonfly/contrib/binutils-2.34/libctf/
H A Dctf-subr.c97 if ((orig_off = lseek (fd, 0, SEEK_CUR)) < 0) in ctf_pread()
99 if ((lseek (fd, offset, SEEK_SET)) < 0) in ctf_pread()
118 if ((lseek (fd, orig_off, SEEK_SET)) < 0) in ctf_pread()
H A Dctf-archive.c86 if (lseek (fd, ctf_startoffs - 1, SEEK_SET) < 0) in ctf_arc_write_fd()
175 if ((nameoffs = lseek (fd, 0, SEEK_CUR)) < 0) in ctf_arc_write_fd()
273 if ((off = lseek (fd, 0, SEEK_CUR)) < 0) in arc_write_one_ctf()
296 if ((end_off = lseek (fd, 0, SEEK_CUR)) < 0) in arc_write_one_ctf()
300 if ((lseek (fd, off, SEEK_SET)) < 0) in arc_write_one_ctf()
316 if ((lseek (fd, end_off, SEEK_SET)) < 0) in arc_write_one_ctf()
752 if ((lseek (fd, 0, SEEK_SET)) < 0) in arc_mmap_writeout()
/dragonfly/usr.bin/dfregress/
H A Duserland.c253 sz_stdout = (size_t)lseek(fd_stdout, 0, SEEK_END); in run_userland()
254 lseek(fd_stdout, 0, SEEK_SET); in run_userland()
267 sz_stderr = (size_t)lseek(fd_stderr, 0, SEEK_END); in run_userland()
268 lseek(fd_stderr, 0, SEEK_SET); in run_userland()
/dragonfly/sbin/fsck_hammer2/
H A Dreconstruct.c80 if (lseek(hammer2_get_root_volume_fd(), in reconstruct_volume_header()
121 if (lseek(hammer2_get_root_volume_fd(), in reconstruct_blockref()
205 if (lseek(fd, off - hammer2_get_root_volume_offset(), SEEK_SET) in modify_volume_header()
258 if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET) in read_media()
306 if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET) in write_media()
317 if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET) in write_media()
/dragonfly/contrib/pam_passwdqc/
H A Dpasswdqc_filter.c16 #define lseek _lseeki64 macro
61 (size_t)lseek(flt->fd, 0, SEEK_END) != sizeof(flt->header) + (flt->header.capacity << 2)) { in passwdqc_filter_open()
81 if (lseek(flt->fd, sizeof(flt->header) + (uint64_t)i * sizeof(p), SEEK_SET) < 0 || in check()
/dragonfly/tools/tools/bus_autoconf/
H A Dbus_load_file.c50 off = lseek(f, 0, SEEK_END); in load_file()
56 if (lseek(f, 0, SEEK_SET) < 0) { in load_file()
/dragonfly/sbin/jscan/
H A Djfile.c265 lseek(jf->jf_fd, jf->jf_pos, 0); in jread()
306 jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_SET); in jread()
312 jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_END); in jread()
336 jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_SET); in jread()
338 jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_END); in jread()
595 lseek(jf->jf_write_fd, jf->jf_write_pos, 0); in jwrite()
790 lseek(jf->jf_fd, jf->jf_pos, 0); in jreadbuf()
/dragonfly/sbin/fsck_msdosfs/
H A Dboot.c194 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, in readboot()
220 if (lseek(dosfs, boot->bpbFSInfo * in readboot()
335 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
349 if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET) in writefsinfo()
/dragonfly/usr.sbin/rpc.statd/
H A Dfile.c106 lseek(status_fd, desired_size - 1, SEEK_SET); in find_host()
164 status_file_len = lseek(status_fd, 0L, SEEK_END); in init_file()
182 lseek(status_fd, 0L, SEEK_SET); in init_file()
/dragonfly/sbin/fsck/
H A Dutilities.c312 if (lseek(fd, offset, 0) < 0) in bread()
317 if (lseek(fd, offset, 0) < 0) in bread()
324 lseek(fd, offset + i + secsize, 0); in bread()
351 if (lseek(fd, offset, 0) < 0) in bwrite()
359 if (lseek(fd, offset, 0) < 0) in bwrite()
364 lseek(fd, offset + i + dev_bsize, 0); in bwrite()
/dragonfly/lib/libkvm/
H A Dkvm.c373 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_read()
404 if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) { in kvm_read()
455 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_readstr()
495 if (lseek(kd->pmfd, (off_t)pa, 0) == -1 && errno != 0) { in kvm_readstr()
538 if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) { in kvm_write()
/dragonfly/test/stress/fsx/
H A Dfsx.c316 off_t size_by_seek = lseek(xfd, (off_t)0, SEEK_END); in save_buffer()
328 ret = lseek(xfd, (off_t)0, SEEK_SET); in save_buffer()
421 size_by_seek = lseek(fd, (off_t)0, SEEK_END); in check_size()
481 ret = lseek(fd, (off_t)offset, SEEK_SET); in doread()
638 ret = lseek(fd, (off_t)offset, SEEK_SET); in dowrite()
770 if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) { in writefileimage()
1147 file_size = maxfilelen = lseek(fd, (off_t)0, SEEK_END); in main()
1153 ret = lseek(fd, (off_t)0, SEEK_SET); in main()
/dragonfly/usr.bin/truss/
H A Dx86_64-fbsd.c133 lseek(fd, 0L, 0); in x86_64_syscall_entry()
173 lseek(Procfd, regs.r_rsp + sizeof(register_t), SEEK_SET); in x86_64_syscall_entry()
274 lseek(fd, 0L, 0); in x86_64_syscall_exit()

12345678910