[05/41] clone.2: SYNOPSIS: Add _Nullable

Message ID 20221203202317.252789-6-alx@kernel.org
State Not applicable
Headers
Series Document nullability of syscall parameters |

Commit Message

Alejandro Colomar Dec. 3, 2022, 8:22 p.m. UTC
  Signed-off-by: Alejandro Colomar <alx@kernel.org>
---
 man2/clone.2 | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
  

Patch

diff --git a/man2/clone.2 b/man2/clone.2
index 093630859..a3e6188fd 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -50,10 +50,12 @@  .SH SYNOPSIS
 .B #define _GNU_SOURCE
 .B #include <sched.h>
 .PP
-.BI "int clone(int (*" "fn" ")(void *), void *" stack \
-", int " flags ", void *" "arg" ", ..."
-.BI "          /* pid_t *" parent_tid ", void *" tls \
-", pid_t *" child_tid " */ );"
+.BI "int clone(int (*" "fn" ")(void *_Nullable), void *" stack \
+", int " flags ,
+.BI "          void *_Nullable " "arg" ", ..." \
+"  \fR/*\fP" " pid_t *_Nullable " parent_tid ,
+.BI "                                       void *_Nullable " tls ,
+.BI "                                       pid_t *_Nullable " child_tid " \fR*/\fP );"
 .PP
 /* For the prototype of the raw clone() system call, see NOTES */
 .PP