bin/dd/dd.c
289
if (lseek(io->fd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
bin/dd/dd.c
390
lseek(in.fd, (off_t)in.dbsz, SEEK_CUR))
bin/dd/dd.c
531
out.seek_offset = lseek(out.fd, pending, SEEK_CUR);
bin/dd/position.c
168
if (lseek(out.fd, seek_offset(&out), SEEK_CUR) == -1 &&
bin/dd/position.c
97
if (lseek(in.fd, seek_offset(&in), SEEK_CUR) == -1 &&
bin/pax/ar_io.c
179
else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE))
bin/pax/ar_io.c
461
if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) ||
bin/pax/ar_io.c
620
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0)
bin/pax/ar_io.c
756
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0)
bin/pax/ar_io.c
759
if (lseek(arfd, mpos, SEEK_CUR) < 0)
bin/pax/ar_io.c
817
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) {
bin/pax/ar_io.c
829
if (lseek(arfd, mpos, SEEK_SET) >= 0)
bin/pax/ar_io.c
885
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) {
bin/pax/ar_io.c
910
if (lseek(arfd, cpos, SEEK_SET) < 0) {
bin/pax/file_subs.c
824
if (lseek(fd, (off_t)wcnt, SEEK_CUR) < 0) {
bin/pax/file_subs.c
872
if (lseek(fd, (off_t)-1, SEEK_CUR) < 0) {
bin/pax/file_subs.c
962
else if (lseek(fd, (off_t)0L, SEEK_SET) < 0)
bin/pax/tables.c
1130
if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) {
bin/pax/tables.c
1176
if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0)
bin/pax/tables.c
1180
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
bin/pax/tables.c
1184
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
bin/pax/tables.c
393
if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
bin/pax/tables.c
443
if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) {
bin/rm/rm.c
468
if (fsync(fd) || lseek(fd, (off_t)0, SEEK_SET))
bin/rm/rm.c
471
if (fsync(fd) || lseek(fd, (off_t)0, SEEK_SET))
bin/sh/miscbltin.c
138
(void) lseek(fdc->fd, -residue, SEEK_CUR);
bin/sh/miscbltin.c
91
cur = lseek(fd, 0, SEEK_CUR);
crypto/libressl/crypto/bio/bss_fd.c
174
ret = (long)lseek(b->num, num, 0);
crypto/libressl/crypto/bio/bss_fd.c
178
ret = (long)lseek(b->num, 0, 1);
crypto/openssh/loginrec.c
1205
if (lseek(fd, -(off_t)sizeof(struct utmp), SEEK_END) == -1) {
crypto/openssh/loginrec.c
1240
if (lseek(fd, -(off_t)(2 * sizeof(struct utmp)), SEEK_CUR) == -1) {
crypto/openssh/loginrec.c
1370
if (lseek(fd, -(off_t)sizeof(struct utmpx), SEEK_END) == -1 ) {
crypto/openssh/loginrec.c
1401
if (lseek(fd, -(off_t)(2 * sizeof(struct utmpx)), SEEK_CUR) == -1) {
crypto/openssh/loginrec.c
1511
if (lseek(*fd, offset, SEEK_SET) != offset) {
crypto/openssh/loginrec.c
877
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
crypto/openssh/loginrec.c
899
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
crypto/openssh/sftp-client.c
1752
if ((lseek(local_fd, req->offset, SEEK_SET) == -1 ||
crypto/openssh/sftp-client.c
2090
if (lseek(local_fd, (off_t)c.size, SEEK_SET) == -1) {
crypto/openssh/sftp-server.c
1649
if (lseek(read_fd, read_off, SEEK_SET) < 0) {
crypto/openssh/sftp-server.c
1656
lseek(write_fd, write_off, SEEK_SET) < 0) {
crypto/openssh/sftp-server.c
826
if (lseek(fd, off, SEEK_SET) == -1) {
crypto/openssh/sftp-server.c
874
lseek(fd, off, SEEK_SET) == -1) {
games/atc/log.c
244
lseek(fileno(score_fp), 0, SEEK_END);
games/canfield/canfield/canfield.c
1383
lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET);
games/canfield/canfield/canfield.c
1640
i = lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET);
games/canfield/canfield/canfield.c
1703
lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET);
games/canfield/cfscores/cfscores.c
108
i = lseek(dbfd, pw->pw_uid * sizeof(struct betinfo), SEEK_SET);
games/fortune/fortune/fortune.c
994
lseek(fp->datfd,
games/hack/hack.save.c
199
(void) lseek(fd, (off_t) 0, SEEK_SET);
games/hangman/getsym.c
117
if (lseek(symfd, 0, SEEK_SET) == -1)
games/hangman/getsym.c
126
if (lseek(symfd, eh.e_shoff, SEEK_SET) == -1)
games/hangman/getsym.c
46
if (lseek(symfd, pos + symoffs, SEEK_SET) == -1)
games/larn/io.c
556
lseek(io_outfd, 0, SEEK_END); /* seek to end of file */
games/robots/score.c
131
lseek(inf, 0L, SEEK_SET);
games/snake/snake/snake.c
523
lseek(rawscores, ((off_t)uid)*sizeof(short), SEEK_SET);
games/snake/snake/snake.c
526
lseek(rawscores, 0, SEEK_SET);
games/snake/snake/snake.c
532
lseek(rawscores, ((off_t)uid)*sizeof(short), SEEK_SET);
games/snake/snake/snake.c
541
lseek(rawscores, 0, SEEK_SET);
games/snake/snake/snake.c
559
lseek(rawscores, 0, SEEK_SET);
include/unistd.h
405
off_t lseek(int, off_t, int);
lib/libc/db/recno/rec_close.c
132
if (lseek(t->bt_rfd, (off_t)0, SEEK_SET) != 0)
lib/libc/db/recno/rec_close.c
173
if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1)
lib/libc/db/recno/rec_open.c
118
if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) {
lib/libc/gen/getcap.c
241
lseek(fd, (off_t)0, SEEK_SET);
lib/libc/gen/nlist.c
245
if (lseek(fd, (off_t)0, SEEK_SET) == -1 ||
lib/libc/gen/nlist.c
328
if (lseek(fd, (off_t) symoff, SEEK_SET) == -1) {
lib/libc/gen/opendir.c
154
if ((dirp->dd_seek = lseek(fd, 0, SEEK_CUR)) < 0)
lib/libc/gen/readdir.c
63
dirp->dd_seek = lseek(dirp->dd_fd, 0, SEEK_CUR);
lib/libc/gen/telldir.c
135
lseek(dirp->dd_fd, lp->loc_seek, SEEK_SET);
lib/libc/stdio/stdio.c
70
return (lseek(fp->pub._fileno, (off_t)offset, whence));
lib/libc/xdr/xdr_rec.c
324
pos = lseek((int)(u_long)rstrm->tcp_handle, (off_t)0, 1);
lib/libfsid/libfsid.c
139
if ((lseek(fd, off, SEEK_SET)) < 0) {
lib/libkvm/kvm.c
373
if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
404
if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
455
if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
495
if (lseek(kd->pmfd, (off_t)pa, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
538
if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) {
lib/libkvm/kvm_proc.c
937
if (lseek(fd, (off_t)uva, 0) == -1 && errno != 0) {
lib/libkvm/kvm_x86_64.c
275
if (lseek(kd->pmfd, ofs, 0) == -1) {
lib/libkvm/kvm_x86_64.c
296
if (lseek(kd->pmfd, ofs, 0) == -1) {
lib/libkvm/kvm_x86_64.c
334
if (lseek(kd->pmfd, ofs, 0) == -1) {
lib/libtcplay/io.c
342
if ((lseek(fd, offset, (offset >= 0) ? SEEK_SET : SEEK_END) < 0)) {
lib/libtcplay/io.c
68
if ((lseek(fd, offset, (offset >= 0) ? SEEK_SET : SEEK_END) < 0)) {
lib/libutil/uucplock.c
139
lseek(fd, (off_t)0, SEEK_SET);
libexec/atrun/atrun.c
275
if (lseek(fd_in, (off_t) 0, SEEK_SET) < 0)
libexec/dma/local.c
185
mboxlen = lseek(mbox, 0, SEEK_END);
libexec/ftpd/ftpd.c
1681
} else if (lseek(fileno(fin), restart_point, L_SET) < 0) {
libexec/ftpd/ftpd.c
1770
} else if (lseek(fileno(fout), restart_point, L_SET) < 0) {
libexec/rbootd/rmpproto.c
445
if (lseek(oldconn->bootfd, (off_t)size, SEEK_SET) < 0) {
libexec/rpc.rquotad/rquotad.c
247
if (lseek(fd, (off_t)(id * sizeof(struct ufs_dqblk)), L_SET) == (off_t)-1) {
libexec/rtld-elf/rtld.c
1720
if (lseek(fd, hdr.strtab + hdr.dirlist, SEEK_SET) == -1 ||
sbin/badsect/badsect.c
199
if (lseek(fsi, (off_t)bno * dev_bsize, SEEK_SET) < 0) {
sbin/clri/clri.c
101
if (lseek(fd, offset, SEEK_SET) < 0)
sbin/clri/clri.c
115
if (lseek(fd, (off_t)-bsize, SEEK_CUR) < 0)
sbin/clri/clri.c
77
if (lseek(fd, (off_t)SBOFF, SEEK_SET) < 0)
sbin/dhclient/dhclient.c
1924
lseek(fd, 0L, SEEK_SET);
sbin/dhclient/dhclient.c
2324
lseek(fd, 0L, SEEK_SET);
sbin/disklabel32/disklabel.c
1639
lseek(f, (off_t)0, SEEK_SET);
sbin/disklabel32/disklabel.c
400
lseek(f, (off_t)0, SEEK_SET);
sbin/disklabel64/disklabel64.c
427
lseek(f, (off_t)0, SEEK_SET);
sbin/disklabel64/disklabel64.c
458
lseek(f, lp->d_bbase, 0);
sbin/dumpfs/dumpfs.c
114
if (lseek(fd, (off_t)SBOFF, SEEK_SET) == (off_t)-1)
sbin/dumpfs/dumpfs.c
211
if (lseek(fd,
sbin/dumpfs/dumpfs.c
253
if ((cur = lseek(fd, (off_t)(fsbtodb(&afs, cgtod(&afs, c))) *
sbin/dumpfs/dumpfs.c
321
if (lseek(fd, (off_t)SBOFF, SEEK_SET) == (off_t)-1)
sbin/fdisk/fdisk.c
810
lseek(fd, sector * 512, 0);
sbin/fdisk/fdisk.c
835
lseek(fd, sector * 512, 0);
sbin/ffsinfo/ffsinfo.c
103
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
sbin/fsck/utilities.c
312
if (lseek(fd, offset, 0) < 0)
sbin/fsck/utilities.c
317
if (lseek(fd, offset, 0) < 0)
sbin/fsck/utilities.c
324
lseek(fd, offset + i + secsize, 0);
sbin/fsck/utilities.c
351
if (lseek(fd, offset, 0) < 0)
sbin/fsck/utilities.c
359
if (lseek(fd, offset, 0) < 0)
sbin/fsck/utilities.c
364
lseek(fd, offset + i + dev_bsize, 0);
sbin/fsck_hammer2/destroy.c
141
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/destroy.c
189
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/destroy.c
200
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/destroy.c
85
if (lseek(hammer2_get_root_volume_fd(),
sbin/fsck_hammer2/reconstruct.c
121
if (lseek(hammer2_get_root_volume_fd(),
sbin/fsck_hammer2/reconstruct.c
205
if (lseek(fd, off - hammer2_get_root_volume_offset(), SEEK_SET)
sbin/fsck_hammer2/reconstruct.c
258
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/reconstruct.c
306
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/reconstruct.c
317
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_hammer2/reconstruct.c
80
if (lseek(hammer2_get_root_volume_fd(),
sbin/fsck_hammer2/test.c
210
return lseek(hammer2_get_root_volume_fd(),
sbin/fsck_hammer2/test.c
731
if (lseek(fd, io_base - hammer2_get_volume_offset(io_base), SEEK_SET)
sbin/fsck_msdosfs/boot.c
194
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec,
sbin/fsck_msdosfs/boot.c
220
if (lseek(dosfs, boot->bpbFSInfo *
sbin/fsck_msdosfs/boot.c
335
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET)
sbin/fsck_msdosfs/boot.c
349
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET)
sbin/fsck_msdosfs/dir.c
1010
if (lseek(fd, off, SEEK_SET) != off
sbin/fsck_msdosfs/dir.c
1030
if (lseek(fd, off, SEEK_SET) != off
sbin/fsck_msdosfs/dir.c
1131
if (lseek(dosfs, lfoff, SEEK_SET) != lfoff
sbin/fsck_msdosfs/dir.c
1161
if (lseek(dosfs, lfoff, SEEK_SET) != lfoff
sbin/fsck_msdosfs/dir.c
315
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsck_msdosfs/dir.c
327
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsck_msdosfs/dir.c
508
if (lseek(fd, off, SEEK_SET) != off ||
sbin/fsck_msdosfs/dir.c
608
if (lseek(fd, off, SEEK_SET) != off ||
sbin/fsck_msdosfs/fat.c
1079
if ((lseek(fd, src_off, SEEK_SET) != src_off ||
sbin/fsck_msdosfs/fat.c
1086
if ((lseek(fd, dst_off, SEEK_SET) != dst_off ||
sbin/fsck_msdosfs/fat.c
1141
if ((lseek(fd, dst_base, SEEK_SET) != dst_base ||
sbin/fsck_msdosfs/fat.c
367
if (lseek(fd, fat_addr, SEEK_SET) != fat_addr ||
sbin/fsck_msdosfs/fat.c
421
if (lseek(fd, fat_addr, SEEK_SET) != fat_addr ||
sbin/fsck_msdosfs/fat.c
662
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsirand/fsirand.c
135
if (lseek(devfd, SBOFF, SEEK_SET) == -1) {
sbin/fsirand/fsirand.c
168
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/fsirand/fsirand.c
212
if (lseek(devfd, SBOFF, SEEK_SET) == -1) {
sbin/fsirand/fsirand.c
229
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/fsirand/fsirand.c
243
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/fsirand/fsirand.c
266
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/gpt/gpt.c
336
if (lseek(fd, ofs, SEEK_SET) != ofs) {
sbin/gpt/gpt.c
359
if (lseek(fd, ofs, SEEK_SET) == ofs &&
sbin/growfs/growfs.c
1545
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0) {
sbin/growfs/growfs.c
1572
if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0) {
sbin/hammer/cmd_history.c
222
lseek(fd, off, 0);
sbin/hammer/cmd_recover.c
499
lseek(fd, (off_t)file_offset, SEEK_SET);
sbin/hammer/cmd_recover.c
514
lseek(fd, chunk - zfill, SEEK_CUR);
sbin/hammer2/cmd_debug.c
502
lseek(fd, off, SEEK_SET);
sbin/hammer2/cmd_debug.c
528
lseek(fd, off, SEEK_SET);
sbin/hammer2/cmd_debug.c
821
lseek(fd, io_base - hammer2_get_volume_offset(io_base),
sbin/hammer2/cmd_info.c
357
lseek(fd, broot.data_off & ~HAMMER2_OFF_MASK_RADIX, SEEK_SET);
sbin/hammer2/cmd_info.c
413
lseek(fd, io_base, SEEK_SET);
sbin/hammer2/ondisk.c
117
if (lseek(fd, i * HAMMER2_ZONE_BYTES64, SEEK_SET) == -1)
sbin/jscan/dump_mirror.c
442
lseek(fd, jattr->seekpos, 0);
sbin/jscan/dump_mirror.c
531
lseek(fd, jattr->seekpos, 0);
sbin/jscan/dump_mirror.c
614
lseek(fd, jattr->seekpos, 0);
sbin/jscan/jfile.c
265
lseek(jf->jf_fd, jf->jf_pos, 0);
sbin/jscan/jfile.c
306
jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_SET);
sbin/jscan/jfile.c
312
jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_END);
sbin/jscan/jfile.c
336
jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_SET);
sbin/jscan/jfile.c
338
jf->jf_pos = lseek(jf->jf_fd, 0L, SEEK_END);
sbin/jscan/jfile.c
595
lseek(jf->jf_write_fd, jf->jf_write_pos, 0);
sbin/jscan/jfile.c
790
lseek(jf->jf_fd, jf->jf_pos, 0);
sbin/jscan/jsession.c
75
lseek(ss->ss_transid_fd, 0L, 0);
sbin/newfs/mkfs.c
1220
if (lseek(fsi, (off_t)bno * sectorsize, 0) < 0) {
sbin/newfs/mkfs.c
1244
if (lseek(fso, (off_t)wc_sect * sectorsize, SEEK_SET) < 0) {
sbin/newfs/mkfs.c
1306
if (lseek(fso, (off_t)bno * sectorsize, SEEK_SET) < 0) {
sbin/newfs_msdos/mkfs_msdos.c
305
if (o.offset && o.offset != lseek(fd, o.offset, SEEK_SET)) {
sbin/newfs_msdos/mkfs_msdos.c
654
if (!x && lseek(fd1, o.offset, SEEK_SET)) {
sbin/quotacheck/quotacheck.c
586
if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 ||
sbin/restore/dirs.c
458
lseek(dirpl->dd_fd, base + rounddown2(loc, DIRBLKSIZ), SEEK_SET);
sbin/restore/dirs.c
541
return ((long)lseek(dirpl->dd_fd,
sbin/restore/tape.c
757
if (lseek(ofile, size, SEEK_CUR) == -1) {
sbin/restore/tape.c
917
seek_failed = (lseek(mt, i, SEEK_CUR) == (off_t)-1);
sbin/savecore/savecore.c
275
lseek(fd, lasthd, SEEK_SET);
sbin/savecore/savecore.c
327
lseek(fd, firsthd, SEEK_SET);
sbin/savecore/savecore.c
551
lseek(fd, lasthd, SEEK_SET);
sbin/tunefs/tunefs.c
365
if (lseek(fi, (off_t)blk * dev_bsize, SEEK_SET) < 0)
sbin/tunefs/tunefs.c
376
if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0)
sbin/vinum/list.c
1380
if (lseek(fd, VINUM_LABEL_OFFSET, SEEK_SET) < 0) {
stand/boot/common/load_elf.c
435
if (lseek(ef->fd, (off_t)shdr[i].sh_offset, SEEK_SET) == -1) {
stand/boot/common/misc.c
123
if (lseek(fd, off, SEEK_SET) == -1) {
stand/boot/common/misc.c
150
if (lseek(fd, off, SEEK_SET) == -1) {
stand/boot/pc32/btxld/btxld.c
447
if (offset != -1 && lseek(fd, offset, SEEK_SET) != offset)
stand/boot/pc32/btxld/btxld.c
474
if (lseek(fd, offset, SEEK_SET) != offset)
stand/lib/splitfs.c
270
new_pos = lseek(sf->curfd, seek_by, SEEK_CUR);
stand/lib/stand.h
269
extern off_t lseek(int, off_t, int);
sys/dev/virtual/vkernel/disk/vdisk.c
110
st.st_size = lseek(dsk->fd, 0L, SEEK_END);
sys/dev/virtual/vkernel/disk/vdisk.c
196
st.st_size = lseek(sc->fd, 0L, SEEK_END);
sys/sys/sysunion.h
135
struct lseek_args lseek;
sys/vfs/dirfs/dirfs_vnops.c
1260
lseek(dnp->dn_fd, startoff, SEEK_SET);
sys/vfs/dirfs/dirfs_vnops.c
1264
(intmax_t)lseek(dnp->dn_fd, 0, SEEK_CUR));
sys/vfs/dirfs/dirfs_vnops.c
1287
curoff = lseek(dnp->dn_fd, 0, SEEK_CUR);
test/debug/seekbench.c
50
lseek(fd, 0L, 2);
test/debug/seekbench.c
51
bytes = lseek(fd, 0L, 1);
test/debug/seekbench.c
59
lseek(fd, base, 0);
test/debug/umtx.c
91
lseek(fd, off, 0);
test/debug/vmobjinfo.c
200
lseek(swapfds[which], off, 0);
test/debug/vmobjinfo.c
239
lseek(memfds, pg.phys_addr, 0);
test/interbench/interbench.c
709
if (lseek(tmp, (off_t)0, SEEK_SET) == -1)
test/stress/fsstress/global.h
75
#define lseek64 lseek
test/stress/fsx/fsx.c
1147
file_size = maxfilelen = lseek(fd, (off_t)0, SEEK_END);
test/stress/fsx/fsx.c
1153
ret = lseek(fd, (off_t)0, SEEK_SET);
test/stress/fsx/fsx.c
316
off_t size_by_seek = lseek(xfd, (off_t)0, SEEK_END);
test/stress/fsx/fsx.c
328
ret = lseek(xfd, (off_t)0, SEEK_SET);
test/stress/fsx/fsx.c
421
size_by_seek = lseek(fd, (off_t)0, SEEK_END);
test/stress/fsx/fsx.c
481
ret = lseek(fd, (off_t)offset, SEEK_SET);
test/stress/fsx/fsx.c
638
ret = lseek(fd, (off_t)offset, SEEK_SET);
test/stress/fsx/fsx.c
770
if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) {
test/stress/stress2/lib/resources.c
220
if (lseek(dffd, 0, 0) == -1)
test/stress/stress2/testcases/lockf/lockf.c
100
if (lseek(fd, 0, SEEK_SET) == -1)
test/stress/stress2/testcases/lockf/lockf.c
54
if (lseek(fd, 0, SEEK_SET) == -1)
test/stress/stress2/testcases/lockf/lockf.c
68
if (lseek(fd, 0, SEEK_SET) == -1)
test/stress/stress2/testcases/lockf/lockf.c
73
if (lseek(fd, 0, SEEK_SET) == -1)
test/stress/stress2/testcases/lockf2/lockf2.c
86
if (lseek(fd, pos, SEEK_SET) == -1)
test/stress/stress2/testcases/mmap/mmap.c
93
if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1)
test/stress/tuxload.c
213
lseek(fd, 0L, 0);
test/sysperf/randread.c
127
lseek(fd, pos, 0);
test/sysperf/randread.c
92
lseek(fd, 0L, 2);
test/sysperf/randread.c
93
limit = lseek(fd, 0L, 1);
test/sysperf/read1.c
70
lseek(fd, 0L, 0);
test/sysperf/read1.c
78
lseek(fd, 0L, 0);
test/sysperf/read1.c
82
lseek(fd, 0L, 0);
test/sysperf/read1.c
86
lseek(fd, 0L, 0);
test/testcases/io/select_2/select_2.c
20
lseek(fd, 0, SEEK_END);
test/unix/passdesc/passdesc.c
177
ofs = lseek(fd, 0, SEEK_SET);
tools/regression/nfsmmap/test1/test1.c
32
if (lseek(fd, 600, SEEK_SET) < 0)
tools/regression/nfsmmap/test2/test2.c
32
if (lseek(fd, 600, SEEK_SET) < 0)
tools/tools/bus_autoconf/bus_load_file.c
50
off = lseek(f, 0, SEEK_END);
tools/tools/bus_autoconf/bus_load_file.c
56
if (lseek(f, 0, SEEK_SET) < 0) {
usr.bin/brandelf/brandelf.c
147
lseek(fd, 0, SEEK_SET);
usr.bin/crunch/crunchide/crunchide.c
226
if (lseek(fd, 0, SEEK_SET) != 0) {
usr.bin/crunch/crunchide/crunchide.c
242
if (lseek(fd, 0, SEEK_SET) != 0) {
usr.bin/crunch/crunchide/exec_elf64.c
82
if (lseek(fd, off, SEEK_SET) != off) {
usr.bin/crunch/crunchide/exec_elf64.c
99
if (lseek(fd, off, SEEK_SET) != off) {
usr.bin/dfregress/userland.c
253
sz_stdout = (size_t)lseek(fd_stdout, 0, SEEK_END);
usr.bin/dfregress/userland.c
254
lseek(fd_stdout, 0, SEEK_SET);
usr.bin/dfregress/userland.c
267
sz_stderr = (size_t)lseek(fd_stderr, 0, SEEK_END);
usr.bin/dfregress/userland.c
268
lseek(fd_stderr, 0, SEEK_SET);
usr.bin/diff/diffreg.c
476
lseek(ofd, (off_t)0, SEEK_SET);
usr.bin/finger/lprint.c
323
(void)lseek(fd, 0L, SEEK_SET);
usr.bin/gcore/elfcore.c
133
lseek(memfd, (off_t)php->p_vaddr, SEEK_SET);
usr.bin/gcore/elfcore.c
469
lseek(mapfd, (off_t)0, SEEK_SET);
usr.bin/gzip/gzip.c
1369
lseek(fd, 0, SEEK_SET);
usr.bin/gzip/gzip.c
1941
rv = lseek(fd, (off_t)(-8), SEEK_END);
usr.bin/last/last.c
345
if (lseek(wfd, bl * len, SEEK_SET) == -1 ||
usr.bin/ldd/ldd.c
132
if (lseek(fd, 0, SEEK_SET) == -1 ||
usr.bin/ldd/ldd.c
134
lseek(fd, ehdr.e_phoff, SEEK_SET) == -1
usr.bin/mail/fio.c
232
lseek(fileno(f), (off_t)sizeof(*message), 0);
usr.bin/patch/inp.c
403
if (lseek(tifd, (off_t) (baseline / lines_per_buf *
usr.bin/quota/quota.c
537
lseek(fd, (off_t)(id * sizeof(struct ufs_dqblk)), L_SET);
usr.bin/tail/forward.c
428
if (lseek(ev->ident, 0, SEEK_END) == -1) {
usr.bin/tail/tail.c
209
if (lseek(fileno(stdin), 0, SEEK_CUR) == -1 &&
usr.bin/tcopy/tcopy.c
326
if( lseek(fd, 0, SEEK_SET) == -1 )
usr.bin/xinstall/xinstall.c
1009
if (lseek(from_fd, (off_t)0, SEEK_SET) == (off_t)-1)
usr.bin/xinstall/xinstall.c
1011
if (lseek(to_fd, (off_t)0, SEEK_SET) == (off_t)-1)
usr.bin/xinstall/xinstall.c
911
lseek(from_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
912
lseek(to_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
926
lseek(from_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
927
lseek(to_fd, 0, SEEK_SET);
usr.sbin/boot0cfg/boot0cfg.c
238
if (lseek(fd, 0, SEEK_SET) == -1 ||
usr.sbin/burncd/burncd.c
478
lseek(fd, track_info->addr * track_info->block_size, SEEK_SET);
usr.sbin/clog/clog.c
221
if (lseek(fd,-(off_t)(sizeof(struct clog_footer)),SEEK_END)==-1) {
usr.sbin/edquota/edquota.c
361
lseek(fd, (long)(id * sizeof(struct ufs_dqblk)), L_SET);
usr.sbin/edquota/edquota.c
412
lseek(fd, (long)id * (long)sizeof(struct ufs_dqblk), 0);
usr.sbin/edquota/edquota.c
474
lseek(outfd, 0, L_SET);
usr.sbin/edquota/edquota.c
612
lseek(outfd, 0, L_SET);
usr.sbin/fdformat/fdformat.c
115
if (lseek(fd, (long)track * tracksize, 0) < 0)
usr.sbin/fdwrite/fdwrite.c
176
if (lseek (fd, (long) track*bpt, 0) < 0) err(1, "lseek");
usr.sbin/fdwrite/fdwrite.c
180
if (lseek (fd, (long) track*bpt, 0) < 0) err(1, "lseek");
usr.sbin/lpr/lpd/printjob.c
1101
lseek(sfd, 0, SEEK_SET);
usr.sbin/lpr/lpd/printjob.c
1180
lseek(sfd, 0, SEEK_SET);
usr.sbin/lpr/lpd/printjob.c
253
lseek(lfd, pidoff, 0);
usr.sbin/lpr/lpr/lpr.c
498
lseek(tfd, (off_t)0, 0) == 0 &&
usr.sbin/lpr/lpr/lpr.c
865
lseek(fd, (off_t)0, 0);
usr.sbin/makefs/ffs.c
558
if (lseek(fsopts->fd, fsopts->offset, SEEK_SET) == -1) {
usr.sbin/makefs/ffs/buf.c
142
if (lseek(bp->b_fs->fd, offset, SEEK_SET) == -1) {
usr.sbin/makefs/ffs/buf.c
78
if (lseek((*bpp)->b_fs->fd, offset, SEEK_SET) == -1)
usr.sbin/makefs/ffs/mkfs.c
878
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
usr.sbin/makefs/ffs/mkfs.c
902
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
usr.sbin/makefs/hammer2.c
912
if (lseek(fsopts->fd, fsopts->offset, SEEK_SET) == -1) {
usr.sbin/makefs/hammer2/hammer2_buf.c
79
if (lseek(bp->b_fs->fd, bp->b_loffset, SEEK_SET) == -1)
usr.sbin/mptable/mptable.c
835
if ( lseek( pfd, -1, SEEK_CUR ) < 0 )
usr.sbin/mptable/mptable.c
848
if ( lseek( pfd, (off_t)addr, SEEK_SET ) < 0 )
usr.sbin/powerd/powerd.c
332
lseek(PowerFd, 0L, 0);
usr.sbin/quot/quot.c
118
if (lseek(fd, (off_t)ino_to_fsba(super, last) << super->fs_fshift, 0) < (off_t)0
usr.sbin/quot/quot.c
506
|| lseek(fd,SBOFF,0) != SBOFF
usr.sbin/resident/resident.c
189
if (lseek(fd, 0, SEEK_SET) == -1 ||
usr.sbin/resident/resident.c
191
lseek(fd, ehdr.e_phoff, SEEK_SET) == -1
usr.sbin/rmt/rmt.c
116
rval = lseek(tape, (off_t)atol(count), atoi(pos));
usr.sbin/rpc.statd/file.c
106
lseek(status_fd, desired_size - 1, SEEK_SET);
usr.sbin/rpc.statd/file.c
164
status_file_len = lseek(status_fd, 0L, SEEK_END);
usr.sbin/rpc.statd/file.c
182
lseek(status_fd, 0L, SEEK_SET);
usr.sbin/trpt/trpt.c
456
lseek(fd, base, off);