Symbol: SEEK_CUR
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
884
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 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/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/sh/miscbltin.c
133
(void) lseek(fdc->fd, -residue, SEEK_CUR);
bin/sh/miscbltin.c
86
cur = lseek(fd, 0, SEEK_CUR);
crypto/heimdal/appl/ftp/ftp/ftp.c
1090
if (fseek (fout, 0L, SEEK_CUR) < 0) {
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1149
if (fseek(fout, 0L, SEEK_CUR) < 0) {
crypto/heimdal/kadmin/rpc.c
727
off = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/kadmin/rpc.c
734
INSIST(off == krb5_storage_seek(sp, 0, SEEK_CUR));
crypto/heimdal/lib/hdb/hdb-mitdb.c
358
krb5_storage_seek(sp, u16, SEEK_CUR);
crypto/heimdal/lib/hdb/hdb-mitdb.c
451
krb5_storage_seek(sp, 2, SEEK_CUR); /* skip real length */
crypto/heimdal/lib/hdb/hdb-mitdb.c
482
krb5_storage_seek(sp, u16, SEEK_CUR);
crypto/heimdal/lib/hdb/hdb-mitdb.c
495
krb5_storage_seek(sp, u16, SEEK_CUR);
crypto/heimdal/lib/kadm5/iprop-log.c
121
off_t end = krb5_storage_seek(sp, 0, SEEK_CUR) + len;
crypto/heimdal/lib/kadm5/iprop-log.c
368
krb5_storage_seek(sp, len, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_master.c
530
right = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_master.c
536
left = krb5_storage_seek(sp, -16, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_slave.c
203
krb5_storage_seek(sp, len + 8, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_slave.c
209
left = krb5_storage_seek (sp, -16, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_slave.c
252
cur = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/ipropd_slave.c
272
cur2 = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
333
off = krb5_storage_seek (sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
337
len = krb5_storage_seek (sp, 0, SEEK_CUR) - off;
crypto/heimdal/lib/kadm5/log.c
338
krb5_storage_seek(sp, -(len + 4), SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
342
krb5_storage_seek(sp, len, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
413
off = krb5_storage_seek (sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
419
len = krb5_storage_seek (sp, 0, SEEK_CUR) - off;
crypto/heimdal/lib/kadm5/log.c
421
krb5_storage_seek(sp, -(len + 4), SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
426
krb5_storage_seek(sp, len, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
468
off = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
475
princ_len = krb5_storage_seek(sp, 0, SEEK_CUR) - off;
crypto/heimdal/lib/kadm5/log.c
68
krb5_storage_seek(sp, -4, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
867
oldoff = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
869
krb5_storage_seek(sp, -8, SEEK_CUR);
crypto/heimdal/lib/kadm5/log.c
879
krb5_storage_seek(sp, -off, SEEK_CUR);
crypto/heimdal/lib/kadm5/send_recv.c
48
len = krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/addr_families.c
697
krb5_storage_seek(sp, 2, SEEK_CUR); /* skip first two bytes */
crypto/heimdal/lib/krb5/addr_families.c
700
krb5_storage_seek(sp, 2, SEEK_CUR); /* skip two bytes */
crypto/heimdal/lib/krb5/keytab_file.c
457
pos = krb5_storage_seek(cursor->sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_file.c
463
pos = krb5_storage_seek(cursor->sp, -len, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_file.c
483
curpos = krb5_storage_seek(cursor->sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_file.c
703
krb5_storage_seek(sp, -4, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_file.c
707
krb5_storage_seek(sp, len, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_keyfile.c
248
pos = krb5_storage_seek(cursor->sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/keytab_keyfile.c
391
if(krb5_storage_seek(sp, 8, SEEK_CUR) < 0) {
crypto/heimdal/lib/krb5/keytab_keyfile.c
423
if(krb5_storage_seek(sp, (len - 1) * (8 + 4), SEEK_CUR) < 0) {
crypto/heimdal/lib/krb5/pac.c
541
sig->buffersize - krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/store.c
297
pos = sp->seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/krb5/store_emem.c
51
sp->seek(sp, size, SEEK_CUR);
crypto/heimdal/lib/krb5/store_emem.c
74
sp->seek(sp, size, SEEK_CUR);
crypto/heimdal/lib/krb5/store_emem.c
92
case SEEK_CUR:
crypto/heimdal/lib/krb5/store_mem.c
50
sp->seek(sp, size, SEEK_CUR);
crypto/heimdal/lib/krb5/store_mem.c
61
sp->seek(sp, size, SEEK_CUR);
crypto/heimdal/lib/krb5/store_mem.c
83
case SEEK_CUR:
crypto/heimdal/lib/ntlm/ntlm.c
1675
infotarget->length = answer->length - krb5_storage_seek(sp, 0, SEEK_CUR);
crypto/heimdal/lib/ntlm/ntlm.c
501
krb5_storage_seek(in, len, SEEK_CUR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
433
if (flen && fseek(fp, flen, SEEK_CUR) != 0)
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1150
if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0)
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1335
if (fseek(fp, 0, SEEK_CUR))
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1349
if (fseek(fp, size, SEEK_CUR))
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1360
if (fseek(fp, size, SEEK_CUR))
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1369
if (fseek(fp, *size_needed, SEEK_CUR))
crypto/krb5/src/lib/krb5/keytab/kt_file.c
911
if (fseek(KTFILEP(id), 0L, SEEK_CUR) < 0)
crypto/krb5/src/lib/krb5/keytab/kt_file.c
927
if (fseek(KTFILEP(id), -size, SEEK_CUR)) {
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/util/profile/prof_parse.c
374
fseek (f, offset, SEEK_CUR);
crypto/openssh/loginrec.c
1232
if (lseek(fd, -(off_t)(2 * sizeof(struct utmp)), SEEK_CUR) == -1) {
crypto/openssh/loginrec.c
1393
if (lseek(fd, -(off_t)(2 * sizeof(struct utmpx)), SEEK_CUR) == -1) {
include/stdio.h
233
#ifndef SEEK_CUR
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/getutxent.c
137
fseek(uf, len - sizeof(*fu), SEEK_CUR);
lib/libc/gen/opendir2.c
125
pos = lseek(dirp->dd_fd, 0, SEEK_CUR);
lib/libc/gen/pututxline.c
162
if (fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR) == -1)
lib/libc/gen/pututxline.c
219
ret = fseeko(fp, -(off_t)sizeof fe, SEEK_CUR);
lib/libc/gen/pututxline.c
98
ret = fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR);
lib/libc/iconv/citrus_memstream.h
116
case SEEK_CUR:
lib/libc/stdio/fmemopen.c
226
case SEEK_CUR:
lib/libc/stdio/fopencookie.c
122
case SEEK_CUR:
lib/libc/stdio/fseek.c
112
case SEEK_CUR:
lib/libc/stdio/ftell.c
105
pos = _sseek(fp, (fpos_t)0, SEEK_CUR);
lib/libc/stdio/open_memstream.c
127
case SEEK_CUR:
lib/libc/stdio/open_wmemstream.c
185
case SEEK_CUR:
lib/libc/stdio/stdio.c
146
if (offset != 0 || whence != SEEK_CUR) {
lib/libc/sys/lockf.c
48
fl.l_whence = SEEK_CUR;
lib/libc/tests/stdio/open_memstream2_test.c
179
SEEK_FAIL(-1, SEEK_CUR, EINVAL);
lib/libc/tests/stdio/open_memstream2_test.c
182
SEEK_OK(-1, SEEK_CUR, 2);
lib/libc/tests/stdio/open_memstream2_test.c
186
SEEK_FAIL(2, SEEK_CUR, EOVERFLOW);
lib/libc/tests/stdio/open_wmemstream_test.c
179
SEEK_FAIL(-1, SEEK_CUR, EINVAL);
lib/libc/tests/stdio/open_wmemstream_test.c
182
SEEK_OK(-1, SEEK_CUR, 2);
lib/libc/tests/stdio/open_wmemstream_test.c
186
SEEK_FAIL(2, SEEK_CUR, EOVERFLOW);
lib/libfigpar/figpar.c
163
if ((curpos = lseek(fd, 0, SEEK_CUR)) == -1) {
lib/libfigpar/figpar.c
206
if (lseek(fd, 1, SEEK_CUR) != -1)
lib/libfigpar/figpar.c
247
if ((curpos = lseek(fd, 0, SEEK_CUR)) == -1) {
lib/libfigpar/figpar.c
269
if ((charpos = lseek(fd, 0, SEEK_CUR)) == -1) {
lib/libfigpar/figpar.c
280
if (lseek(fd, -2, SEEK_CUR) == -1) {
lib/libfigpar/figpar.c
292
if (lseek(fd, -2, SEEK_CUR) == -1) {
lib/libfigpar/figpar.c
351
if ((charpos = lseek(fd, 0, SEEK_CUR)) == -1) {
lib/libsecureboot/vectx.c
328
} else if (whence == SEEK_CUR) {
libexec/comsat/comsat.c
214
(void)fseeko(fi, offset, SEEK_CUR);
sbin/ipf/ipfs/ipfs.c
137
pos = lseek(fd, 0, SEEK_CUR);
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/restore/dirs.c
525
(off_t)0, SEEK_CUR) - dirp->dd_size + dirp->dd_loc);
sbin/restore/dirs.c
612
(void) fseek(mf, node.extsize, SEEK_CUR);
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
536
if (fseeko(fp, he - hs, SEEK_CUR) == -1)
stand/ficl/loader.c
631
off = lseek(fd, 0LL, SEEK_CUR);
stand/libsa/bzipfs.c
318
case SEEK_CUR:
stand/libsa/cd9660.c
649
case SEEK_CUR:
stand/libsa/dosfs.c
483
case SEEK_CUR:
stand/libsa/ext2fs.c
855
case SEEK_CUR:
stand/libsa/gzipfs.c
298
case SEEK_CUR:
stand/libsa/lseek.c
102
filepos = (f->f_ops->fo_seek)(f, 0, SEEK_CUR);
stand/libsa/lseek.c
110
case SEEK_CUR:
stand/libsa/lseek.c
129
if (where == SEEK_CUR)
stand/libsa/lseek.c
83
case SEEK_CUR:
stand/libsa/nfs.c
727
case SEEK_CUR:
stand/libsa/pkgfs.c
363
case SEEK_CUR:
stand/libsa/splitfs.c
247
case SEEK_CUR:
stand/libsa/splitfs.c
289
new_pos = lseek(sf->curfd, seek_by, SEEK_CUR);
stand/libsa/tftp.c
718
case SEEK_CUR:
stand/libsa/ufs.c
834
case SEEK_CUR:
stand/libsa/zfs/zfs.c
190
case SEEK_CUR:
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);
sys/compat/linux/linux_socket.c
2541
if ((error = fo_seek(fp, 0, SEEK_CUR, td)) != 0)
sys/compat/linux/linux_socket.c
2554
if ((error = fo_seek(ofp, 0, SEEK_CUR, td)) != 0)
sys/compat/linux/linux_socket.c
2624
if ((error = fo_seek(fp, 0, SEEK_CUR, td)) != 0)
sys/fs/fuse/fuse_vnops.c
608
case SEEK_CUR:
sys/fs/nfsclient/nfs_clrpcops.c
4633
case SEEK_CUR:
sys/fs/nfsclient/nfs_clstate.c
1461
case SEEK_CUR:
sys/fs/smbfs/smbfs_vnops.c
924
case SEEK_CUR:
sys/kern/kern_descrip.c
746
if (flp->l_whence == SEEK_CUR) {
sys/kern/kern_descrip.c
857
if (flp->l_whence == SEEK_CUR) {
sys/kern/kern_lockf.c
440
case SEEK_CUR:
sys/nlm/nlm_advlock.c
1232
} else if (fl->l_whence == SEEK_SET || fl->l_whence == SEEK_CUR) {
sys/sys/unistd.h
118
#define L_INCR SEEK_CUR
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
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
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/cddl/zfs/bin/largest_file.c
91
lseek_ret = lseek(fd, offset, SEEK_CUR);
tests/sys/fifo/fifo_misc.c
117
if (lseek(reader_fd, 1, SEEK_CUR) >= 0) {
tests/sys/file/path_test.c
831
flk.l_whence = SEEK_CUR;
tests/sys/fs/fusefs/locks.cc
403
fl.l_whence = SEEK_CUR;
tests/sys/fs/fusefs/locks.cc
613
fl.l_whence = SEEK_CUR;
tests/sys/fs/fusefs/lseek.cc
277
EXPECT_EQ(offset_initial, lseek(fd, 0, SEEK_CUR));
tests/sys/fs/fusefs/lseek.cc
370
EXPECT_EQ(offset_out, lseek(fd, 0, SEEK_CUR));
tests/sys/fs/fusefs/lseek.cc
444
EXPECT_EQ(offset_out, lseek(fd, 0, SEEK_CUR));
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
203
off = lseek(fd1, 0, SEEK_CUR);
tests/sys/kern/copy_file_range.c
205
off = lseek(fd2, 0, SEEK_CUR);
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/ktrace_test.c
598
off = lseek(fd, 0, SEEK_CUR);
tools/tools/intel-ucode-split/intel-ucode-split.c
176
if (lseek(ifd, resid, SEEK_CUR) == -1)
usr.bin/csplit/csplit.c
328
fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR);
usr.bin/csplit/csplit.c
333
if (fseeko(ofp, -(off_t)nread, SEEK_CUR) != 0)
usr.bin/csplit/csplit.c
341
if (fseeko(ofp, nread - i + 1, SEEK_CUR) != 0)
usr.bin/diff3/diff3.c
625
(void)fseek(fp[i], (long)-nchar, SEEK_CUR);
usr.bin/elfctl/elfctl.c
429
if (lseek(fd, descsz, SEEK_CUR) < 0) {
usr.bin/kdump/kdump.c
470
fseek(stdin, KTR_OFFSET_V0, SEEK_CUR) < 0)
usr.bin/lastcomm/readrec.c
236
SEEK_CUR) == EOF ||
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
750
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/mkuzip.c
435
cpos = lseek(fd, 0, SEEK_CUR);
usr.bin/patch/pch.c
527
fseeko(pfp, -1, SEEK_CUR);
usr.bin/script/script.c
503
if (fseeko(fp, len, SEEK_CUR) == -1)
usr.bin/tail/tail.c
254
if (lseek(fileno(stdin), (off_t)0, SEEK_CUR) == -1 &&
usr.bin/tcopy/tcopy.cc
386
off_t where = lseek(fd, 0UL, SEEK_CUR);
usr.sbin/bhyve/snapshot.c
1098
offset = lseek(data_fd, 0, SEEK_CUR);
usr.sbin/config/main.cc
767
r = fseek(fp, off, SEEK_CUR);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
613
fseek(fd, 32 - strlen(part_name) - 1, SEEK_CUR);
usr.sbin/makefs/cd9660/cd9660_eltorito.c
615
fseek(fd, 32 - strlen(part_type) - 1, SEEK_CUR);
usr.sbin/pmcannotate/pmcannotate.c
549
fseek(fp, nbytes * -1, SEEK_CUR);
usr.sbin/pmcannotate/pmcannotate.c
580
fseek(fp, strlen(buffer) * -1, SEEK_CUR);
usr.sbin/pmcannotate/pmcannotate.c
621
if (fseek(fp, nbytes * -1, SEEK_CUR) == -1)
usr.sbin/pmcannotate/pmcannotate.c
670
if (fseek(fp, nbytes * -1, SEEK_CUR) == -1)
usr.sbin/pmcannotate/pmcannotate.c
675
if (fseek(fp, strlen(buffer) * -1, SEEK_CUR) == -1)