Searched refs:lseek (Results 26 - 50 of 61) sorted by relevance

123

/linux-master/tools/perf/util/
H A Dhisi-ptt.c110 data_offset = lseek(fd, 0, SEEK_CUR);
H A Dheader.c748 * Do a first pass to count number of pmu to avoid lseek so this
2415 if (lseek(input, orig_offset, SEEK_SET) == (off_t)-1)
3482 if (lseek(fd, section->offset, SEEK_SET) == (off_t)-1) {
3483 pr_debug("Failed to lseek to %" PRIu64 " offset for feature "
3575 (*p)->offset = lseek(ff->fd, 0, SEEK_CUR);
3598 lseek(ff->fd, (*p)->offset, SEEK_SET);
3602 (*p)->size = lseek(ff->fd, 0, SEEK_CUR) - (*p)->offset;
3634 lseek(fd, sec_start + sec_size, SEEK_SET);
3641 lseek(fd, sec_start, SEEK_SET);
3691 lseek(f
[all...]
H A Dtrace-event-info.c47 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR);
663 tdata->size = lseek(output_fd, 0, SEEK_CUR);
H A Dtrace-event-read.c163 lseek(input_fd, size, SEEK_CUR);
H A Dsymbol-minimal.c307 if (lseek(fd, 0, SEEK_SET))
H A Ddata.c452 if (lseek(data->file.fd, pos, SEEK_SET) == (off_t)-1) {
454 pr_debug("Failed to lseek to %zu: %s",
H A Dprobe-file.c1014 ret = lseek(pcache->fd, 0, SEEK_SET);
/linux-master/tools/testing/selftests/net/
H A Dtcp_fastopen_backup_key.c59 lseek(proc_fd, 0, SEEK_SET);
84 lseek(proc_fd, 0, SEEK_SET);
/linux-master/tools/testing/selftests/arm64/mte/
H A Dmte_common_util.c190 lseek(fd, 0, SEEK_SET);
217 lseek(fd, 0, SEEK_SET);
/linux-master/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c297 lseek(fd, (unsigned long)ptr, SEEK_SET);
308 lseek(fd, (unsigned long)ptr, SEEK_SET);
/linux-master/arch/powerpc/boot/
H A Daddnote.c222 i = lseek(fd, (long) 0, SEEK_SET);
224 perror("lseek");
/linux-master/arch/x86/entry/vdso/
H A Dvdso2c.c194 tmp_len = lseek(fd, 0, SEEK_END);
196 err(1, "lseek");
/linux-master/arch/sparc/vdso/
H A Dvdso2c.c168 tmp_len = lseek(fd, 0, SEEK_END);
170 err(1, "lseek");
/linux-master/tools/lib/bpf/
H A Dzip.c209 size = lseek(fd, 0, SEEK_END);
/linux-master/tools/testing/selftests/mm/
H A Dhugetlb-read-hwpoison.c81 if (lseek(fd, offset, SEEK_SET) < 0) {
H A Dksm_functional_tests.c577 lseek(mem_fd, (uintptr_t) map + i, SEEK_SET);
/linux-master/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c299 ret = lseek(fd, offset, whence);
309 (void)lseek(fd, 0, SEEK_END);
/linux-master/arch/mips/boot/
H A Delf2ecoff.c74 if (lseek(in, offset, SEEK_SET) < 0) {
75 perror("copy: lseek");
138 if ((off = lseek(file, offset, SEEK_SET)) < 0) {
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmigrate_reuseport.c167 err = lseek(fd, 0, SEEK_SET);
168 if (!ASSERT_OK(err, "lseek"))
/linux-master/usr/
H A Dgen_init_cpio.c317 if (lseek(fd, 0, SEEK_SET) < 0)
/linux-master/tools/testing/selftests/exec/
H A Dexecveat.c276 lseek(fd, 10, SEEK_SET);
/linux-master/tools/testing/selftests/nolibc/
H A Dnolibc-test.c945 CASE_TEST(lseek_m1); EXPECT_SYSER(1, lseek(-1, 0, SEEK_SET), -1, EBADF); break;
946 CASE_TEST(lseek_0); EXPECT_SYSER(1, lseek(0, 0, SEEK_SET), -1, ESPIPE); break;
1103 lseek(fd, 0, SEEK_SET);
/linux-master/tools/perf/
H A Dbuiltin-record.c477 return lseek(trace_fd, 0, SEEK_CUR);
482 lseek(trace_fd, pos, SEEK_SET);
722 file_offset = lseek(fd, 0, SEEK_CUR);
1783 data->file.size = lseek(perf_data__fd(data), 0, SEEK_CUR);
1786 data->dir.files[i].size = lseek(data->dir.files[i].fd, 0, SEEK_CUR);
H A Dbuiltin-inject.c250 offset = lseek(inject->output.file.fd, 0, SEEK_CUR);
1292 if (lseek(gs->tmp_fd, 0, SEEK_SET))
2092 lseek(fd, output_data_offset, SEEK_SET);
/linux-master/fs/
H A Dread_write.c43 * vfs_setpos - update the file offset for lseek
95 * Here we special-case the lseek(fd, 0, SEEK_CUR)
98 * write() or lseek() might have altered it
311 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
317 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence)

Completed in 261 milliseconds

123