Home
last modified time | relevance | path

Searched refs:SEEK_CUR (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_read_format_rar.c1415 assertEqualInt(0, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST()
1416 assertEqualInt(-1, archive_seek_data(a, -10, SEEK_CUR)); in DEFINE_TEST()
1417 assertEqualInt(10, archive_seek_data(a, 10, SEEK_CUR)); in DEFINE_TEST()
1418 assertEqualInt(-1, archive_seek_data(a, -20, SEEK_CUR)); in DEFINE_TEST()
1419 assertEqualInt(10, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST()
1423 assertEqualInt(file_size + 40, archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST()
1424 assertEqualInt(file_size + 40 + 20, archive_seek_data(a, 20, SEEK_CUR)); in DEFINE_TEST()
1425 assertEqualInt(file_size + 40 + 20 + 20, archive_seek_data(a, 20, SEEK_CUR)); in DEFINE_TEST()
1435 assertEqualInt(file_size + 40, archive_seek_data(a, 40, SEEK_CUR)); in DEFINE_TEST()
1446 assertA(file_size == archive_seek_data(a, 0, SEEK_CUR)); in DEFINE_TEST()
[all …]
/netbsd-src/sys/lib/libsa/
H A Dloadfile_aout.c148 if (lseek(fd, x->a_text - sub, SEEK_CUR) == -1) { in loadfile_aout()
190 if (lseek(fd, x->a_data, SEEK_CUR) == -1) { in loadfile_aout()
240 if (lseek(fd, x->a_syms, SEEK_CUR) == -1) { in loadfile_aout()
287 if (lseek(fd, cc, SEEK_CUR) == -1) { in loadfile_aout()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dlog.c214 off = krb5_storage_seek(sp, 0, SEEK_CUR); in get_header()
280 off = krb5_storage_seek(sp, 0, SEEK_CUR); in seek_prev()
291 new_off = krb5_storage_seek(sp, -8, SEEK_CUR); in seek_prev()
316 new_off = krb5_storage_seek(sp, -(LOG_WRAPPER_SZ + off_len), SEEK_CUR); in seek_prev()
345 off = krb5_storage_seek(sp, 0, SEEK_CUR); in seek_next()
358 new_off = krb5_storage_seek(sp, off_len, SEEK_CUR); in seek_next()
371 new_off = krb5_storage_seek(sp, 0, SEEK_CUR); in seek_next()
406 off = krb5_storage_seek(sp, 0, SEEK_CUR); in get_version_prev()
873 off = krb5_storage_seek(sp, 0, SEEK_CUR); in kadm5_log_flush()
1066 off = krb5_storage_seek(sp, 0, SEEK_CUR); in kadm5_log_delete()
[all …]
/netbsd-src/sys/arch/powerpc/stand/mkbootimage/
H A Dmkbootimage.c369 lenpos = lseek(prep_fd, 0, SEEK_CUR); in prep_build_image()
374 kstart = lseek(prep_fd, 0, SEEK_CUR); in prep_build_image()
379 kend = lseek(prep_fd, 0, SEEK_CUR); in prep_build_image()
514 lseek(rs6000_fd, elf_pad, SEEK_CUR); in rs6000_build_image()
536 lenpos = lseek(rs6000_fd, 0, SEEK_CUR); in rs6000_build_image()
543 kstart = lseek(rs6000_fd, 0, SEEK_CUR); in rs6000_build_image()
548 kend = lseek(rs6000_fd, 0, SEEK_CUR); in rs6000_build_image()
759 lenpos = lseek(bebox_fd, 0, SEEK_CUR); in bebox_build_image()
765 kstart = lseek(bebox_fd, 0, SEEK_CUR); in bebox_build_image()
768 kend = lseek(bebox_fd, 0, SEEK_CUR); in bebox_build_image()
[all...]
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcs_evlog_biosem.c149 fseek(handle,event->eventDataSize,SEEK_CUR); in bios_get_entries_by_pcr()
154 fseek(handle,event->eventDataSize,SEEK_CUR); in bios_get_entries_by_pcr()
268 fseek(handle,event->eventDataSize,SEEK_CUR); in bios_get_entry()
275 fseek(handle,event->eventDataSize,SEEK_CUR); in bios_get_entry()
/netbsd-src/external/gpl3/binutils/dist/bfd/
H A Dhpux-core.c172 bfd_seek (abfd, core_header.len, SEEK_CUR); in hpux_core_core_file_p()
197 if (bfd_seek (abfd, -(file_ptr) core_header.len, SEEK_CUR) != 0) in hpux_core_core_file_p()
255 if (bfd_seek (abfd, (file_ptr) core_header.len, SEEK_CUR) != 0) in hpux_core_core_file_p()
273 bfd_seek (abfd, (file_ptr) core_header.len, SEEK_CUR); in hpux_core_core_file_p()
H A Dbfdio.c286 if (bfd_seek (abfd, 0, SEEK_CUR) != 0) in bfd_read()
329 if (bfd_seek (abfd, 0, SEEK_CUR) != 0) in bfd_write()
472 BFD_ASSERT (direction == SEEK_SET || direction == SEEK_CUR); in bfd_seek()
474 if (direction != SEEK_CUR) in bfd_seek()
477 if (((direction == SEEK_CUR && position == 0) in bfd_seek()
497 if (direction == SEEK_CUR) in bfd_seek()
/netbsd-src/external/gpl3/binutils.old/dist/bfd/
H A Dhpux-core.c173 bfd_seek (abfd, (file_ptr) core_header.len, SEEK_CUR); in hpux_core_core_file_p()
200 if (bfd_seek (abfd, -((file_ptr) core_header.len), SEEK_CUR) != 0) in hpux_core_core_file_p()
258 if (bfd_seek (abfd, (file_ptr) core_header.len, SEEK_CUR) != 0) in hpux_core_core_file_p()
276 bfd_seek (abfd, (file_ptr) core_header.len, SEEK_CUR); in hpux_core_core_file_p()
/netbsd-src/external/gpl3/binutils.old/dist/ld/
H A Dsysdep.h88 #ifndef SEEK_CUR
89 #define SEEK_CUR 1 macro
/netbsd-src/external/gpl3/binutils/dist/ld/
H A Dsysdep.h84 #ifndef SEEK_CUR
85 #define SEEK_CUR 1 macro
/netbsd-src/sys/arch/zaurus/stand/zboot/
H A Dcompat_linux.h41 #undef SEEK_CUR
43 #define SEEK_CUR 1 macro
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dsysdep.h76 #ifndef SEEK_CUR
77 #define SEEK_CUR 1 macro
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dsysdep.h82 #ifndef SEEK_CUR
83 #define SEEK_CUR 1 macro
/netbsd-src/external/gpl3/gdb/dist/zlib/examples/
H A Dgzappend.c210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) in skip()
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
/netbsd-src/common/dist/zlib/examples/
H A Dgzappend.c210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) in skip()
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
/netbsd-src/external/gpl3/binutils.old/dist/zlib/examples/
H A Dgzappend.c210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) in skip()
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
/netbsd-src/external/gpl3/binutils/dist/zlib/examples/
H A Dgzappend.c210 if (lseek(in->fd, (off_t)bypass, SEEK_CUR) == -1) in skip()
291 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
340 end = lseek(gz.fd, 0L, SEEK_CUR) - gz.left; in gzscan()
358 lseek(gz.fd, -1L, SEEK_CUR); in gzscan()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dstore_mem.c52 sp->seek(sp, size, SEEK_CUR); in mem_fetch()
63 sp->seek(sp, size, SEEK_CUR); in mem_store()
85 case SEEK_CUR: in mem_seek()
H A Dstore_emem.c53 sp->seek(sp, size, SEEK_CUR); in emem_fetch()
77 sp->seek(sp, size, SEEK_CUR); in emem_store()
95 case SEEK_CUR: in emem_seek()
/netbsd-src/lib/libc/stdio/
H A Dfseeko.c94 case SEEK_CUR: in __weak_alias()
104 curoff = (*seekfn)(fp->_cookie, (off_t)0, SEEK_CUR); in __weak_alias()
184 curoff = (*seekfn)(fp->_cookie, (off_t)0, SEEK_CUR); in __weak_alias()
/netbsd-src/libexec/ftpd/
H A Dlogutmp.c116 (void)lseek(fd, -(off_t)sizeof(UTMP), SEEK_CUR); in ftpd_login()
149 (void)lseek(fd, -(off_t)sizeof(UTMP), SEEK_CUR); in ftpd_logout()
/netbsd-src/usr.bin/vndcompress/
H A Dofftab.c125 (lseek(offtab->ot_fd, 0, SEEK_CUR) == offtab->ot_fdpos) || in offtab_read_window()
126 ((lseek(offtab->ot_fd, 0, SEEK_CUR) == -1) && (errno == ESPIPE))); in offtab_read_window()
284 assert((lseek(offtab->ot_fd, 0, SEEK_CUR) == offtab->ot_fdpos) ||
285 ((lseek(offtab->ot_fd, 0, SEEK_CUR) == -1) && (errno == ESPIPE)));
363 assert(lseek(offtab->ot_fd, 0, SEEK_CUR) == offtab->ot_fdpos); in offtab_reset_write()
/netbsd-src/tests/lib/libc/stdio/
H A Dt_open_memstream.c81 ATF_CHECK(fseek(fp, -1, SEEK_CUR) == 0); in ATF_TC_BODY()
83 ATF_CHECK(fseek(fp, 5, SEEK_CUR) == 0); in ATF_TC_BODY()
/netbsd-src/usr.bin/make/
H A Darch.c493 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) in ArchStatMember()
511 if (fseek(arch, ((long)size + 1) & ~1, SEEK_CUR) != 0) in ArchStatMember()
679 if (fseek(arch, -(long)sizeof *out_arh, SEEK_CUR) != in ArchFindMember()
717 SEEK_CUR) != 0) { in ArchFindMember()
723 if (fseek(arch, -(long)elen, SEEK_CUR) != 0) { in ArchFindMember()
734 if (fseek(arch, (size + 1) & ~1L, SEEK_CUR) != 0) { in ArchFindMember()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/ps/
H A Dps_utils.c390 offset = lseek(fd, 0, SEEK_CUR); in init_disk_cache()
449 offset = lseek(fd, tmp->pub_data_size, SEEK_CUR); in init_disk_cache()
478 offset = lseek(fd, tmp->blob_size, SEEK_CUR); in init_disk_cache()
486 offset = lseek(fd, tmp->vendor_data_size, SEEK_CUR); in init_disk_cache()

12345678910>>...15