summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/makecontext.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-12-18 10:13:54 +0000
committerru <ru@FreeBSD.org>2002-12-18 10:13:54 +0000
commitd0db69d964a72128c1dcb81af009e3bd728c7876 (patch)
treed7fc87dbba410fea9fb526ffb94f2409d3c5f8cc /lib/libc/gen/makecontext.3
parentaf6f15fd347359b35b89710f15c02dffacf8d980 (diff)
downloadFreeBSD-src-d0db69d964a72128c1dcb81af009e3bd728c7876.zip
FreeBSD-src-d0db69d964a72128c1dcb81af009e3bd728c7876.tar.gz
mdoc(7) police: "The .Fn function".
Diffstat (limited to 'lib/libc/gen/makecontext.3')
-rw-r--r--lib/libc/gen/makecontext.36
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc/gen/makecontext.3 b/lib/libc/gen/makecontext.3
index ff56cbb..0419853 100644
--- a/lib/libc/gen/makecontext.3
+++ b/lib/libc/gen/makecontext.3
@@ -54,7 +54,9 @@
.Ft int
.Fn swapcontext "ucontext_t *oucp" "const ucontext_t *ucp"
.Sh DESCRIPTION
+The
.Fn makecontext
+function
modifies the user thread context pointed to by
.Fa ucp ,
which must have previously been initialized by a call to
@@ -83,7 +85,9 @@ otherwise,
.Fn setcontext "ucp->uc_link"
is implicitly invoked.
.Pp
+The
.Fn swapcontext
+function
saves the current thread context in
.Fa "*oucp"
and makes
@@ -97,7 +101,9 @@ otherwise \-1 is returned and the global variable
.Va errno
is set appropriately.
.Sh ERRORS
+The
.Fn swapcontext
+function
will fail if:
.Bl -tag -width Er
.It Bq Er ENOMEM
OpenPOWER on IntegriCloud