You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure whether it works on other systems, but...
I am using ubuntu 18.04. lseek(fd, offset, SEEK_HOLE/SEEK_DATA) seems to change the file offset to the offset of the block that contains the hole or data.
For example, suppose I have a file containing "abc" followed by a hole with length 16*1024 bytes. If the file block size if 4096, lseek(fd, 0, SEEK_HOLE) would return 4096 instead of 3.
The text was updated successfully, but these errors were encountered:
apue-exercises/code/04.06.c
Line 23 in 2ecce52
Not sure whether it works on other systems, but...
I am using ubuntu 18.04.
lseek(fd, offset, SEEK_HOLE/SEEK_DATA)
seems to change the file offset to the offset of the block that contains the hole or data.For example, suppose I have a file containing "abc" followed by a hole with length
16*1024
bytes. If the file block size if4096
,lseek(fd, 0, SEEK_HOLE)
would return4096
instead of3
.The text was updated successfully, but these errors were encountered: