readlink.2: Emphasize that truncation of returned buffer generates no error

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-08-20 14:59:45 +12:00
parent 1a0dff18b2
commit e9979dff7c
1 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,7 @@ which has size
.BR readlink ()
does not append a null byte to
.IR buf .
It will truncate the contents (to a length of
It will (silently) truncate the contents (to a length of
.I bufsiz
characters), in case the buffer is too small to hold all of the contents.
.SS readlinkat()
@ -154,6 +154,9 @@ for an explanation of the need for
.SH RETURN VALUE
On success, these calls return the number of bytes placed in
.IR buf .
(If the returned value equals
.IR busiz ,
then truncation may have occurred.)
On error, \-1 is returned and
.I errno
is set to indicate the error.