Home
last modified time | relevance | path

Searched refs:SEEK_SET (Results 1 – 25 of 111) sorted by relevance

12345

/linux/tools/testing/selftests/core/
A Dunshare_test.c47 lseek(fd, 0, SEEK_SET); in TEST()
54 lseek(fd, 0, SEEK_SET); in TEST()
61 lseek(fd, 0, SEEK_SET); in TEST()
69 lseek(fd, 0, SEEK_SET); in TEST()
78 lseek(fd, 0, SEEK_SET); in TEST()
/linux/tools/perf/util/
A Dsymbol-minimal.c113 fseek(fp, 0, SEEK_SET); in filename__read_build_id()
133 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
157 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
185 fseek(fp, ehdr.e_phoff, SEEK_SET); in filename__read_build_id()
209 fseek(fp, offset, SEEK_SET); in filename__read_build_id()
307 if (lseek(fd, 0, SEEK_SET)) in fd__is_64_bit()
/linux/tools/testing/selftests/kvm/lib/
A Delf.c79 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get()
140 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load()
182 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
/linux/tools/testing/selftests/sparc64/drivers/
A Dadi-test.c476 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
483 offset_out = seek_adi(fd, offset_in, SEEK_SET); in test4_lseek()
528 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
538 oret = seek_adi(fd, offset, SEEK_SET); in test5_rw_aligned_1byte()
575 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
587 oret = seek_adi(fd, offset, SEEK_SET); in test6_rw_aligned_9434bytes()
629 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
641 oret = seek_adi(fd, offset, SEEK_SET); in test7_rw_aligned_14963bytes()
/linux/tools/testing/selftests/mm/
A Dcompaction_test.c117 lseek(fd, 0, SEEK_SET); in check_compaction()
134 lseek(fd, 0, SEEK_SET); in check_compaction()
178 lseek(fd, 0, SEEK_SET); in set_zero_hugepages()
A Dhugepage-vmemmap.c45 lseek(fd, (unsigned long)addr / pagesize * sizeof(pagemap), SEEK_SET); in virt_to_pfn()
61 lseek(fd, pfn * sizeof(pageflags), SEEK_SET); in check_page_flags()
A Dmkdirty.c110 lseek(mem_fd, (uintptr_t) mem, SEEK_SET); in test_ptrace_write()
140 lseek(mem_fd, (uintptr_t) mem, SEEK_SET); in test_ptrace_write_thp()
/linux/tools/power/acpi/tools/ec/
A Dec_access.c151 lseek(fd, 0, SEEK_SET); in dump_ec()
180 error = lseek(fd, byte_offset, SEEK_SET); in read_ec_val()
196 error = lseek(fd, byte_offset, SEEK_SET); in write_ec_val()
/linux/tools/testing/selftests/thermal/intel/power_floor/
A Dpower_floor_test.c74 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
95 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
/linux/tools/testing/selftests/bpf/prog_tests/
A Dsubprogs.c19 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
21 lseek(ctx->fd, SEEK_SET, 0); in toggle_jit_harden()
/linux/tools/testing/selftests/thermal/intel/workload_hint/
A Dworkload_hint_test.c117 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
138 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main()
/linux/arch/powerpc/boot/
A Dmktree.c110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) { in main()
141 if (lseek(out_fd, 0, SEEK_SET) < 0) { in main()
/linux/tools/testing/selftests/filelock/
A Dofdlocks.c16 fl->l_whence = SEEK_SET; in lock_set()
28 fl->l_whence = SEEK_SET; in lock_get()
/linux/arch/mips/boot/tools/
A Drelocs.c269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
309 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs()
333 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
377 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
418 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0) in remove_relocs()
432 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0) in remove_relocs()
607 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) { in emit_relocs()
/linux/scripts/
A Dextract-sys-certs.pl125 die $vmlinux if (!defined(sysseek(FD, $size_off, SEEK_SET)));
147 die $vmlinux if (!defined(sysseek(FD, $foff, SEEK_SET)));
A Drecordmcount.c92 case SEEK_SET: in ulseek()
249 if (ulseek(offset - 1, SEEK_SET) < 0) in make_nop_x86()
300 if (ulseek(off, SEEK_SET) < 0) in make_nop_arm()
322 if (ulseek(offset, SEEK_SET) < 0) in make_nop_arm64()
/linux/arch/sparc/boot/
A Dpiggyback.c141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset()
161 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset()
/linux/tools/power/acpi/common/
A Dcmfsize.c54 status = fseek(file, current_offset, SEEK_SET); in cm_get_file_size()
/linux/tools/perf/ui/
A Dbrowser.c112 case SEEK_SET: in ui_browser__list_head_seek()
144 case SEEK_SET: in ui_browser__rb_tree_seek()
259 browser->seek(browser, 0, SEEK_SET); in ui_browser__reset_index()
385 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
613 case SEEK_SET: in ui_browser__argv_seek()
/linux/arch/alpha/boot/tools/
A Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET); in main()
228 if (lseek(fd, offset, SEEK_SET) != offset) { in main()
/linux/tools/testing/selftests/proc/
A Dproc-loadavg-001.c64 lseek(fd, 0, SEEK_SET); in main()
/linux/tools/leds/
A Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
/linux/samples/seccomp/
A Duser-trap.c159 if (lseek(mem, req->data.args[0], SEEK_SET) < 0) { in handle_req()
170 if (lseek(mem, req->data.args[1], SEEK_SET) < 0) { in handle_req()
/linux/arch/s390/tools/
A Drelocs.c165 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
191 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
233 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()
/linux/arch/x86/tools/
A Drelocs.c419 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_ehdr()
445 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0) in read_shdrs()
484 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_strtabs()
506 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
522 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_symtabs()
560 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0) in read_relocs()

Completed in 43 milliseconds

12345