Loading...
pthreads/pthread_create.3 Libc-583 Libc-391.5.22
--- Libc/Libc-583/pthreads/pthread_create.3
+++ Libc/Libc-391.5.22/pthreads/pthread_create.3
@@ -39,12 +39,7 @@
 .Sh SYNOPSIS
 .Fd #include <pthread.h>
 .Ft int
-.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
+.Fn pthread_create "pthread_t *thread" "const pthread_attr_t *attr" "void *(*start_routine)(void *)" "void *arg"
 .Sh DESCRIPTION
 The
 .Fn pthread_create
@@ -57,20 +52,21 @@
 If the attributes specified by
 .Fa attr
 are modified later, the thread's attributes are not affected.
-Upon successful completion,
+Upon
+successful completion
 .Fn pthread_create
 will store the ID of the created thread in the location specified by
 .Fa thread .
 .Pp
-Upon its creation, the thread executes
-.Fa start_routine ,
+The thread is created executing
+.Fa start_routine
 with
 .Fa arg
 as its sole argument.
-If
+If the
 .Fa start_routine
 returns, the effect is as if there was an implicit call to
-.Fn pthread_exit ,
+.Fn pthread_exit
 using the return value of
 .Fa start_routine
 as the exit status.
@@ -80,7 +76,7 @@
 When it returns from
 .Fn main ,
 the effect is as if there was an implicit call to
-.Fn exit ,
+.Fn exit
 using the return value of
 .Fn main
 as the exit status.
@@ -96,7 +92,7 @@
 If successful,  the
 .Fn pthread_create
 function will return zero.
-Otherwise, an error number will be returned to
+Otherwise an error number will be returned to
 indicate the error.
 .Sh ERRORS
 .Fn pthread_create