aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/gen/makecontext.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/makecontext.3')
-rw-r--r--lib/libc/gen/makecontext.36
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/gen/makecontext.3 b/lib/libc/gen/makecontext.3
index 041985372d32..ad55e7abcb47 100644
--- a/lib/libc/gen/makecontext.3
+++ b/lib/libc/gen/makecontext.3
@@ -65,14 +65,18 @@ and had a stack allocated for it.
The context is modified so that it will continue execution by invoking
.Fn func
with the arguments provided.
+The
.Fa argc
+argument
must be equal to the number of additional arguments provided to
.Fn makecontext
-and also equal to the number of parameters to
+and also equal to the number of arguments to
.Fn func ,
or else the behavior is undefined.
.Pp
+The
.Fa "ucp->uc_link"
+argument
must be initialized before calling
.Fn makecontext
and determines the action to take when