lseek Questions

1

Solved

Consider the following C program, named weird.c (because the thing it is doing makes no sense): #include <inttypes.h> #include <stdint.h> #include <stdio.h> #include <unistd.h&...
Patchy asked 30/8, 2024 at 4:38

4

Solved

Let's say that the intent is to create a file with a large hole at the beginning that we will write to later on, on an embedded device running Linux. We open the file, obtain a file descriptor and ...
Springtime asked 31/1, 2016 at 23:42

3

Solved

I know that my question has an answer here: QFile seek performance. But I am not completely satisfied with the answer. Even after looking at the following implementation of generic_file_llseek() fo...
Synonymy asked 9/2, 2014 at 11:16

2

Solved

In this source code http://man7.org/tlpi/code/online/dist/sysinfo/procfs_pidmax.c.html the file /proc/sys/kernel/pid_max is first simply read (using the read syscall) and then simply written (using...
Arronarrondissement asked 15/12, 2013 at 14:53
1

© 2022 - 2025 — McMap. All rights reserved.