Module Name: src
Committed By: uwe
Date: Sat Apr 29 21:37:07 UTC 2023
Modified Files:
src/lib/libpthread: pthread_create.3
Log Message:
pthread_create(3): minor markup tweaks
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libpthread/pthread_create.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread_create.3
diff -u src/lib/libpthread/pthread_create.3:1.8 src/lib/libpthread/pthread_create.3:1.9
--- src/lib/libpthread/pthread_create.3:1.8 Sat Apr 29 20:51:45 2023
+++ src/lib/libpthread/pthread_create.3 Sat Apr 29 21:37:07 2023
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_create.3,v 1.8 2023/04/29 20:51:45 jschauma Exp $
+.\" $NetBSD: pthread_create.3,v 1.9 2023/04/29 21:37:07 uwe Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -64,8 +64,15 @@
.Lb libpthread
.Sh SYNOPSIS
.In pthread.h
+.
.Ft int
-.Fn pthread_create "pthread_t * restrict thread" "const pthread_attr_t * restrict attr" "void *(*start_routine)(void *)" "void * restrict arg"
+.Fo pthread_create
+.Fa "pthread_t * restrict thread"
+.Fa "const pthread_attr_t * restrict attr"
+.Fa "void *(*start_routine)(void *)"
+.Fa "void * restrict arg"
+.Fc
+.
.Sh DESCRIPTION
The
.Fn pthread_create
@@ -103,7 +110,7 @@ as its sole argument.
If the
.Fa start_routine
returns, the effect is as if there was an implicit call to
-.Fn pthread_exit
+.Xr pthread_exit 3
using the return value of
.Fa start_routine
as the exit status.
@@ -113,7 +120,7 @@ was originally invoked differs from this
When it returns from
.Fn main ,
the effect is as if there was an implicit call to
-.Fn exit
+.Xr exit 3
using the return value of
.Fn main
as the exit status.