Print this page
9842 man page typos and spelling
*** 61,71 ****
\fBint\fR \fBsem_reltimedwait_np\fR(\fBsem_t *restrict\fR \fIsem\fR,
\fBconst struct timespec *restrict\fR \fIrel_timeout\fR);
.fi
.SH DESCRIPTION
- .sp
.LP
The \fBsem_timedwait()\fR function locks the semaphore referenced by \fIsem\fR
as in the \fBsem_wait\fR(3C) function. However, if the semaphore cannot be
locked without waiting for another process or thread to unlock the semaphore by
performing a \fBsem_post\fR(3C) function, this wait is terminated when the
--- 61,70 ----
*** 97,115 ****
.LP
Under no circumstance does the function fail with a timeout if the semaphore
can be locked immediately. The validity of the \fIabs_timeout\fR need not be
checked if the semaphore can be locked immediately.
.SH RETURN VALUES
- .sp
.LP
The \fBsem_timedwait()\fR and \fBsem_reltimedwait_np()\fR functions return 0 if
the calling process successfully performed the semaphore lock operation on the
semaphore designated by \fIsem\fR. If the call was unsuccessful, the state of
the semaphore is be unchanged and the function returns -1 and sets \fBerrno\fR
to indicate the error.
.SH ERRORS
- .sp
.LP
The \fBsem_timedwait()\fR and \fBsem_reltimedwait_np()\fR functions will fail
if:
.sp
.ne 2
--- 96,112 ----
*** 161,171 ****
.RS 11n
A signal interrupted this function.
.RE
.SH ATTRIBUTES
- .sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
--- 158,167 ----
*** 173,183 ****
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
! Interface Stability Commmitted
_
MT-Level MT-Safe
_
Standard See below.
.TE
--- 169,179 ----
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
! Interface Stability Committed
_
MT-Level MT-Safe
_
Standard See below.
.TE
*** 184,193 ****
.sp
.LP
For \fBsem_timedwait()\fR, see \fBstandards\fR(5).
.SH SEE ALSO
- .sp
.LP
\fBsemctl\fR(2), \fBsemget\fR(2), \fBsemop\fR(2), \fBtime\fR(2),
\fBsem_post\fR(3C), \fBsem_trywait\fR(3C), \fBsem_wait\fR(3C),
\fBattributes\fR(5), \fBstandards\fR(5)
--- 180,188 ----