All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] read.2: Fix mangled SYNOPSIS macro
@ 2026-09-16 13:52 Anmol Katiyar
  2026-09-16 14:22 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Anmol Katiyar @ 2026-09-16 13:52 UTC (permalink / raw)
  To: alx; +Cc: linux-man, Anmol Katiyar

The .BR/.BI macro pair for the function prototype was broken:
.BR alternates bold/roman rather than bold/italic, and a stray
duplicate "size_t count;" fragment had been left in from an
apparent botched conversion to the buf[.count] bounds-annotation
style. This rendered as invalid C:

    ssize_t read(size_t count;
                 int fd, void buf[count], size_t count);

Replace with a single correct .BI call, matching the bounds-
annotation convention used elsewhere in the page set.

Signed-off-by: Anmol Katiyar <anmol.katiyar24@spit.ac.in>
---
 man/man2/read.2 | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/man/man2/read.2 b/man/man2/read.2
index 8eb222743..c460a2a61 100644
--- a/man/man2/read.2
+++ b/man/man2/read.2
@@ -14,8 +14,7 @@ Standard C library
 .nf
 .B #include <unistd.h>
 .P
-.BR "ssize_t read(" "size_t count;"
-.BI "             int " fd ", void " buf [ count "], size_t " count );
+.BI "ssize_t read(int " fd ", void " buf "[." count "], size_t " count );
 .fi
 .SH DESCRIPTION
 .BR read ()
-- 
2.55.0


-- 




*Disclaimer*
*This email and any files transmitted with it are 
confidential and intended solely for the use of the individual or entity to 
whom they are addressed. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system. If you are not the intended recipient 
you are notified that disclosing, copying, distributing or taking any 
action in reliance on the contents of this information is strictly 
prohibited.*


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-16 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-16 13:52 [PATCH] read.2: Fix mangled SYNOPSIS macro Anmol Katiyar
2026-09-16 14:22 ` Alejandro Colomar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.