mirror of https://github.com/mkerrisk/man-pages
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:
parent
1a0dff18b2
commit
e9979dff7c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue