summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-10-11 03:51:58 +0000
committerRoland McGrath <roland@gnu.org>1994-10-11 03:51:58 +0000
commit10b5dbbbf97f3e708722d7c4167a7d43e9fa77ae (patch)
tree279899933365ef90759cb2ee0fae9252b57d77eb /manual
parentdb40350c790e18c154b4e99a82adca1f0ef82549 (diff)
(write): Fix typo.
(lseek): Say that extending file fills with zeros.
Diffstat (limited to 'manual')
-rw-r--r--manual/llio.texi5
1 files changed, 3 insertions, 2 deletions
diff --git a/manual/llio.texi b/manual/llio.texi
index f07ea5fee6..59afe58247 100644
--- a/manual/llio.texi
+++ b/manual/llio.texi
@@ -372,7 +372,7 @@ functions that read from streams, such as @code{fgetc}.
@deftypefun ssize_t write (int @var{filedes}, const void *@var{buffer}, size_t @var{size})
The @code{write} function writes up to @var{size} bytes from
@var{buffer} to the file with descriptor @var{filedes}. The data in
-@var{buffer} is not necessarily a character string and a null character
+@var{buffer} is not necessarily a character string and a null character is
output like any other character.
The return value is the number of bytes actually written. This is
@@ -501,7 +501,8 @@ current file position.
You can set the file position past the current end of the file. This
does not by itself make the file longer; @code{lseek} never changes the
file. But subsequent output at that position will extend the file's
-size.
+size. Characters between the previous end of file and the new position
+are filled with zeros.
If the file position cannot be changed, or the operation is in some way
invalid, @code{lseek} returns a value of @code{-1}. The following