Searched refs:SEEK_SET (Results 1 - 25 of 100) sorted by relevance

1234

/linux-master/tools/power/acpi/common/
H A Dcmfsize.c54 status = fseek(file, current_offset, SEEK_SET);
/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/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.c49 (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); local
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/tools/perf/util/
H A Dsymbol-minimal.c113 fseek(fp, 0, SEEK_SET);
133 fseek(fp, ehdr.e_phoff, SEEK_SET);
157 fseek(fp, offset, SEEK_SET);
185 fseek(fp, ehdr.e_phoff, SEEK_SET);
209 fseek(fp, offset, SEEK_SET);
307 if (lseek(fd, 0, 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) {
/linux-master/scripts/
H A Dextract-sys-certs.pl7 use Fcntl "SEEK_SET";
125 die $vmlinux if (!defined(sysseek(FD, $size_off, SEEK_SET)));
147 die $vmlinux if (!defined(sysseek(FD, $foff, SEEK_SET)));
H A Drecordmcount.h290 if (ulseek(sb.st_size, SEEK_SET) < 0)
298 if (ulseek(t, SEEK_SET) < 0)
343 if (ulseek(0, SEEK_SET) < 0)
496 if (ulseek((void *)relp - (void *)ehdr, SEEK_SET) < 0)
/linux-master/tools/testing/selftests/filelock/
H A Dofdlocks.c16 fl->l_whence = SEEK_SET;
28 fl->l_whence = SEEK_SET;
/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);
/linux-master/arch/sparc/boot/
H A Dpiggyback.c141 if (lseek(kernelfd, 0, SEEK_SET) < 0)
161 if (lseek(kernelfd, offset, SEEK_SET) < 0)
/linux-master/tools/testing/selftests/sparc64/drivers/
H A Dadi-test.c476 offset_out = seek_adi(fd, offset_in, SEEK_SET);
483 offset_out = seek_adi(fd, offset_in, SEEK_SET);
528 oret = seek_adi(fd, offset, SEEK_SET);
538 oret = seek_adi(fd, offset, SEEK_SET);
575 oret = seek_adi(fd, offset, SEEK_SET);
587 oret = seek_adi(fd, offset, SEEK_SET);
629 oret = seek_adi(fd, offset, SEEK_SET);
641 oret = seek_adi(fd, offset, SEEK_SET);
/linux-master/arch/mips/boot/tools/
H A Drelocs.c269 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
309 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
333 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
377 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
418 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0)
432 if (fseek(fp, sec->shdr_offset, SEEK_SET) < 0)
607 if (fseek(outf, sec_reloc->shdr.sh_offset, SEEK_SET) < 0) {
/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) {
/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/arch/s390/tools/
H A Drelocs.c165 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
191 if (fseek(fp, ehdr.e_shoff, SEEK_SET) < 0)
233 if (fseek(fp, sec->shdr.sh_offset, SEEK_SET) < 0)
/linux-master/drivers/char/
H A Dadi.c193 case SEEK_SET:

Completed in 401 milliseconds

1234