]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
readlink.2: SYNOPSIS: Use array notation
authorAlejandro Colomar <alx@kernel.org>
Thu, 28 Nov 2024 11:47:23 +0000 (12:47 +0100)
committerAlejandro Colomar <alx@kernel.org>
Thu, 28 Nov 2024 12:01:07 +0000 (13:01 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/readlink.2

index 64a36f0335e2a8f5a24e54adf563b943dd6ed32a..418a1820a74fac7ea21ae4bd82629d8e76f9b652 100644 (file)
@@ -23,14 +23,14 @@ Standard C library
 .nf
 .B #include <unistd.h>
 .P
-.BI "ssize_t readlink(const char *restrict " pathname ", char *restrict " buf ,
-.BI "                 size_t " bufsiz );
+.BI "ssize_t readlink(const char *restrict " pathname ,
+.BI "                 char " buf "[restrict ." bufsiz "], size_t " bufsiz );
 .P
 .BR "#include <fcntl.h>            " "/* Definition of " AT_* " constants */"
 .B #include <unistd.h>
 .P
 .BI "ssize_t readlinkat(int " dirfd ", const char *restrict " pathname ,
-.BI "                 char *restrict " buf ", size_t " bufsiz );
+.BI "                 char " buf "[restrict ." bufsiz "], size_t " bufsiz );
 .P
 .fi
 .RS -4