| /trueos/contrib/libarchive/libarchive/test/ |
| HD | test_read_format_rar.c | 1226 assertEqualInt(0, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST() 1227 assertEqualInt(-1, archive_seek_data(a, -10, SEEK_CUR)); in DEFINE_TEST() 1228 assertEqualInt(10, archive_seek_data(a, 10, SEEK_CUR)); in DEFINE_TEST() 1229 assertEqualInt(-1, archive_seek_data(a, -20, SEEK_CUR)); in DEFINE_TEST() 1230 assertEqualInt(10, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST() 1234 assertEqualInt(file_size + 40, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST() 1235 assertEqualInt(file_size + 40 + 20, archive_seek_data(a, 20, SEEK_CUR)); in DEFINE_TEST() 1236 assertEqualInt(file_size + 40 + 20 + 20, archive_seek_data(a, 20, SEEK_CUR)); in DEFINE_TEST() 1246 assertEqualInt(file_size + 40, archive_seek_data(a, 40, SEEK_CUR)); in DEFINE_TEST() 1257 assertA(file_size == archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST() [all …]
|
| /trueos/lib/libstand/ |
| HD | lseek.c | 87 case SEEK_CUR: in lseek() 107 if ((filepos = (f->f_ops->fo_seek)(f, (off_t)0, SEEK_CUR)) == -1) in lseek() 114 case SEEK_CUR: in lseek() 133 if (where == SEEK_CUR) in lseek()
|
| /trueos/lib/libfigpar/ |
| HD | figpar.c | 162 curpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config() 206 if (lseek(fd, 1, SEEK_CUR) != -1) in parse_config() 247 curpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config() 269 charpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config() 280 error = (int)lseek(fd, -2, SEEK_CUR); in parse_config() 293 error = (int)lseek(fd, -2, SEEK_CUR); in parse_config() 354 charpos = lseek(fd, 0, SEEK_CUR) - 1; in parse_config()
|
| /trueos/crypto/heimdal/lib/kadm5/ |
| HD | log.c | 68 krb5_storage_seek(sp, -4, SEEK_CUR); in kadm5_log_get_version_fd() 333 off = krb5_storage_seek (sp, 0, SEEK_CUR); in kadm5_log_delete() 337 len = krb5_storage_seek (sp, 0, SEEK_CUR) - off; in kadm5_log_delete() 338 krb5_storage_seek(sp, -(len + 4), SEEK_CUR); in kadm5_log_delete() 342 krb5_storage_seek(sp, len, SEEK_CUR); in kadm5_log_delete() 413 off = krb5_storage_seek (sp, 0, SEEK_CUR); in kadm5_log_rename() 419 len = krb5_storage_seek (sp, 0, SEEK_CUR) - off; in kadm5_log_rename() 421 krb5_storage_seek(sp, -(len + 4), SEEK_CUR); in kadm5_log_rename() 426 krb5_storage_seek(sp, len, SEEK_CUR); in kadm5_log_rename() 468 off = krb5_storage_seek(sp, 0, SEEK_CUR); in kadm5_log_replay_rename() [all …]
|
| /trueos/contrib/libarchive/libarchive/ |
| HD | archive_read_open_file.c | 154 if (fseeko(mine->f, skip, SEEK_CUR) != 0) in file_skip() 156 if (_fseeki64(mine->f, skip, SEEK_CUR) != 0) in file_skip() 158 if (fseek(mine->f, skip, SEEK_CUR) != 0) in file_skip()
|
| HD | archive_read_open_fd.c | 153 if (((old_offset = lseek(mine->fd, 0, SEEK_CUR)) >= 0) && in file_skip() 154 ((new_offset = lseek(mine->fd, skip, SEEK_CUR)) >= 0)) in file_skip()
|
| /trueos/bin/pax/ |
| HD | ar_io.c | 183 else if ((lseek(arfd, (off_t)0L, SEEK_CUR) == -1) && (errno == ESPIPE)) in ar_open() 476 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || in ar_set_wr() 635 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_write() 771 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) in ar_rdsync() 774 if (lseek(arfd, mpos, SEEK_CUR) < 0) in ar_rdsync() 832 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) >= 0) { in ar_fow() 900 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) { in ar_rev()
|
| /trueos/tools/regression/lib/libc/stdio/ |
| HD | test-open_memstream.c | 184 SEEK_FAIL(-1, SEEK_CUR, EINVAL); in seek_tests() 187 SEEK_OK(-1, SEEK_CUR, 2); in seek_tests() 191 SEEK_FAIL(2, SEEK_CUR, EOVERFLOW); in seek_tests()
|
| HD | test-open_wmemstream.c | 184 SEEK_FAIL(-1, SEEK_CUR, EINVAL); in seek_tests() 187 SEEK_OK(-1, SEEK_CUR, 2); in seek_tests() 191 SEEK_FAIL(2, SEEK_CUR, EOVERFLOW); in seek_tests()
|
| /trueos/contrib/binutils/binutils/ |
| HD | sysdep.h | 116 #ifndef SEEK_CUR 117 #define SEEK_CUR 1 macro
|
| /trueos/crypto/heimdal/lib/krb5/ |
| HD | store_mem.c | 50 sp->seek(sp, size, SEEK_CUR); in mem_fetch() 61 sp->seek(sp, size, SEEK_CUR); in mem_store() 83 case SEEK_CUR: in mem_seek()
|
| HD | store_emem.c | 51 sp->seek(sp, size, SEEK_CUR); in emem_fetch() 74 sp->seek(sp, size, SEEK_CUR); in emem_store() 92 case SEEK_CUR: in emem_seek()
|
| /trueos/contrib/binutils/bfd/ |
| HD | sysdep.h | 107 #ifndef SEEK_CUR 108 #define SEEK_CUR 1 macro
|
| /trueos/sys/sys/ |
| HD | unistd.h | 108 #define SEEK_CUR 1 /* set file offset to current plus offset */ macro 119 #define L_INCR SEEK_CUR
|
| /trueos/lib/libc/stdio/ |
| HD | ftell.c | 105 pos = _sseek(fp, (fpos_t)0, SEEK_CUR); in _ftello() 132 (pos = _sseek(fp, (fpos_t)0, SEEK_CUR)) == -1) in _ftello()
|
| /trueos/lib/libc/gen/ |
| HD | pututxline.c | 99 ret = fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR); in utx_active_add() 163 if (fseeko(fp, -(off_t)sizeof(fe), SEEK_CUR) == -1) in utx_active_remove() 220 ret = fseeko(fp, -(off_t)sizeof fe, SEEK_CUR); in utx_lastlogin_add()
|
| /trueos/contrib/netbsd-tests/lib/libc/stdio/ |
| HD | t_fflush.c | 123 ATF_REQUIRE(fseek(f, 0, SEEK_CUR) == 0); in ATF_TC_BODY() 130 ATF_REQUIRE(lseek(fd, 0, SEEK_CUR) == 3); in ATF_TC_BODY()
|
| HD | t_fmemopen.c | 484 ATF_CHECK(fseeko(fp, (off_t)0, SEEK_CUR) == 0); in ATF_TC_BODY() 488 ATF_CHECK(fseeko(fp, (off_t)-1, SEEK_CUR) == -1); in ATF_TC_BODY() 493 ATF_CHECK(fseeko(fp, (off_t)1, SEEK_CUR) == 0); in ATF_TC_BODY() 498 ATF_CHECK(fseeko(fp, (off_t)1, SEEK_CUR) == -1); in ATF_TC_BODY() 535 ATF_CHECK(fseeko(fp, (off_t)0, SEEK_CUR) == 0); in ATF_TC_BODY() 540 ATF_CHECK(fseeko(fp, (off_t)1, SEEK_CUR) == 0); in ATF_TC_BODY() 545 ATF_CHECK(fseeko(fp, (off_t)1, SEEK_CUR) == -1); in ATF_TC_BODY() 550 ATF_CHECK(fseeko(fp, (off_t)-1, SEEK_CUR) == 0); in ATF_TC_BODY() 555 ATF_CHECK(fseeko(fp, (off_t)-1, SEEK_CUR) == -1); in ATF_TC_BODY()
|
| /trueos/usr.sbin/pmcannotate/ |
| HD | pmcannotate.c | 524 fseek(fp, nbytes * -1, SEEK_CUR); in general_printasm() 555 fseek(fp, strlen(buffer) * -1, SEEK_CUR); in general_printc() 596 if (fseek(fp, nbytes * -1, SEEK_CUR) == -1) in printblock() 645 if (fseek(fp, nbytes * -1, SEEK_CUR) == -1) in printblock() 650 if (fseek(fp, strlen(buffer) * -1, SEEK_CUR) == -1) in printblock()
|
| /trueos/contrib/binutils/ld/ |
| HD | ld.h | 28 #ifndef SEEK_CUR 29 #define SEEK_CUR 1 macro
|
| /trueos/release/picobsd/tinyware/help/ |
| HD | help.c | 107 if (fseek(fd, (long)n, SEEK_CUR)<0) return 1; in display() 149 if (fseek(fd, (long)n, SEEK_CUR)<0) break; in display()
|
| /trueos/contrib/bmake/ |
| HD | arch.c | 729 fseek(arch, -elen, SEEK_CUR); in ArchStatMember() 740 fseek(arch, (size + 1) & ~1, SEEK_CUR); in ArchStatMember() 960 fseek(arch, -sizeof(struct ar_hdr), SEEK_CUR); in ArchFindMember() 990 fseek(arch, -sizeof(struct ar_hdr) - elen, SEEK_CUR); in ArchFindMember() 993 fseek(arch, -elen, SEEK_CUR); in ArchFindMember() 1008 fseek(arch, (size + 1) & ~1, SEEK_CUR); in ArchFindMember()
|
| /trueos/contrib/llvm/tools/lldb/source/Host/common/ |
| HD | File.cpp | 473 result = ::lseek (m_descriptor, offset, SEEK_CUR); in SeekFromCurrent() 485 result = ::fseek(m_stream, offset, SEEK_CUR); in SeekFromCurrent() 708 long cur = ::lseek(m_descriptor, 0, SEEK_CUR); in Read() 795 long cur = ::lseek(m_descriptor, 0, SEEK_CUR); in Write() 797 long after = ::lseek(m_descriptor, 0, SEEK_CUR); in Write()
|
| /trueos/usr.bin/csplit/ |
| HD | csplit.c | 329 fseeko(ofp, -(off_t)sizeof(buf), SEEK_CUR); in toomuch() 334 if (fseeko(ofp, -(off_t)nread, SEEK_CUR) != 0) in toomuch() 342 if (fseeko(ofp, nread - i + 1, SEEK_CUR) != 0) in toomuch()
|
| /trueos/cddl/compat/opensolaris/misc/ |
| HD | mnttab.c | 201 nfs = (int)lseek(fileno(fp), 0, SEEK_CUR); in getmntent() 213 if (lseek(fileno(fp), 1, SEEK_CUR) == -1) in getmntent()
|