/freebsd-current/stand/libsa/ |
H A D | lseek.c | 83 case SEEK_CUR: 102 filepos = (f->f_ops->fo_seek)(f, 0, SEEK_CUR); 110 case SEEK_CUR: 129 if (where == SEEK_CUR)
|
/freebsd-current/lib/libfigpar/ |
H A D | figpar.c | 164 curpos = lseek(fd, 0, SEEK_CUR) - 1; 208 if (lseek(fd, 1, SEEK_CUR) != -1) 249 curpos = lseek(fd, 0, SEEK_CUR) - 1; 271 charpos = lseek(fd, 0, SEEK_CUR) - 1; 282 error = (int)lseek(fd, -2, SEEK_CUR); 295 error = (int)lseek(fd, -2, SEEK_CUR); 356 charpos = lseek(fd, 0, SEEK_CUR) - 1;
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/ |
H A D | stride_dd.c | 159 if (lseek(ofd, seek * bsize, SEEK_CUR) == -1) { 198 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { 202 if (lseek(ofd, (stride - 1) * bsize, SEEK_CUR) == -1) {
|
H A D | mmapwrite.c | 79 if ((bytes_written = lseek(fd, page_size, SEEK_CUR)) == -1) {
|
/freebsd-current/lib/libc/sys/ |
H A D | lockf.c | 48 fl.l_whence = SEEK_CUR;
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_read_open_file.c | 155 if (lseek(fileno(mine->f), skip, SEEK_CUR) < 0) 157 if (_fseeki64(mine->f, skip, SEEK_CUR) != 0) 159 if (fseeko(mine->f, skip, SEEK_CUR) != 0) 161 if (fseek(mine->f, skip, SEEK_CUR) != 0)
|
H A D | archive_read_open_fd.c | 154 if (((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0) && 155 ((new_offset = lseek(mine->fd, skip, SEEK_CUR)) >= 0))
|
/freebsd-current/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_open_memstream.c | 81 ATF_CHECK(fseek(fp, -1, SEEK_CUR) == 0); 83 ATF_CHECK(fseek(fp, 5, SEEK_CUR) == 0);
|
H A D | t_fflush.c | 123 ATF_REQUIRE(fseek(f, 0, SEEK_CUR) == 0); 130 ATF_REQUIRE(lseek(fd, 0, SEEK_CUR) == 3);
|
/freebsd-current/sys/sys/ |
H A D | unistd.h | 107 #define SEEK_CUR 1 /* set file offset to current plus offset */ macro 118 #define L_INCR SEEK_CUR
|
/freebsd-current/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_rar.c | 1412 /* Use various combinations of SEEK_SET, SEEK_CUR, and SEEK_END */ 1415 assertEqualInt(0, archive_seek_data(a, 0, SEEK_CUR)); 1416 assertEqualInt(-1, archive_seek_data(a, -10, SEEK_CUR)); 1417 assertEqualInt(10, archive_seek_data(a, 10, SEEK_CUR)); 1418 assertEqualInt(-1, archive_seek_data(a, -20, SEEK_CUR)); 1419 assertEqualInt(10, archive_seek_data(a, 0, SEEK_CUR)); 1423 assertEqualInt(file_size + 40, archive_seek_data(a, 0, SEEK_CUR)); 1424 assertEqualInt(file_size + 40 + 20, archive_seek_data(a, 20, SEEK_CUR)); 1425 assertEqualInt(file_size + 40 + 20 + 20, archive_seek_data(a, 20, SEEK_CUR)); 1435 assertEqualInt(file_size + 40, archive_seek_data(a, 40, SEEK_CUR)); [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | store_mem.c | 50 sp->seek(sp, size, SEEK_CUR); 61 sp->seek(sp, size, SEEK_CUR); 83 case SEEK_CUR:
|
H A D | store_emem.c | 51 sp->seek(sp, size, SEEK_CUR); 74 sp->seek(sp, size, SEEK_CUR); 92 case SEEK_CUR:
|
/freebsd-current/lib/libc/tests/stdio/ |
H A D | open_wmemstream_test.c | 179 SEEK_FAIL(-1, SEEK_CUR, EINVAL); 182 SEEK_OK(-1, SEEK_CUR, 2); 186 SEEK_FAIL(2, SEEK_CUR, EOVERFLOW);
|
H A D | open_memstream2_test.c | 179 SEEK_FAIL(-1, SEEK_CUR, EINVAL); 182 SEEK_OK(-1, SEEK_CUR, 2); 186 SEEK_FAIL(2, SEEK_CUR, EOVERFLOW);
|
/freebsd-current/crypto/heimdal/lib/kadm5/ |
H A D | send_recv.c | 48 len = krb5_storage_seek(sp, 0, SEEK_CUR);
|
H A D | log.c | 68 krb5_storage_seek(sp, -4, SEEK_CUR); 333 off = krb5_storage_seek (sp, 0, SEEK_CUR); 337 len = krb5_storage_seek (sp, 0, SEEK_CUR) - off; 338 krb5_storage_seek(sp, -(len + 4), SEEK_CUR); 342 krb5_storage_seek(sp, len, SEEK_CUR); 413 off = krb5_storage_seek (sp, 0, SEEK_CUR); 419 len = krb5_storage_seek (sp, 0, SEEK_CUR) - off; 421 krb5_storage_seek(sp, -(len + 4), SEEK_CUR); 426 krb5_storage_seek(sp, len, SEEK_CUR); 468 off = krb5_storage_seek(sp, 0, SEEK_CUR); [all...] |
/freebsd-current/tests/sys/cddl/zfs/bin/ |
H A D | largest_file.c | 91 lseek_ret = lseek(fd, offset, SEEK_CUR);
|
/freebsd-current/bin/dd/ |
H A D | position.c | 94 if (lseek(in.fd, seek_offset(&in), SEEK_CUR) == -1 && 164 if (lseek(out.fd, seek_offset(&out), SEEK_CUR) == -1 &&
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/file/ |
H A D | largest_file.c | 107 llseek_ret = lseek64(fd, offset, SEEK_CUR);
|
/freebsd-current/lib/libc/stdio/ |
H A D | ftell.c | 105 pos = _sseek(fp, (fpos_t)0, SEEK_CUR);
|
/freebsd-current/lib/libc/gen/ |
H A D | pututxline.c | 98 ret = fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR); 162 if (fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR) == -1) 219 ret = fseeko(fp, -(off_t)sizeof fe, SEEK_CUR);
|
/freebsd-current/bin/pax/ |
H A D | ar_io.c | 177 else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE)) 460 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || 619 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) 755 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) 758 if (lseek(arfd, mpos, SEEK_CUR) < 0) 816 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) { 884 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) {
|
/freebsd-current/contrib/bmake/ |
H A D | arch.c | 541 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) 559 if (fseek(arch, ((long)size + 1) & ~1, SEEK_CUR) != 0) 727 if (fseek(arch, -(long)sizeof *out_arh, SEEK_CUR) != 765 SEEK_CUR) != 0) { 771 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) { 782 if (fseek(arch, (size + 1) & ~1L, SEEK_CUR) != 0) {
|
/freebsd-current/contrib/elftoolchain/libpe/ |
H A D | libpe_dos.c | 240 SEEK_CUR) < 0) { 357 if (lseek(pe->pe_fd, (off_t) sizeof(PE_DosHdr), SEEK_CUR) < 383 if (lseek(pe->pe_fd, (off_t) pe->pe_stub_ex, SEEK_CUR) < 0) {
|