Linux Manual Pages development
 help / color / mirror / Atom feed
* [PATCH 1/1] man/man2/request_key.2: Add missing GNU size forward-declarations
@ 2026-09-14 11:15 Petr Vorel
  2026-09-14 11:44 ` Alejandro Colomar
  0 siblings, 1 reply; 16+ messages in thread
From: Petr Vorel @ 2026-09-14 11:15 UTC (permalink / raw)
  To: linux-man; +Cc: Petr Vorel, Alejandro Colomar

request_key was left from GNU forward-declarations of parameters for
sizes of array parameters.

Fixes: d2c2db883 ("man/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array parameters")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi Alejandro,

although I don't like N3207 GNU forward-declarations of parameters for
sizes of array parameters syntax (I'd prefer to have the signatures
which are in the headers) and I don't think it's practical (before one
could copy paste the signature from man page), I understand it's a
wanted feature. Therefore I fixed missing size parameter in request_key.

I suppose more functions were left in d2c2db883.

Kind regards,
Petr

 man/man2/request_key.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/man2/request_key.2 b/man/man2/request_key.2
index 3bb52f31b..d16642d9f 100644
--- a/man/man2/request_key.2
+++ b/man/man2/request_key.2
@@ -14,7 +14,8 @@ Linux Key Management Utilities
 .nf
 .B #include <keyutils.h>
 .P
-.BI "key_serial_t request_key(const char *" type ", const char *" description ,
+.BR "key_serial_t request_key(" "size_t size;"
+.BI "                         (const char *" type ", const char *" description ,
 .BI "                         const char *_Nullable " callout_info ,
 .BI "                         key_serial_t " dest_keyring );
 .fi
-- 
2.55.0


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

end of thread, other threads:[~2026-09-15 10:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-14 11:15 [PATCH 1/1] man/man2/request_key.2: Add missing GNU size forward-declarations Petr Vorel
2026-09-14 11:44 ` Alejandro Colomar
2026-09-14 12:24   ` Petr Vorel
2026-09-14 13:30     ` Alejandro Colomar
2026-09-14 17:19       ` Mark Harris
2026-09-14 18:12         ` Alejandro Colomar
2026-09-14 18:34           ` Martin Uecker
2026-09-14 21:03             ` Alejandro Colomar
2026-09-15  6:08               ` Martin Uecker
2026-09-15  9:02                 ` Alejandro Colomar
2026-09-15  9:45                   ` Martin Uecker
2026-09-15  9:59                     ` Alejandro Colomar
2026-09-15 10:28                       ` Martin Uecker
2026-09-15 10:56                         ` Alejandro Colomar
2026-09-14 18:37         ` status of C forward declarations (was: [PATCH 1/1] man/man2/request_key.2: Add missing GNU size forward-declarations) G. Branden Robinson
2026-09-14 21:06           ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox