bin/dd/dd.c
334
if (lseek(io->fd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
bin/dd/dd.c
439
lseek(in.fd, (off_t)in.dbsz, SEEK_CUR))
bin/dd/dd.c
589
out.seek_offset = lseek(out.fd, pending, SEEK_CUR);
bin/dd/position.c
164
if (lseek(out.fd, seek_offset(&out), SEEK_CUR) == -1 &&
bin/dd/position.c
94
if (lseek(in.fd, seek_offset(&in), SEEK_CUR) == -1 &&
bin/pax/ar_io.c
177
else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE))
bin/pax/ar_io.c
460
if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) ||
bin/pax/ar_io.c
619
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0)
bin/pax/ar_io.c
755
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0)
bin/pax/ar_io.c
758
if (lseek(arfd, mpos, SEEK_CUR) < 0)
bin/pax/ar_io.c
816
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) {
bin/pax/ar_io.c
828
if (lseek(arfd, mpos, SEEK_SET) >= 0)
bin/pax/ar_io.c
884
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) {
bin/pax/ar_io.c
909
if (lseek(arfd, cpos, SEEK_SET) < 0) {
bin/pax/file_subs.c
794
if (lseek(fd, (off_t)wcnt, SEEK_CUR) < 0) {
bin/pax/file_subs.c
842
if (lseek(fd, (off_t)-1, SEEK_CUR) < 0) {
bin/pax/file_subs.c
932
else if (lseek(fd, (off_t)0L, SEEK_SET) < 0)
bin/pax/tables.c
1129
if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) {
bin/pax/tables.c
1175
if (lseek(dirfd, -((off_t)sizeof(dblk)), SEEK_CUR) < 0)
bin/pax/tables.c
1179
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
bin/pax/tables.c
1183
if (lseek(dirfd, dblk.npos, SEEK_SET) < 0)
bin/pax/tables.c
392
if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
bin/pax/tables.c
442
if ((pt->seek = lseek(ffd, (off_t)0, SEEK_END)) >= 0) {
bin/sh/miscbltin.c
133
(void) lseek(fdc->fd, -residue, SEEK_CUR);
bin/sh/miscbltin.c
86
cur = lseek(fd, 0, SEEK_CUR);
cddl/compat/opensolaris/include/stdio.h
34
#define lseek64 lseek
crypto/heimdal/appl/ftp/ftp/ftp.c
1039
lseek (fileno (fout), restart_point, SEEK_SET) < 0) {
crypto/heimdal/appl/ftp/ftp/ftp.c
764
rc = lseek (fileno (fin), restart_point, SEEK_SET);
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1053
} else if (lseek(fileno(fin), restart_point, SEEK_SET) < 0) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1153
} else if (lseek(fileno(fout), restart_point, SEEK_SET) < 0) {
crypto/heimdal/appl/login/utmp_login.c
152
lseek(fd, (long)(ttyno * sizeof(struct utmp)), SEEK_SET);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1510
lseek(f, ((long)u)-((long)utmp), L_SET);
crypto/heimdal/lib/kadm5/log.c
60
ret = lseek (fd, 0, SEEK_END);
crypto/heimdal/lib/kadm5/log.c
72
lseek (fd, 0, SEEK_END);
crypto/heimdal/lib/kadm5/log.c
811
lseek (fd, 0, SEEK_SET);
crypto/heimdal/lib/krb5/fcache.c
219
pos = lseek(fd, 0, SEEK_END);
crypto/heimdal/lib/krb5/fcache.c
222
if (lseek(fd, 0, SEEK_SET) < 0)
crypto/heimdal/lib/krb5/store_fd.c
58
return lseek(FD(sp), offset, whence);
crypto/heimdal/lib/roken/getcap.c
285
(void)lseek(fd, (off_t)0, SEEK_SET);
crypto/krb5/src/lib/kdb/kdb_log.c
176
current_offset = lseek(fd, 0, SEEK_END);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1093
if (lseek(fd, start_offset, SEEK_SET) == -1) {
crypto/krb5/src/lib/krb5/ccache/cc_file.c
1118
if (lseek(fd, start_offset, SEEK_SET) == -1) {
crypto/krb5/src/lib/krb5/rcache/rc_file2.c
114
st = lseek(fd, offset, SEEK_SET);
crypto/krb5/src/lib/krb5/rcache/rc_file2.c
83
st = lseek(fd, offset, SEEK_SET);
crypto/krb5/src/plugins/kdb/db2/kdb_db2.c
659
lseek(fd, pos, SEEK_SET);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
410
lseek(hashp->fp, 0, SEEK_SET);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
439
lseek(hashp->fp, 0, SEEK_SET);
crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c
223
if (lseek(mp->fd, off, SEEK_SET) != off)
crypto/krb5/src/plugins/kdb/db2/libdb2/mpool/mpool.c
409
if (lseek(mp->fd, off, SEEK_SET) != off)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
138
if (lseek(t->bt_rfd, (off_t)0, SEEK_SET) != 0)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_close.c
179
if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1)
crypto/krb5/src/plugins/kdb/db2/libdb2/recno/rec_open.c
128
if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) {
crypto/krb5/src/plugins/kdb/lmdb/kdb_lmdb.c
452
(void)lseek(fd, pos, SEEK_SET);
crypto/openssh/loginrec.c
1194
if (lseek(fd, -(off_t)sizeof(struct utmp), SEEK_END) == -1) {
crypto/openssh/loginrec.c
1229
if (lseek(fd, -(off_t)(2 * sizeof(struct utmp)), SEEK_CUR) == -1) {
crypto/openssh/loginrec.c
1359
if (lseek(fd, -(off_t)sizeof(struct utmpx), SEEK_END) == -1 ) {
crypto/openssh/loginrec.c
1390
if (lseek(fd, -(off_t)(2 * sizeof(struct utmpx)), SEEK_CUR) == -1) {
crypto/openssh/loginrec.c
1558
if (lseek(*fd, offset, SEEK_SET) != offset) {
crypto/openssh/loginrec.c
866
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
crypto/openssh/loginrec.c
888
if ((ret = lseek(fd, pos, SEEK_SET)) == -1) {
crypto/openssh/sftp-client.c
1742
if ((lseek(local_fd, req->offset, SEEK_SET) == -1 ||
crypto/openssh/sftp-client.c
2080
if (lseek(local_fd, (off_t)c.size, SEEK_SET) == -1) {
crypto/openssh/sftp-server.c
1666
if (lseek(read_fd, read_off, SEEK_SET) < 0) {
crypto/openssh/sftp-server.c
1673
lseek(write_fd, write_off, SEEK_SET) < 0) {
crypto/openssh/sftp-server.c
818
if (lseek(fd, off, SEEK_SET) == -1) {
crypto/openssh/sftp-server.c
866
lseek(fd, off, SEEK_SET) == -1) {
crypto/openssl/crypto/bio/bio_local.h
176
#define UP_lseek lseek
crypto/openssl/ms/applink.c
53
#define _lseek lseek
include/stdio.h
449
__off_t lseek(int, __off_t, int);
include/unistd.h
359
off_t lseek(int, off_t, int);
lib/libc/db/recno/rec_close.c
131
if (lseek(t->bt_rfd, (off_t)0, SEEK_SET) != 0)
lib/libc/db/recno/rec_close.c
172
if ((off = lseek(t->bt_rfd, (off_t)0, SEEK_CUR)) == -1)
lib/libc/db/recno/rec_open.c
117
if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) {
lib/libc/gen/getcap.c
236
(void)lseek(fd, (off_t)0, SEEK_SET);
lib/libc/gen/nlist.c
139
if (lseek(fd, 0, SEEK_SET) == -1 ||
lib/libc/gen/nlist.c
246
if (lseek(fd, symoff, SEEK_SET) == -1)
lib/libc/gen/opendir2.c
125
pos = lseek(dirp->dd_fd, 0, SEEK_CUR);
lib/libc/gen/opendir2.c
126
if (pos == -1 || lseek(fd2, pos, SEEK_SET) == -1) {
lib/libc/gen/rewinddir.c
52
(void) lseek(dirp->dd_fd, 0, SEEK_SET);
lib/libc/gen/telldir.c
153
(void) lseek(dirp->dd_fd, (off_t)loc_seek, SEEK_SET);
lib/libc/stdio/stdio.c
69
return (lseek(fp->_file, (off_t)offset, whence));
lib/libc/tests/secure/fortify_poll_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_random_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_select_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_signal_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_socket_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_stdio_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_stdlib_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_string_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_strings_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_uio_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_unistd_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/secure/fortify_wchar_test.c
137
ATF_REQUIRE_EQ(0, lseek(fd, 0, SEEK_SET));
lib/libc/tests/sys/sendfile_test.c
308
ATF_REQUIRE_EQ_MSG(0, lseek(src_fd, offset, SEEK_SET),
lib/libkvm/kvm.c
380
if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
402
if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
445
if (lseek(kd->vmfd, (off_t)kva, 0) == -1 && errno != 0) {
lib/libkvm/kvm.c
466
if (lseek(kd->pmfd, pa, 0) == -1 && errno != 0) {
lib/libmd/mdXhl.c
66
if (lseek(fd, ofs, SEEK_SET) != ofs ||
lib/libnetmap/nmport.c
208
mapsize = lseek(fd, 0, SEEK_END);
lib/libprocstat/core.c
313
if (lseek(core->pc_fd, offset, SEEK_SET) == -1) {
lib/libsecureboot/tests/tvo.c
171
lseek(fd, 0, SEEK_SET);
lib/libsecureboot/vectx.c
197
lseek(fd, 0, SEEK_SET);
lib/libsecureboot/vectx.c
317
return (lseek(ctx->vec_fd, off, whence));
lib/libsecureboot/vectx.c
366
ctx->vec_off = lseek(ctx->vec_fd, off, whence);
lib/libsecureboot/veopen.c
387
lseek(fd, 0, SEEK_SET);
lib/libsecureboot/veopen.c
395
lseek(fd, off, SEEK_SET);
lib/libsecureboot/verify_file.c
337
lseek(fd, 0, SEEK_SET);
lib/libutil/quotafile.c
287
if (lseek(qf->fd, off, SEEK_SET) == -1)
lib/libutil/quotafile.c
315
if (lseek(qf->fd, off, SEEK_SET) == -1)
lib/libutil/quotafile.c
375
if (lseek(qf->fd, off, SEEK_SET) == -1)
lib/libutil/quotafile.c
398
if (lseek(qf->fd, off, SEEK_SET) == -1)
lib/libutil/uucplock.c
137
lseek(fd, (off_t)0, SEEK_SET);
libexec/atrun/atrun.c
282
if (lseek(fd_in, (off_t) 0, SEEK_SET) < 0)
libexec/rbootd/rmpproto.c
441
if (lseek(oldconn->bootfd, (off_t)size, SEEK_SET) < 0) {
sbin/bsdlabel/bsdlabel.c
466
(void)lseek(f, (off_t)0, SEEK_SET);
sbin/camcontrol/fwdownload.c
517
if (lseek(fd, 0, SEEK_SET) == -1) {
sbin/camcontrol/fwdownload.c
603
if (lseek(fd, 0, SEEK_SET) == -1) {
sbin/camcontrol/fwdownload.c
627
if (lseek(fd, skip_bytes, SEEK_SET) == -1) {
sbin/fdisk/fdisk.c
753
lseek(fd, (sector * 512), 0);
sbin/fsck_ffs/fsutil.c
967
if (lseek(fd, offset, 0) < 0)
sbin/fsck_msdosfs/boot.c
200
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec,
sbin/fsck_msdosfs/boot.c
226
if (lseek(dosfs, boot->bpbFSInfo *
sbin/fsck_msdosfs/boot.c
341
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET)
sbin/fsck_msdosfs/boot.c
355
if (lseek(dosfs, boot->bpbFSInfo * boot->bpbBytesPerSec, SEEK_SET)
sbin/fsck_msdosfs/dir.c
1014
if (lseek(fd, off, SEEK_SET) != off
sbin/fsck_msdosfs/dir.c
1034
if (lseek(fd, off, SEEK_SET) != off
sbin/fsck_msdosfs/dir.c
1135
if (lseek(dosfs, lfoff, SEEK_SET) != lfoff
sbin/fsck_msdosfs/dir.c
1165
if (lseek(dosfs, lfoff, SEEK_SET) != lfoff
sbin/fsck_msdosfs/dir.c
319
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsck_msdosfs/dir.c
331
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsck_msdosfs/dir.c
512
if (lseek(fd, off, SEEK_SET) != off ||
sbin/fsck_msdosfs/dir.c
612
if (lseek(fd, off, SEEK_SET) != off ||
sbin/fsck_msdosfs/fat.c
1178
if ((lseek(fd, src_off, SEEK_SET) != src_off ||
sbin/fsck_msdosfs/fat.c
1185
if ((lseek(fd, dst_off, SEEK_SET) != dst_off ||
sbin/fsck_msdosfs/fat.c
1240
if ((lseek(fd, dst_base, SEEK_SET) != dst_base ||
sbin/fsck_msdosfs/fat.c
373
if (lseek(fd, fat_addr, SEEK_SET) != fat_addr ||
sbin/fsck_msdosfs/fat.c
427
if (lseek(fd, fat_addr, SEEK_SET) != fat_addr ||
sbin/fsck_msdosfs/fat.c
599
if (lseek(fs, off, SEEK_SET) != off) {
sbin/fsck_msdosfs/fat.c
748
if (lseek(fd, off, SEEK_SET) != off) {
sbin/fsirand/fsirand.c
180
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/fsirand/fsirand.c
211
if (lseek(devfd, (off_t)dblk * bsize, SEEK_SET) < 0) {
sbin/growfs/growfs.c
1077
if (lseek(fsi, (off_t)bno * DEV_BSIZE, 0) < 0)
sbin/growfs/growfs.c
1102
if (lseek(fso, (off_t)bno * DEV_BSIZE, SEEK_SET) < 0)
sbin/ipf/ipfs/ipfs.c
128
if (lseek(fd, pos, SEEK_SET) != pos) {
sbin/ipf/ipfs/ipfs.c
137
pos = lseek(fd, 0, SEEK_CUR);
sbin/ipf/ipfs/ipfs.c
184
if (lseek(fd, pos, SEEK_SET) != pos) {
sbin/ipf/ipfs/ipfs.c
193
pos = lseek(fd, 0, SEEK_CUR);
sbin/ipf/ipmon/ipmon.c
1782
tr = (lseek(l->fd, 0, SEEK_CUR) < l->size);
sbin/ipf/ipsend/sock.c
105
if (lseek(kfd, offset, SEEK_SET) == -1)
sbin/newfs_msdos/mkfs_msdos.c
310
if (o.offset && o.offset != lseek(fd, o.offset, SEEK_SET)) {
sbin/newfs_msdos/mkfs_msdos.c
667
if (!x && lseek(fd1, o.offset, SEEK_SET)) {
sbin/quotacheck/quotacheck.c
664
if (lseek(fi, (off_t)bno * dev_bsize, SEEK_SET) < 0 ||
sbin/restore/dirs.c
439
(void) lseek(dirp->dd_fd, base + rounddown2(loc, DIRBLKSIZ), SEEK_SET);
sbin/restore/dirs.c
524
return ((long)lseek(dirp->dd_fd,
sbin/restore/tape.c
1044
if (lseek(ofile, size, SEEK_CUR) == -1) {
sbin/restore/tape.c
1208
seek_failed = (lseek(mt, i, SEEK_CUR) == (off_t)-1);
sbin/savecore/savecore.c
1002
if (lseek(fddev, lasthd, SEEK_SET) != lasthd ||
sbin/savecore/savecore.c
1097
if (lseek(fddev, firsthd, SEEK_SET) != firsthd ||
sbin/savecore/savecore.c
1276
if (lseek(fddev, lasthd, SEEK_SET) != lasthd ||
sbin/savecore/savecore.c
805
if (lseek(fdcore, -(off_t)sizeof(kdhl), SEEK_END) == -1) {
sbin/savecore/savecore.c
815
(void)lseek(fdcore, 0, SEEK_SET);
share/examples/scsi_target/scsi_cmds.c
612
if (lseek(c_descr->aiocb.aio_fildes,
share/examples/scsi_target/scsi_cmds.c
728
if (lseek(c_descr->aiocb.aio_fildes,
stand/common/readin.h
38
#define VECTX_LSEEK lseek
stand/common/vdisk.c
271
if (lseek(vd->vdisk_fd, blk << 9, SEEK_SET) == -1)
stand/efi/loader/arch/amd64/multiboot2.c
130
error = lseek(fd, i + sizeof(*header), SEEK_SET);
stand/ficl/loader.c
631
off = lseek(fd, 0LL, SEEK_CUR);
stand/ficl/loader.c
635
if (lseek(fd, 0, SEEK_SET) == -1)
stand/ficl/loader.c
647
d = (lseek(fd, off, SEEK_SET) != off) ? NULL : &dirent;
stand/ficl/loader.c
716
stackPushINT(pVM->pStack, lseek(fd, pos, whence));
stand/i386/gptzfsboot/zfsboot.c
375
lseek(fd, PAGE_SIZE, SEEK_SET);
stand/i386/gptzfsboot/zfsboot.c
414
lseek(fd, hdr.eh.e_phoff, SEEK_SET);
stand/i386/gptzfsboot/zfsboot.c
426
lseek(fd, ep[i].p_offset, SEEK_SET);
stand/i386/gptzfsboot/zfsboot.c
436
lseek(fd, hdr.eh.e_shoff +
stand/i386/gptzfsboot/zfsboot.c
448
lseek(fd, es[i].sh_offset, SEEK_SET);
stand/kboot/libkboot/dfk.c
245
lseek(ef.fd, (off_t)phdr[i].p_offset + addr - phdr[i].p_vaddr,
stand/kboot/libkboot/efi.c
142
if (lseek(fd2, pa, SEEK_SET) < 0)
stand/libsa/bzipfs.c
292
if (lseek(bzf->bzf_rawfd, 0, SEEK_SET) == -1) {
stand/libsa/gzipfs.c
278
if (lseek(zf->zf_rawfd, zf->zf_dataoffset, SEEK_SET) == -1)
stand/libsa/splitfs.c
289
new_pos = lseek(sf->curfd, seek_by, SEEK_CUR);
stand/libsa/xzfs.c
250
if (lseek(xzf->xzf_rawfd, 0, SEEK_SET) == -1)
stand/libsa/zfs/zfs.c
523
if (lseek(fd, start_sec * secsz, SEEK_SET) == -1) {
stand/libsa/zfs/zfs.c
617
if (lseek(fd, start_sec * secsz, SEEK_SET) == -1) {
stand/libsa/zfs/zfs.c
630
(void) lseek(fd, -secsz, SEEK_CUR);
stand/libsa/zfs/zfs.c
653
(void) lseek(fd, -secsz, SEEK_CUR);
stand/libsa/zfs/zfs.c
677
(void) lseek(fd, -secsz, SEEK_CUR);
stand/libsa/zstdfs.c
248
if (lseek(zstdf->zstdf_rawfd, 0, SEEK_SET) == -1)
stand/usb/tools/sysinit.c
210
off = lseek(input_file, 0, SEEK_END);
stand/usb/tools/sysinit.c
219
off = lseek(input_file, 0, SEEK_SET);
stand/userboot/test/test.c
341
if (lseek(tf->tf_u.fd, offset, whence) < 0)
sys/kern/init_sysent.c
268
{ compat6(AS(freebsd6_lseek_args),lseek), .sy_auevent = AUE_LSEEK, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 199 = freebsd6 lseek */
sys/kern/init_sysent.c
88
{ compat(AS(olseek_args),lseek), .sy_auevent = AUE_LSEEK, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = SY_THR_STATIC }, /* 19 = old lseek */
sys/sys/types.h
376
off_t lseek(int, off_t, int);
tests/sys/capsicum/capability-fd.cc
1231
EXPECT_EQ(-1, lseek(fds[0], 0, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
1238
EXPECT_EQ(-1, lseek(fds[0], 0, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
1244
EXPECT_EQ(-1, lseek(fds[0], 0, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
311
EXPECT_EQ(1, lseek(fd, 1, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
312
EXPECT_EQ(1, lseek(fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
313
EXPECT_EQ(1, lseek(cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
314
EXPECT_EQ(1, lseek(cap_cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
315
EXPECT_EQ(3, lseek(cap_fd, 3, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
316
EXPECT_EQ(3, lseek(fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
317
EXPECT_EQ(3, lseek(cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
318
EXPECT_EQ(3, lseek(cap_cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
319
EXPECT_EQ(5, lseek(cap_cap_fd, 5, SEEK_SET));
tests/sys/capsicum/capability-fd.cc
320
EXPECT_EQ(5, lseek(fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
321
EXPECT_EQ(5, lseek(cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
322
EXPECT_EQ(5, lseek(cap_cap_fd, 0, SEEK_CUR));
tests/sys/capsicum/capability-fd.cc
495
CHECK_RIGHT_RESULT(lseek(cap_fd, 0, SEEK_SET), rights, CAP_SEEK);
tests/sys/capsicum/capmode.cc
122
EXPECT_OK(lseek(fd_file_, 0, SEEK_SET));
tests/sys/capsicum/linux.cc
1228
lseek(fd, 4, SEEK_SET);
tests/sys/cddl/zfs/bin/file_trunc.c
182
if (lseek(fd, (offset + roffset), SEEK_SET) < 0) {
tests/sys/cddl/zfs/bin/file_trunc.c
194
if (lseek(fd, (offset + roffset), SEEK_SET) < 0) {
tests/sys/cddl/zfs/bin/file_write.c
180
noffset = lseek(bigfd, offset, SEEK_SET);
tests/sys/cddl/zfs/bin/largest_file.c
76
lseek_ret = lseek(fd, offset, SEEK_SET);
tests/sys/cddl/zfs/bin/largest_file.c
91
lseek_ret = lseek(fd, offset, SEEK_CUR);
tests/sys/cddl/zfs/bin/mkfile.c
134
if ((lseek(fd, (off_t)(s - 1LL), SEEK_SET) == (off_t)-1) ||
tests/sys/cddl/zfs/bin/mkfile.c
146
if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) {
tests/sys/cddl/zfs/tests/txg_integrity/fsync_integrity.c
457
if (-1 == lseek(outfd, 0, SEEK_SET)){
tests/sys/cddl/zfs/tests/txg_integrity/txg_integrity.c
522
if (-1 == lseek(outfd, 0, SEEK_SET)){
tests/sys/fifo/fifo_misc.c
117
if (lseek(reader_fd, 1, SEEK_CUR) >= 0) {
tests/sys/file/path_test.c
741
lseek(pathfd, 0, SEEK_SET) == -1);
tests/sys/fs/fusefs/cache.cc
191
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET));
tests/sys/fs/fusefs/locks.cc
397
ASSERT_NE(-1, lseek(fd, 500, SEEK_SET));
tests/sys/fs/fusefs/locks.cc
462
ASSERT_NE(-1, lseek(fd, 500, SEEK_SET));
tests/sys/fs/fusefs/locks.cc
607
ASSERT_NE(-1, lseek(fd, 500, SEEK_SET));
tests/sys/fs/fusefs/lseek.cc
105
SET_OUT_HEADER_LEN(out, lseek);
tests/sys/fs/fusefs/lseek.cc
106
out.body.lseek.offset = i.body.lseek.offset;
tests/sys/fs/fusefs/lseek.cc
110
EXPECT_EQ(offset, lseek(fd, offset, SEEK_DATA));
tests/sys/fs/fusefs/lseek.cc
237
SET_OUT_HEADER_LEN(out, lseek);
tests/sys/fs/fusefs/lseek.cc
238
out.body.lseek.offset = offset_out;
tests/sys/fs/fusefs/lseek.cc
268
SET_OUT_HEADER_LEN(out, lseek);
tests/sys/fs/fusefs/lseek.cc
269
out.body.lseek.offset = offset_out;
tests/sys/fs/fusefs/lseek.cc
274
EXPECT_EQ(offset_initial, lseek(fd, offset_initial, SEEK_SET));
tests/sys/fs/fusefs/lseek.cc
277
EXPECT_EQ(offset_initial, lseek(fd, 0, SEEK_CUR));
tests/sys/fs/fusefs/lseek.cc
301
in.body.lseek.whence == SEEK_DATA);
tests/sys/fs/fusefs/lseek.cc
359
in.body.lseek.fh == FH &&
tests/sys/fs/fusefs/lseek.cc
360
(off_t)in.body.lseek.offset == offset_in &&
tests/sys/fs/fusefs/lseek.cc
361
in.body.lseek.whence == SEEK_DATA);
tests/sys/fs/fusefs/lseek.cc
365
SET_OUT_HEADER_LEN(out, lseek);
tests/sys/fs/fusefs/lseek.cc
366
out.body.lseek.offset = offset_out;
tests/sys/fs/fusefs/lseek.cc
369
EXPECT_EQ(offset_out, lseek(fd, offset_in, SEEK_DATA));
tests/sys/fs/fusefs/lseek.cc
370
EXPECT_EQ(offset_out, lseek(fd, 0, SEEK_CUR));
tests/sys/fs/fusefs/lseek.cc
394
in.body.lseek.fh == FH &&
tests/sys/fs/fusefs/lseek.cc
395
(off_t)in.body.lseek.offset == offset_in &&
tests/sys/fs/fusefs/lseek.cc
396
in.body.lseek.whence == SEEK_DATA);
tests/sys/fs/fusefs/lseek.cc
407
EXPECT_EQ(offset_in, lseek(fd, offset_in, SEEK_DATA));
tests/sys/fs/fusefs/lseek.cc
408
EXPECT_EQ(-1, lseek(fd, -1, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
410
EXPECT_EQ(-1, lseek(fd, fsize, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
432
in.body.lseek.fh == FH &&
tests/sys/fs/fusefs/lseek.cc
433
(off_t)in.body.lseek.offset == offset_in &&
tests/sys/fs/fusefs/lseek.cc
434
in.body.lseek.whence == SEEK_HOLE);
tests/sys/fs/fusefs/lseek.cc
438
SET_OUT_HEADER_LEN(out, lseek);
tests/sys/fs/fusefs/lseek.cc
439
out.body.lseek.offset = offset_out;
tests/sys/fs/fusefs/lseek.cc
443
EXPECT_EQ(offset_out, lseek(fd, offset_in, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
444
EXPECT_EQ(offset_out, lseek(fd, 0, SEEK_CUR));
tests/sys/fs/fusefs/lseek.cc
468
in.body.lseek.fh == FH &&
tests/sys/fs/fusefs/lseek.cc
469
(off_t)in.body.lseek.offset == offset_in &&
tests/sys/fs/fusefs/lseek.cc
470
in.body.lseek.whence == SEEK_HOLE);
tests/sys/fs/fusefs/lseek.cc
481
EXPECT_EQ(fsize, lseek(fd, offset_in, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
482
EXPECT_EQ(-1, lseek(fd, -1, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
484
EXPECT_EQ(-1, lseek(fd, fsize, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
506
in.body.lseek.fh == FH &&
tests/sys/fs/fusefs/lseek.cc
507
(off_t)in.body.lseek.offset == offset_in &&
tests/sys/fs/fusefs/lseek.cc
508
in.body.lseek.whence == SEEK_HOLE);
tests/sys/fs/fusefs/lseek.cc
514
EXPECT_EQ(-1, lseek(fd, offset_in, SEEK_HOLE));
tests/sys/fs/fusefs/lseek.cc
76
EXPECT_EQ(offset_in, lseek(fd, offset_in, SEEK_DATA));
tests/sys/fs/fusefs/mockfs.cc
260
switch (in.body.lseek.whence) {
tests/sys/fs/fusefs/mockfs.cc
263
in.body.lseek.offset);
tests/sys/fs/fusefs/mockfs.cc
267
in.body.lseek.offset);
tests/sys/fs/fusefs/mockfs.cc
271
in.body.lseek.whence, in.body.lseek.offset);
tests/sys/fs/fusefs/mockfs.cc
742
EXPECT_EQ(inlen, fih + sizeof(in.body.lseek));
tests/sys/fs/fusefs/mockfs.hh
176
fuse_lseek_in lseek;
tests/sys/fs/fusefs/mockfs.hh
217
fuse_lseek_out lseek;
tests/sys/fs/fusefs/notify.cc
388
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
1367
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/read.cc
994
ASSERT_EQ(0, lseek(fd0, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/readdir.cc
233
r = lseek(fd, de0->d_off, SEEK_SET);
tests/sys/fs/fusefs/write.cc
1097
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1128
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1155
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
1634
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
385
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/fusefs/write.cc
391
ASSERT_EQ(0, lseek(fd, 0, SEEK_SET)) << strerror(errno);
tests/sys/fs/tarfs/mktar.c
96
if (lseek(fd, 1048576LU * (i - 32), SEEK_SET) < 0)
tests/sys/kern/copy_file_range.c
134
ATF_REQUIRE(lseek(fd1, 0, SEEK_CUR) == 0);
tests/sys/kern/copy_file_range.c
135
ATF_REQUIRE(lseek(fd2, 0, SEEK_CUR) == 0);
tests/sys/kern/copy_file_range.c
152
ATF_REQUIRE(lseek(fd1, 0, SEEK_CUR) == 0);
tests/sys/kern/copy_file_range.c
153
ATF_REQUIRE(lseek(fd2, 0, SEEK_CUR) == 0);
tests/sys/kern/copy_file_range.c
195
ATF_REQUIRE(lseek(fd2, 0, SEEK_SET) == 0);
tests/sys/kern/copy_file_range.c
203
off = lseek(fd1, 0, SEEK_CUR);
tests/sys/kern/copy_file_range.c
205
off = lseek(fd2, 0, SEEK_CUR);
tests/sys/kern/copy_file_range.c
50
ATF_REQUIRE(lseek(fd, 0, SEEK_SET) == 0);
tests/sys/kern/getdirentries_test.c
114
ATF_REQUIRE_EQ(base + 3, lseek(dd, 3, SEEK_CUR));
tests/sys/kern/getdirentries_test.c
34
ATF_REQUIRE_EQ(base, lseek(dd, 0, SEEK_CUR));
tests/sys/kern/inotify_test.c
576
ATF_REQUIRE(lseek(fd, 0, SEEK_SET) == 0);
tests/sys/kern/inotify_test.c
583
ATF_REQUIRE(lseek(fd, 0, SEEK_SET) == 0);
tests/sys/kern/ktrace_test.c
598
off = lseek(fd, 0, SEEK_CUR);
tests/sys/kern/ktrace_test.c
600
off1 = lseek(fd, 0, SEEK_END);
tests/sys/kern/procdesc.c
706
lseek(workfd, EXPECTED_OFFSET, SEEK_SET);
tests/sys/kern/procdesc.c
731
off = lseek(workfd, 0, SEEK_CUR);
tests/sys/kern/procdesc.c
737
off = lseek(workfd, 0, SEEK_CUR);
tests/sys/posixshm/memfd_test.c
107
ATF_REQUIRE(lseek(fd, 0, SEEK_SET) == 0);
tests/sys/posixshm/posixshm_test.c
966
if (lseek(desc, 0, SEEK_SET) == -1)
tools/bus_space/bus.c
162
o = lseek(r->fd, ofs, SEEK_SET);
tools/bus_space/bus.c
260
o = lseek(r->fd, ofs, SEEK_SET);
tools/regression/fsx/fsx.c
1177
file_size = maxfilelen = lseek(fd, (off_t)0, SEEK_END);
tools/regression/fsx/fsx.c
1183
ret = lseek(fd, (off_t)0, SEEK_SET);
tools/regression/fsx/fsx.c
306
off_t size_by_seek = lseek(savefd, (off_t)0, SEEK_END);
tools/regression/fsx/fsx.c
316
ret = lseek(savefd, (off_t)0, SEEK_SET);
tools/regression/fsx/fsx.c
406
size_by_seek = lseek(fd, (off_t)0, SEEK_END);
tools/regression/fsx/fsx.c
466
ret = lseek(fd, (off_t)offset, SEEK_SET);
tools/regression/fsx/fsx.c
617
ret = lseek(fd, (off_t)offset, SEEK_SET);
tools/regression/fsx/fsx.c
744
if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1) {
tools/regression/geom/MdLoad/MdLoad.c
262
lseek(fd, dsp->offset, SEEK_SET);
tools/regression/nfsmmap/test1/test1.c
28
if (lseek(fd, 600, SEEK_SET) < 0)
tools/regression/nfsmmap/test2/test2.c
28
if (lseek(fd, 600, SEEK_SET) < 0)
tools/regression/security/cap_test/cap_test_capabilities.c
145
off = lseek(fd_cap, 0, SEEK_SET);
tools/regression/security/cap_test/cap_test_capabilities.c
146
CHECK_RESULT(lseek, CAP_SEEK, off >= 0);
tools/regression/security/cap_test/cap_test_capmode.c
115
CHECK_SYSCALL_SUCCEEDS(lseek, fd_file, 0, SEEK_SET);
tools/regression/security/open_to_operation/open_to_operation.c
624
if (lseek(fd, 100, SEEK_SET) == 100)
tools/regression/sockets/sendfile/sendfile.c
277
len = lseek(file_fd, 0, SEEK_SET);
tools/regression/sockets/sendfile/sendfile.c
361
len = lseek(file_fd, 0, SEEK_SET);
tools/test/stress2/lib/resources.c
239
if (lseek(dffd, 0, 0) == -1)
tools/test/stress2/testcases/lockf/lockf.c
147
if (lseek(fd, 0, SEEK_SET) == -1)
tools/test/stress2/testcases/lockf/lockf.c
57
if (lseek(fd, 0, SEEK_SET) == -1) // XXX
tools/test/stress2/testcases/lockf/lockf.c
66
if (lseek(fd, 0, SEEK_SET) == -1)
tools/test/stress2/testcases/lockf/lockf.c
84
if (lseek(fd, 0, SEEK_SET) == -1)
tools/test/stress2/testcases/lockf/lockf.c
89
if (lseek(fd, 0, SEEK_SET) == -1)
tools/test/stress2/testcases/lockf2/lockf2.c
112
if (lseek(fd, pos, SEEK_SET) == -1)
tools/test/stress2/testcases/mmap/mmap.c
118
if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1)
tools/test/stress2/tools/flip.c
131
if (lseek(fd, pos, SEEK_SET) == -1)
tools/test/stress2/tools/flip.c
139
if (lseek(fd, pos, SEEK_SET) == -1)
tools/test/stress2/tools/lsholes.c
66
hole = lseek(fd, pos, SEEK_HOLE);
tools/test/stress2/tools/lsholes.c
69
data = lseek(fd, pos, SEEK_DATA);
tools/test/stress2/tools/serial.c
28
if (lseek(fd, size - 1, SEEK_SET) == -1)
tools/test/stress2/tools/zapsb.c
47
if (lseek(fd, (off_t)(sblock_try[i]), SEEK_SET) < 0)
tools/test/stress2/tools/zapsb.c
69
if (lseek(fd, (off_t)(sblock_try[i]), SEEK_SET) < 0)
tools/tools/find-sb/find-sb.c
66
end = lseek(fd, offset, SEEK_SET);
tools/tools/intel-ucode-split/intel-ucode-split.c
176
if (lseek(ifd, resid, SEEK_CUR) == -1)
tools/tools/netmap/nmreplay.c
330
pf->filesize = lseek(pf->fd, 0, SEEK_END);
tools/tools/netmap/nmreplay.c
331
lseek(pf->fd, 0, SEEK_SET);
usr.bin/brandelf/brandelf.c
174
lseek(fd, 0, SEEK_SET);
usr.bin/bsdiff/bsdiff/bsdiff.c
141
((oldsize=lseek(fd,0,SEEK_END))==-1))
usr.bin/bsdiff/bsdiff/bsdiff.c
162
((newsize=lseek(fd,0,SEEK_END))==-1))
usr.bin/bsdiff/bspatch/bspatch.c
223
if ((oldsize = lseek(oldfd, 0, SEEK_END)) == -1 ||
usr.bin/diff/diffreg.c
551
lseek(ofd, (off_t)0, SEEK_SET);
usr.bin/elfctl/elfctl.c
319
if (lseek(fd, off, SEEK_SET) == -1 ||
usr.bin/elfctl/elfctl.c
387
if (lseek(fd, phdr.p_offset, SEEK_SET) < 0) {
usr.bin/elfctl/elfctl.c
429
if (lseek(fd, descsz, SEEK_CUR) < 0) {
usr.bin/finger/lprint.c
323
(void)lseek(fd, 0L, SEEK_SET);
usr.bin/fortune/fortune/fortune.c
989
lseek(fp->datfd,
usr.bin/gcore/gcore.c
189
lseek(efd, 0, SEEK_SET);
usr.bin/gcore/gcore.c
192
lseek(efd, 0, SEEK_SET);
usr.bin/gzip/gzip.c
1473
lseek(fd, 0, SEEK_SET);
usr.bin/gzip/gzip.c
2107
rv = lseek(fd, (off_t)(-8), SEEK_END);
usr.bin/gzip/unxz.c
189
if (lseek(fd, pos, SEEK_SET) != pos) {
usr.bin/mail/fio.c
231
(void)lseek(fileno(f), (off_t)sizeof(*message), 0);
usr.bin/mkimg/image.c
413
end = lseek(fd, 0L, SEEK_END);
usr.bin/mkimg/image.c
432
hole = lseek(fd, cur, SEEK_HOLE);
usr.bin/mkimg/image.c
435
data = lseek(fd, cur, SEEK_DATA);
usr.bin/mkimg/image.c
529
ofs = lseek(fd, 0L, SEEK_CUR);
usr.bin/mkimg/image.c
552
if (lseek(fd, (off_t)count, SEEK_CUR) != -1)
usr.bin/mkimg/mkimg.c
359
ofs = lseek(fd, len, SEEK_CUR);
usr.bin/mkimg/mkimg.c
768
lseek(outfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
usr.bin/mkuzip/mkuz_blockcache.c
103
assert((unsigned)lseek(fd, 0, SEEK_CUR) == bp->info.offset);
usr.bin/mkuzip/mkuz_blockcache.c
63
if (lseek(fd, bcep->hit.offset, SEEK_SET) < 0) {
usr.bin/mkuzip/mkuz_blockcache.c
72
lseek(fd, cbp->info.offset, SEEK_SET);
usr.bin/mkuzip/mkuzip.c
316
lseek(cfs.fdw, offset, SEEK_SET);
usr.bin/mkuzip/mkuzip.c
412
lseek(cfs.fdw, 0, SEEK_SET);
usr.bin/mkuzip/mkuzip.c
435
cpos = lseek(fd, 0, SEEK_CUR);
usr.bin/patch/inp.c
399
if (lseek(tifd, (off_t) (baseline / lines_per_buf *
usr.bin/stat/stat.c
1088
if ((off = lseek(fd, pos, SEEK_HOLE)) < 0) {
usr.bin/stat/stat.c
1102
if ((off = lseek(fd, pos, SEEK_DATA)) < 0) {
usr.bin/stat/stat.c
1110
if ((off = lseek(fd, 0, SEEK_END)) > pos)
usr.bin/tail/forward.c
421
if (lseek(ev->ident, (off_t)0, SEEK_END) == -1) {
usr.bin/tail/tail.c
252
if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 &&
usr.bin/tcopy/tcopy.cc
296
where = lseek(fd, 0L, SEEK_SET);
usr.bin/tcopy/tcopy.cc
386
off_t where = lseek(fd, 0UL, SEEK_CUR);
usr.bin/tip/tip/uucplock.c
94
if (lseek(fd, (off_t)0, SEEK_SET) < 0) {
usr.bin/xinstall/xinstall.c
1150
lseek(from_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
1151
lseek(to_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
1170
lseek(from_fd, 0, SEEK_SET);
usr.bin/xinstall/xinstall.c
1171
lseek(to_fd, 0, SEEK_SET);
usr.sbin/bhyve/snapshot.c
1098
offset = lseek(data_fd, 0, SEEK_CUR);
usr.sbin/bhyve/snapshot.c
667
if (lseek(snapfd, foff, SEEK_SET) < 0) {
usr.sbin/bhyveload/bhyveload.c
297
if (lseek(cf->cf_u.fd, offset, whence) < 0)
usr.sbin/boot0cfg/boot0cfg.c
337
if (lseek(fd, 0, SEEK_SET) == -1 ||
usr.sbin/bsdinstall/partedit/gpart_ops.c
443
bootsize = lseek(bootfd, 0, SEEK_END);
usr.sbin/bsdinstall/partedit/gpart_ops.c
445
lseek(bootfd, 0, SEEK_SET);
usr.sbin/btxld/btxld.c
466
if (offset != -1 && lseek(fd, offset, SEEK_SET) != offset)
usr.sbin/btxld/btxld.c
493
if (lseek(fd, offset, SEEK_SET) != offset)
usr.sbin/crunch/crunchide/crunchide.c
233
if (lseek(fd, 0, SEEK_SET) != 0) {
usr.sbin/crunch/crunchide/crunchide.c
249
if (lseek(fd, 0, SEEK_SET) != 0) {
usr.sbin/crunch/crunchide/exec_elf32.c
100
if (lseek(fd, off, SEEK_SET) != off) {
usr.sbin/crunch/crunchide/exec_elf32.c
117
if (lseek(fd, off, SEEK_SET) != off) {
usr.sbin/daemon/daemon.c
949
(void)lseek(pfd, 0, SEEK_SET);
usr.sbin/diskinfo/diskinfo.c
328
if (lseek(fd, (off_t)blockno * sectorsize, SEEK_SET) == -1)
usr.sbin/dumpcis/readcis.c
266
if (lseek(fd, offs, SEEK_SET) < 0)
usr.sbin/dumpcis/readcis.c
340
if (lseek(fd, offs, SEEK_SET) < 0)
usr.sbin/edquota/edquota.c
468
lseek(outfd, 0, L_SET);
usr.sbin/edquota/edquota.c
682
lseek(outfd, 0, L_SET);
usr.sbin/fdformat/fdformat.c
100
if (lseek (fd, (long) track * tracksize, 0) < 0)
usr.sbin/fdread/fdread.c
181
if (lseek(fd, nbytes, SEEK_SET) != nbytes)
usr.sbin/fdread/fdread.c
201
if (lseek(fd, nbytes, SEEK_SET) != nbytes)
usr.sbin/fdwrite/fdwrite.c
168
if (lseek (fd, (long) track*bpt, 0) < 0) err(1, "lseek");
usr.sbin/fdwrite/fdwrite.c
172
if (lseek (fd, (long) track*bpt, 0) < 0) err(1, "lseek");
usr.sbin/lpr/lpd/printjob.c
1125
lseek(sfd, 0, SEEK_SET);
usr.sbin/lpr/lpd/printjob.c
1210
lseek(sfd, 0, SEEK_SET);
usr.sbin/lpr/lpd/printjob.c
270
(void) lseek(lfd, pidoff, 0);
usr.sbin/lpr/lpr/lpr.c
493
lseek(tfd, (off_t)0, 0) == 0 &&
usr.sbin/lpr/lpr/lpr.c
846
(void) lseek(fd, (off_t)0, 0);
usr.sbin/makefs/ffs.c
538
if (lseek(fsopts->fd, fsopts->offset, SEEK_SET) == -1) {
usr.sbin/makefs/ffs/buf.c
137
if (lseek(bp->b_fs->fd, offset, SEEK_SET) == -1) {
usr.sbin/makefs/ffs/buf.c
75
if (lseek((*bpp)->b_fs->fd, offset, SEEK_SET) == -1)
usr.sbin/makefs/ffs/mkfs.c
824
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
usr.sbin/makefs/ffs/mkfs.c
848
if (lseek(fsopts->fd, offset, SEEK_SET) < 0)
usr.sbin/mptable/mptable.c
711
if ( lseek( pfd, (off_t)addr, SEEK_SET ) < 0 )
usr.sbin/nfsd/nfsd.c
1182
ret = lseek(from_fd, (off_t)0, SEEK_SET);
usr.sbin/nfsd/nfsd.c
1184
ret = lseek(to_fd, (off_t)0, SEEK_SET);
usr.sbin/pkg/ecc.c
564
if (lseek(fd, 0, SEEK_SET) == -1) {
usr.sbin/pkg/pkg.c
183
if (lseek(fd, 0, 0) == -1) {
usr.sbin/pkg/pkg.c
537
if (lseek(fd, 0, 0) == -1) {
usr.sbin/pkg/pkg.c
572
if (lseek(fd, 0, 0) == -1) {
usr.sbin/pkg/pkg.c
683
if (lseek(fd_pkg, 0, SEEK_SET) == -1) {
usr.sbin/pkg/rsa.c
156
if (lseek(fd, 0, 0) == -1) {
usr.sbin/pmc/cmd_pmc_filter.cc
229
lseek(infd, 0, SEEK_SET);
usr.sbin/pmc/cmd_pmc_filter.cc
243
lseek(infd, 0, SEEK_SET);
usr.sbin/quot/quot.c
127
if (lseek(fd, (off_t)cgtod(super, cg) << super->fs_fshift, 0) < 0)
usr.sbin/quot/quot.c
138
if (lseek(fd, off, SEEK_SET) != off ||
usr.sbin/rmt/rmt.c
116
rval = lseek(tape, (off_t)strtoll(count, NULL, 10), atoi(pos));
usr.sbin/rpc.statd/file.c
140
if (lseek(status_fd, desired_size - 1, SEEK_SET) == -1 ||
usr.sbin/rpc.statd/file.c
196
status_file_len = lseek(status_fd, 0L, SEEK_END);
usr.sbin/rpc.statd/file.c
214
lseek(status_fd, 0L, SEEK_SET);
usr.sbin/uhsoctl/uhsoctl.c
468
lseek(fd, 0, SEEK_SET);
usr.sbin/uhsoctl/uhsoctl.c
511
lseek(fd, 0, SEEK_SET);