Both POSIX and glibc use 'restrict' in getline(), getdelim(). Let's use it here too. .../glibc$ grep_glibc_prototype getline libio/stdio.h:621: extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) __wur; .../glibc$ grep_glibc_prototype getdelim libio/stdio.h:611: extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) __wur; .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man3/getline.3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/man3/getline.3 b/man3/getline.3 index 25930dbf9..182a8ca85 100644 --- a/man3/getline.3 +++ b/man3/getline.3 @@ -30,9 +30,10 @@ getline, getdelim \- delimited string input .nf .B #include <stdio.h> .PP -.BI "ssize_t getline(char **" lineptr ", size_t *" n ", FILE *" stream ); -.BI "ssize_t getdelim(char **" lineptr ", size_t *" n ", int " delim \ -", FILE *" stream ); +.BI "ssize_t getline(char **restrict " lineptr ", size_t *restrict " n , +.BI " FILE *restrict " stream ); +.BI "ssize_t getdelim(char **restrict " lineptr ", size_t *restrict " n , +.BI " int " delim ", FILE *restrict " stream ); .fi .PP .RS -4 -- 2.30.1.721.g45526154a5