Searched refs:lseek (Results 1 - 25 of 61) sorted by relevance

123

/linux-master/tools/power/cpupower/utils/helpers/
H A Dmsr.c35 if (lseek(fd, idx, SEEK_CUR) == -1)
64 if (lseek(fd, idx, SEEK_CUR) == -1)
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsubprogs.c19 lseek(ctx->fd, SEEK_SET, 0);
21 lseek(ctx->fd, SEEK_SET, 0);
/linux-master/arch/sparc/boot/
H A Dpiggyback.c141 if (lseek(kernelfd, 0, SEEK_SET) < 0)
142 die("lseek");
161 if (lseek(kernelfd, offset, SEEK_SET) < 0)
162 die("lseek");
218 if (lseek(image, offset, 0) < 0)
219 die("lseek");
239 if (lseek(image, 4, 0) < 0)
240 die("lseek");
253 if (lseek(image, AOUT_TEXT_OFFSET - start + align(end + 32), 0) < 0)
254 die("lseek");
[all...]
/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/tools/testing/selftests/proc/
H A Dproc-loadavg-001.c64 lseek(fd, 0, SEEK_SET);
H A Dread.c17 // 1) read and lseek on every file in /proc
49 (void)lseek(fd, 0, SEEK_SET);
/linux-master/tools/testing/selftests/thermal/intel/power_floor/
H A Dpower_floor_test.c74 if ((lseek(fd, 0L, SEEK_SET)) < 0) {
95 if ((lseek(fd, 0L, SEEK_SET)) < 0) {
/linux-master/tools/power/acpi/tools/ec/
H A Dec_access.c151 lseek(fd, 0, SEEK_SET);
180 error = lseek(fd, byte_offset, SEEK_SET);
196 error = lseek(fd, byte_offset, SEEK_SET);
/linux-master/tools/testing/selftests/mm/
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);
H A Dmkdirty.c110 lseek(mem_fd, (uintptr_t) mem, SEEK_SET);
140 lseek(mem_fd, (uintptr_t) mem, SEEK_SET);
/linux-master/arch/powerpc/boot/
H A Dmktree.c110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) {
141 if (lseek(out_fd, 0, SEEK_SET) < 0) {
H A Dhack-coff.c69 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1
/linux-master/tools/testing/selftests/thermal/intel/workload_hint/
H A Dworkload_hint_test.c117 if ((lseek(fd, 0L, SEEK_SET)) < 0) {
138 if ((lseek(fd, 0L, SEEK_SET)) < 0) {
/linux-master/tools/leds/
H A Dled_hw_brightness_mon.c73 ret = lseek(pollfd.fd, 0, SEEK_SET);
75 printf("lseek failed (%d)\n", ret);
/linux-master/tools/power/cpupower/debug/i386/
H A Dcentrino-decode.c47 if (lseek(fd, msr, SEEK_CUR) == -1)
H A Dpowernow-k8-decode.c42 lseek(fd, MSR_FIDVID_STATUS, SEEK_CUR);
/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/bootconfig/
H A Dmain.c191 if (lseek(fd, -BOOTCONFIG_MAGIC_LEN, SEEK_END) < 0)
192 return pr_errno("Failed to lseek for magic", -errno);
201 if (lseek(fd, -(8 + BOOTCONFIG_MAGIC_LEN), SEEK_END) < 0)
202 return pr_errno("Failed to lseek for size", -errno);
218 if (lseek(fd, stat.st_size - (size + 8 + BOOTCONFIG_MAGIC_LEN),
220 return pr_errno("Failed to lseek", -errno);
/linux-master/arch/alpha/boot/tools/
H A Dmkbb.c142 lseek(dev, 0L, SEEK_SET);
H A Dobjstrip.c170 lseek(fd, elf->e_phoff, SEEK_SET);
228 if (lseek(fd, offset, SEEK_SET) != offset) {
229 perror("lseek");
/linux-master/drivers/pci/hotplug/
H A Dcpqphp_sysfs.c154 static loff_t lseek(struct file *file, loff_t off, int whence) function
179 .llseek = lseek,
/linux-master/tools/testing/selftests/arm64/mte/
H A Dcheck_user_mem.c54 lseek(fd, 0, 0);
84 lseek(fd, 0, 0);
/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/powerpc/mm/
H A Dsubpage_prot.c204 filesize = lseek(fd, 0, SEEK_END);

Completed in 577 milliseconds

123