Searched refs:lseek (Results 1 - 25 of 61) sorted by last modified time

123

/linux-master/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c48 size = lseek(fd, 0, SEEK_END);
101 FAIL_IF(consumed != lseek(fd, 0, SEEK_END));
195 const off_t size = lseek(fd, 0, SEEK_END);
280 size = lseek(fd, 0, SEEK_END);
/linux-master/tools/testing/selftests/net/
H A Dtls.c1415 ASSERT_EQ(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/mm/
H A Dksm_functional_tests.c577 lseek(mem_fd, (uintptr_t) map + i, SEEK_SET);
H A Dcompaction_test.c117 lseek(fd, 0, SEEK_SET);
127 lseek(fd, 0, SEEK_SET);
139 lseek(fd, 0, SEEK_SET);
H A Dhugepage-vmemmap.c59 lseek(fd, (unsigned long)addr / pagesize * sizeof(pagemap), SEEK_SET);
75 lseek(fd, pfn * sizeof(pageflags), SEEK_SET);
/linux-master/tools/perf/util/
H A Dsymbol-elf.c1956 if (lseek(to, to_offs, SEEK_SET) != to_offs)
1959 if (lseek(from, from_offs, SEEK_SET) != from_offs)
H A Dsession.c1703 lseek(fd, file_offset, SEEK_SET);
1720 lseek(fd, file_offset + event->header.size, SEEK_SET);
1800 if (lseek(fd, file_offset, SEEK_SET) == (off_t)-1 ||
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 Dsymbol-minimal.c307 if (lseek(fd, 0, SEEK_SET))
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 Dhisi-ptt.c110 data_offset = lseek(fd, 0, SEEK_CUR);
H A Dcs-etm.c2826 data_offset = lseek(fd, 0, SEEK_CUR);
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 Dintel-pt.c3615 data_offset = lseek(fd, 0, SEEK_CUR);
/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/tools/testing/selftests/landlock/
H A Dfs_test.c862 ASSERT_LE(0, lseek(reg_fd, 0, SEEK_SET));
/linux-master/samples/seccomp/
H A Duser-trap.c159 if (lseek(mem, req->data.args[0], SEEK_SET) < 0) {
170 if (lseek(mem, req->data.args[1], SEEK_SET) < 0) {
/linux-master/tools/testing/selftests/kvm/lib/
H A Delf.c79 offset_rv = lseek(fd, 0, SEEK_SET);
140 offset_rv = lseek(fd, offset, SEEK_SET);
182 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET);
/linux-master/usr/
H A Dgen_init_cpio.c317 if (lseek(fd, 0, SEEK_SET) < 0)
/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/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/include/nolibc/
H A Dsys.h589 * off_t lseek(int fd, off_t offset, int whence);
603 off_t lseek(int fd, off_t offset, int whence) function
/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 343 milliseconds

123