Print this page
9842 man page typos and spelling

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/sem_timedwait.3c
          +++ new/usr/src/man/man3c/sem_timedwait.3c
↓ open down ↓ 55 lines elided ↑ open up ↑
  56   56       \fBconst struct timespec *restrict\fR \fIabs_timeout\fR);
  57   57  .fi
  58   58  
  59   59  .LP
  60   60  .nf
  61   61  \fBint\fR \fBsem_reltimedwait_np\fR(\fBsem_t *restrict\fR \fIsem\fR,
  62   62       \fBconst struct timespec *restrict\fR \fIrel_timeout\fR);
  63   63  .fi
  64   64  
  65   65  .SH DESCRIPTION
  66      -.sp
  67   66  .LP
  68   67  The \fBsem_timedwait()\fR function locks the semaphore referenced by \fIsem\fR
  69   68  as in the \fBsem_wait\fR(3C) function. However, if the semaphore cannot be
  70   69  locked without waiting for another process or thread to unlock the semaphore by
  71   70  performing a \fBsem_post\fR(3C) function, this wait is terminated when the
  72   71  specified timeout expires.
  73   72  .sp
  74   73  .LP
  75   74  The \fBsem_reltimedwait_np()\fR function is identical to the
  76   75  \fBsem_timedwait()\fR function, except that the timeout is specified as a
↓ open down ↓ 15 lines elided ↑ open up ↑
  92   91  .LP
  93   92  The resolution of the timeout is the resolution of the \fBCLOCK_REALTIME\fR
  94   93  clock. The \fBtimespec\fR data type is defined as a structure in the
  95   94  <\fBtime.h\fR> header.
  96   95  .sp
  97   96  .LP
  98   97  Under no circumstance does the function fail with a timeout if the semaphore
  99   98  can be locked immediately. The validity of the \fIabs_timeout\fR need not be
 100   99  checked if the semaphore can be locked immediately.
 101  100  .SH RETURN VALUES
 102      -.sp
 103  101  .LP
 104  102  The \fBsem_timedwait()\fR and \fBsem_reltimedwait_np()\fR functions return 0 if
 105  103  the calling process successfully performed the semaphore lock operation on the
 106  104  semaphore designated by \fIsem\fR. If the call was unsuccessful, the state of
 107  105  the semaphore is be unchanged and the function returns -1 and sets \fBerrno\fR
 108  106  to indicate the error.
 109  107  .SH ERRORS
 110      -.sp
 111  108  .LP
 112  109  The \fBsem_timedwait()\fR and \fBsem_reltimedwait_np()\fR functions will fail
 113  110  if:
 114  111  .sp
 115  112  .ne 2
 116  113  .na
 117  114  \fB\fBEINVAL\fR\fR
 118  115  .ad
 119  116  .RS 13n
 120  117  The \fIsem\fR argument does not refer to a valid semaphore.
↓ open down ↓ 35 lines elided ↑ open up ↑
 156  153  .sp
 157  154  .ne 2
 158  155  .na
 159  156  \fB\fBEINTR\fR\fR
 160  157  .ad
 161  158  .RS 11n
 162  159  A signal interrupted this function.
 163  160  .RE
 164  161  
 165  162  .SH ATTRIBUTES
 166      -.sp
 167  163  .LP
 168  164  See \fBattributes\fR(5) for descriptions of the following attributes:
 169  165  .sp
 170  166  
 171  167  .sp
 172  168  .TS
 173  169  box;
 174  170  c | c
 175  171  l | l .
 176  172  ATTRIBUTE TYPE  ATTRIBUTE VALUE
 177  173  _
 178      -Interface Stability     Commmitted
      174 +Interface Stability     Committed
 179  175  _
 180  176  MT-Level        MT-Safe
 181  177  _
 182  178  Standard        See below.
 183  179  .TE
 184  180  
 185  181  .sp
 186  182  .LP
 187  183  For \fBsem_timedwait()\fR, see \fBstandards\fR(5).
 188  184  .SH SEE ALSO
 189      -.sp
 190  185  .LP
 191  186  \fBsemctl\fR(2), \fBsemget\fR(2), \fBsemop\fR(2), \fBtime\fR(2),
 192  187  \fBsem_post\fR(3C), \fBsem_trywait\fR(3C), \fBsem_wait\fR(3C),
 193  188  \fBattributes\fR(5), \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX