| /linux/tools/testing/selftests/core/ |
| H A D | unshare_test.c | 47 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/arch/sparc/boot/ |
| H A D | piggyback.c | 141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset() 161 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset() 218 if (lseek(image, offset, 0) < 0) in main() 239 if (lseek(image, 4, 0) < 0) in main() 253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main()
|
| /linux/tools/testing/selftests/liveupdate/ |
| H A D | liveupdate.c | 197 ASSERT_EQ(lseek(mem_fd, 0, SEEK_SET), 0); in TEST_F() 237 ASSERT_EQ(lseek(mem_fd1, 0, SEEK_SET), 0); in TEST_F() 242 ASSERT_EQ(lseek(mem_fd2, 0, SEEK_SET), 0); in TEST_F() 294 ASSERT_EQ(lseek(mem_fd_data1, 0, SEEK_SET), 0); in TEST_F() 299 ASSERT_EQ(lseek(mem_fd_data2, 0, SEEK_SET), 0); in TEST_F() 303 ASSERT_EQ(lseek(mem_fd_empty1, 0, SEEK_SET), 0); in TEST_F() 306 ASSERT_EQ(lseek(mem_fd_empty2, 0, SEEK_SET), 0); in TEST_F()
|
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 79 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get() 140 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load() 181 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
|
| /linux/tools/power/cpupower/utils/helpers/ |
| H A D | msr.c | 35 if (lseek(fd, idx, SEEK_CUR) == -1) in read_msr() 64 if (lseek(fd, idx, SEEK_CUR) == -1) in write_msr()
|
| /linux/tools/power/acpi/tools/ec/ |
| H A D | ec_access.c | 151 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/powerpc/papr_vpd/ |
| H A D | papr_vpd.c | 48 size = lseek(fd, 0, SEEK_END); in dev_papr_vpd_get_handle_all() 101 FAIL_IF(consumed != lseek(fd, 0, SEEK_END)); in dev_papr_vpd_get_handle_byte_at_a_time() 195 const off_t size = lseek(fd, 0, SEEK_END); in papr_vpd_reread() 280 size = lseek(fd, 0, SEEK_END); in papr_vpd_system_loc_code()
|
| /linux/tools/testing/selftests/thermal/intel/power_floor/ |
| H A D | power_floor_test.c | 74 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/ |
| H A D | subprogs.c | 19 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/mm/ |
| H A D | compaction_test.c | 126 lseek(fd, 0, SEEK_SET); in check_compaction() 143 lseek(fd, 0, SEEK_SET); in check_compaction() 187 lseek(fd, 0, SEEK_SET); in set_zero_hugepages()
|
| H A D | hugepage-vmemmap.c | 45 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()
|
| H A D | mkdirty.c | 110 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/testing/selftests/thermal/intel/workload_hint/ |
| H A D | workload_hint_test.c | 138 if ((lseek(fd, 0L, SEEK_SET)) < 0) { in main() 159 if ((lseek(fd, 0L, SEEK_SET)) < 0) {
|
| /linux/arch/powerpc/boot/ |
| H A D | mktree.c | 110 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/arm64/mte/ |
| H A D | check_user_mem.c | 54 lseek(fd, 0, 0); in check_usermem_access_fault() 84 lseek(fd, 0, 0); in check_usermem_access_fault()
|
| /linux/tools/perf/util/ |
| H A D | symbol-minimal.c | 153 lseek(fd, elf32 ? hdrs.ehdr32.e_phoff : hdrs.ehdr64.e_phoff, SEEK_SET); in filename__read_build_id() 189 lseek(fd, elf32 ? hdrs.phdr32[i].p_offset : hdrs.phdr64[i].p_offset, SEEK_SET); in filename__read_build_id() 287 if (lseek(fd, 0, SEEK_SET)) in fd__is_64_bit()
|
| /linux/arch/alpha/boot/tools/ |
| H A D | objstrip.c | 170 lseek(fd, elf->e_phoff, SEEK_SET); in main() 228 if (lseek(fd, offset, SEEK_SET) != offset) { in main()
|
| /linux/drivers/pci/hotplug/ |
| H A D | cpqphp_sysfs.c | 153 static loff_t lseek(struct file *file, loff_t off, int whence) in lseek() function 178 .llseek = lseek,
|
| /linux/tools/bootconfig/ |
| H A D | main.c | 199 if (lseek(fd, -(off_t)BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd() 209 if (lseek(fd, -(off_t)BOOTCONFIG_FOOTER_SIZE, SEEK_END) < 0) in load_xbc_from_initrd() 226 if (lseek(fd, stat.st_size - (size + BOOTCONFIG_FOOTER_SIZE), in load_xbc_from_initrd()
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-net-dev-lseek.c | 53 assert(lseek(fd, 0, SEEK_SET) == 0); in main()
|
| H A D | proc-loadavg-001.c | 64 lseek(fd, 0, SEEK_SET); in main()
|
| H A D | .gitignore | 10 /proc-net-dev-lseek
|
| /linux/tools/leds/ |
| H A D | led_hw_brightness_mon.c | 73 ret = lseek(pollfd.fd, 0, SEEK_SET); in main()
|
| /linux/samples/seccomp/ |
| H A D | user-trap.c | 159 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/tools/power/cpupower/debug/i386/ |
| H A D | powernow-k8-decode.c | 42 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR); in get_fidvid()
|