If the user is unfamiliar with seeking semantics, they may sensibly
assume that seeking past the end is invalid
Reported-in: https://twitter.com/eatijr/status/
1526264195808911361
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
.I fpos_t
object may be a complex object and these routines may be the only way to
portably reposition a text stream.
+.PP
+If the stream refers to a regular file
+and the resulting stream offset is beyond the size of the file,
+subsequent writes will extend the file with a hole, up to the offset,
+before committing any data.
+See
+.BR lseek (2)
+for details on file seeking semantics.
.SH RETURN VALUE
The
.BR rewind ()