/kernel/liteos_m/testsuites/unittest/posix/src/fs/api/ |
H A D | posix_fs_lseek_test.c | 38 * @tc.name lseek 50 off = lseek(fd, 0, SEEK_SET); /* 0, offset distance */ 64 * @tc.name lseek 76 off = lseek(fd, 0, SEEK_CUR); /* 0, offset distance */ 90 * @tc.name lseek 102 off = lseek(fd, 0, SEEK_END); /* 0, offset distance */ 116 * @tc.name lseek 121 off_t off = lseek(-1, 0, SEEK_SET); /* -1, bad fd 0, offset distance */ 130 * @tc.name lseek 135 off_t off = lseek(ERROR_CONFIG_NFILE_DESCRIPTOR [all...] |
/kernel/linux/linux-5.10/arch/sparc/boot/ |
H A D | piggyback.c | 141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset() 142 die("lseek"); in get_hdrs_offset() 157 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset() 158 die("lseek"); in get_hdrs_offset() 214 if (lseek(image, offset, 0) < 0) in main() 215 die("lseek"); in main() 235 if (lseek(image, 4, 0) < 0) in main() 236 die("lseek"); in main() 249 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main() 250 die("lseek"); in main() [all...] |
/kernel/linux/linux-6.6/arch/sparc/boot/ |
H A D | piggyback.c | 141 if (lseek(kernelfd, 0, SEEK_SET) < 0) in get_hdrs_offset() 142 die("lseek"); in get_hdrs_offset() 161 if (lseek(kernelfd, offset, SEEK_SET) < 0) in get_hdrs_offset() 162 die("lseek"); in get_hdrs_offset() 218 if (lseek(image, offset, 0) < 0) in main() 219 die("lseek"); in main() 239 if (lseek(image, 4, 0) < 0) in main() 240 die("lseek"); in main() 253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0) in main() 254 die("lseek"); in main() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | compaction_test.c | 112 lseek(fd, 0, SEEK_SET); in check_compaction() 121 lseek(fd, 0, SEEK_SET); in check_compaction() 143 lseek(fd, 0, SEEK_SET); in check_compaction()
|
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | elf.c | 80 offset_rv = lseek(fd, 0, SEEK_SET); in elfhdr_get() 141 offset_rv = lseek(fd, offset, SEEK_SET); in kvm_vm_elf_load() 184 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
|
/kernel/linux/linux-6.6/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() 182 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
|
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | compaction_test.c | 112 lseek(fd, 0, SEEK_SET); in check_compaction() 121 lseek(fd, 0, SEEK_SET); in check_compaction() 143 lseek(fd, 0, SEEK_SET); in check_compaction()
|
H A D | hugepage-vmemmap.c | 59 lseek(fd, (unsigned long)addr / pagesize * sizeof(pagemap), SEEK_SET); in virt_to_pfn() 75 lseek(fd, pfn * sizeof(pageflags), SEEK_SET); in check_page_flags()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/ |
H A D | msr.c | 36 if (lseek(fd, idx, SEEK_CUR) == -1) in read_msr() 65 if (lseek(fd, idx, SEEK_CUR) == -1) in write_msr()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/arm64/mte/ |
H A D | check_user_mem.c | 37 lseek(fd, 0, 0); in check_usermem_access_fault() 61 lseek(fd, 0, 0); in check_usermem_access_fault()
|
/kernel/uniproton/src/fs/vfs/ |
H A D | vfs_fs.c | 267 if ((file->fFops == NULL) || (file->fFops->lseek == NULL)) { in OsVfsLseek() 270 ret = file->fFops->lseek(file, off, whence); in OsVfsLseek() 687 savepos = lseek(fd, 0, SEEK_CUR); in OsVfsPread() 693 pos = lseek(fd, off, SEEK_SET); in OsVfsPread() 700 pos = lseek(fd, savepos, SEEK_SET); in OsVfsPread() 729 savepos = lseek(fd, 0, SEEK_CUR); in OsVfsPwrite() 735 pos = lseek(fd, off, SEEK_SET); in OsVfsPwrite() 742 pos = lseek(fd, savepos, SEEK_SET); in OsVfsPwrite()
|
/kernel/liteos_m/components/fs/vfs/ |
H A D | vfs_fs.c | 667 off_t lseek(int fd, off_t off, int whence) in lseek() function 677 if ((file->fFops == NULL) || (file->fFops->lseek == NULL)) { in lseek() 680 ret = file->fFops->lseek(file, off, whence); in lseek() 687 FUNC_ALIAS(lseek, _lseek, (int fd, off_t off, int whence), off_t); 1357 savepos = lseek(fd, 0, SEEK_CUR); in pread() 1363 pos = lseek(fd, off, SEEK_SET); in pread() 1370 pos = lseek(fd, savepos, SEEK_SET); in pread() 1404 savepos = lseek(fd, 0, SEEK_CUR); in pwrite() 1410 pos = lseek(fd, off, SEEK_SET); in pwrite() 1417 pos = lseek(f in pwrite() [all...] |
/kernel/linux/linux-5.10/tools/bootconfig/ |
H A D | main.c | 172 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd() 173 return pr_errno("Failed to lseek for magic", -errno); in load_xbc_from_initrd() 182 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0) in load_xbc_from_initrd() 183 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd() 199 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd() 201 return pr_errno("Failed to lseek", -errno); in load_xbc_from_initrd()
|
/kernel/linux/linux-6.6/tools/bootconfig/ |
H A D | main.c | 191 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0) in load_xbc_from_initrd() 192 return pr_errno("Failed to lseek for magic", -errno); in load_xbc_from_initrd() 201 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0) in load_xbc_from_initrd() 202 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd() 218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN), in load_xbc_from_initrd() 220 return pr_errno("Failed to lseek", -errno); in load_xbc_from_initrd()
|
/kernel/linux/linux-5.10/fs/proc/ |
H A D | inode.c | 278 typeof_member(struct proc_ops, proc_lseek) lseek; in pde_lseek() 280 lseek = pde->proc_ops->proc_lseek; in pde_lseek() 281 if (!lseek) in pde_lseek() 282 lseek = default_llseek; in pde_lseek() 283 return lseek(file, offset, whence); in pde_lseek()
|
/kernel/linux/linux-5.10/tools/testing/selftests/proc/ |
H A D | proc-loadavg-001.c | 64 lseek(fd, 0, SEEK_SET); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/proc/ |
H A D | proc-loadavg-001.c | 64 lseek(fd, 0, SEEK_SET); in main()
|
/kernel/linux/linux-5.10/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() 229 perror("lseek"); in main()
|
/kernel/linux/linux-6.6/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() 229 perror("lseek"); in main()
|