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

123

/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/arch/powerpc/boot/
H A Daddnote.c222 i = lseek(fd, (long) 0, SEEK_SET);
224 perror("lseek");
H A Dhack-coff.c69 if (lseek(fd, (long) sizeof(struct external_filehdr), 0) == -1
H A Dmktree.c110 if (lseek(in_fd, (64 * 1024), SEEK_SET) < 0) {
141 if (lseek(out_fd, 0, SEEK_SET) < 0) {
/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/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/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/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/mm/
H A Dsubpage_prot.c204 filesize = lseek(fd, 0, SEEK_END);
/linux-master/arch/mips/boot/
H A Delf2ecoff.c74 if (lseek(in, offset, SEEK_SET) < 0) {
75 perror("copy: lseek");
138 if ((off = lseek(file, offset, 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/arch/sparc/vdso/
H A Dvdso2c.c168 tmp_len = lseek(fd, 0, SEEK_END);
170 err(1, "lseek");
/linux-master/arch/x86/entry/vdso/
H A Dvdso2c.c194 tmp_len = lseek(fd, 0, SEEK_END);
196 err(1, "lseek");
/linux-master/fs/
H A Dread_write.c43 * vfs_setpos - update the file offset for lseek
95 * Here we special-case the lseek(fd, 0, SEEK_CUR)
98 * write() or lseek() might have altered it
311 SYSCALL_DEFINE3(lseek, unsigned int, fd, off_t, offset, unsigned int, whence)
317 COMPAT_SYSCALL_DEFINE3(lseek, unsigned int, fd, compat_off_t, offset, unsigned int, whence)
/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/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/tools/include/nolibc/
H A Dsys.h589 * off_t lseek(int fd, off_t offset, int whence);
603 off_t lseek(int fd, off_t offset, int whence) function
/linux-master/tools/lib/bpf/
H A Dzip.c209 size = lseek(fd, 0, SEEK_END);
/linux-master/tools/perf/
H A Dbuiltin-inject.c250 offset = lseek(inject->output.file.fd, 0, SEEK_CUR);
1292 if (lseek(gs->tmp_fd, 0, SEEK_SET))
2092 lseek(fd, output_data_offset, SEEK_SET);
H A Dbuiltin-record.c477 return lseek(trace_fd, 0, SEEK_CUR);
482 lseek(trace_fd, pos, SEEK_SET);
722 file_offset = lseek(fd, 0, SEEK_CUR);
1783 data->file.size = lseek(perf_data__fd(data), 0, SEEK_CUR);
1786 data->dir.files[i].size = lseek(data->dir.files[i].fd, 0, SEEK_CUR);
/linux-master/tools/perf/util/
H A Darm-spe.c964 data_offset = lseek(fd, 0, SEEK_CUR);
H A Dcs-etm.c2826 data_offset = lseek(fd, 0, SEEK_CUR);
H A Ddata.c452 if (lseek(data->file.fd, pos, SEEK_SET) == (off_t)-1) {
454 pr_debug("Failed to lseek to %zu: %s",

Completed in 330 milliseconds

123