Print this page
11628 typos detected by mandoc style

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/thrd_join.3c
          +++ new/usr/src/man/man3c/thrd_join.3c
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4  .\" You may only use this file in accordance with the terms of version
   5    5  .\" 1.0 of the CDDL.
   6    6  .\"
   7    7  .\" A full copy of the text of the CDDL should have accompanied this
   8    8  .\" source.  A copy of the CDDL is also available via the Internet at
   9    9  .\" http://www.illumos.org/license/CDDL.
  10   10  .\"
  11   11  .\"
  12   12  .\" Copyright 2016 Joyent, Inc.
  13   13  .\"
  14      -.Dd "Jan 13, 2015"
       14 +.Dd "Aug 27, 2019"
  15   15  .Dt THRD_JOIN 3C
  16   16  .Os
  17   17  .Sh NAME
  18   18  .Nm thrd_join
  19   19  .Nd wait for thread termination
  20   20  .Sh SYNOPSIS
  21   21  .In threads.h
  22   22  .Ft int
  23   23  .Fo thrd_join
  24   24  .Fa "thrd_t thrd"
  25   25  .Fa "int *res"
  26   26  .Fc
  27   27  .Sh DESCRIPTION
  28   28  The
  29   29  .Fn thrd_join
  30      -function suspends the exection of the current thread and waits for the
       30 +function suspends the execution of the current thread and waits for the
  31   31  thread indicated by
  32   32  .Fa thrd
  33   33  to terminate and stores the exit status, as set by a call to
  34   34  .Xr thrd_exit 3C ,
  35   35  for that thread in
  36   36  .Fa res ,
  37   37  if
  38   38  .Fa res
  39   39  is non-null.
  40   40  The
↓ open down ↓ 11 lines elided ↑ open up ↑
  52   52  .Fn thrd_join
  53   53  on the same thread, then both will be suspended until that thread
  54   54  terminates; however, only one thread will return successfully and obtain
  55   55  the actual status and the other will instead return with an error.
  56   56  .Pp
  57   57  For additional information on the thread joining interfaces supported by
  58   58  the system, see
  59   59  .Xr pthread_join 3C
  60   60  and
  61   61  .Xr thr_join 3C .
  62      -.Sh RETURN_VALUES
       62 +.Sh RETURN VALUES
  63   63  Upon successful completion, the
  64   64  .Fn thrd_join
  65   65  function returns
  66   66  .Sy thrd_success
  67   67  and if
  68   68  .Fa res
  69   69  is a non-null pointer, it will be filled in with the exit status of
  70   70  .Fa thrd .
  71   71  If an error occurs,
  72   72  .Sy thrd_error
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX