On Tue, 27 Jul 2021 17:15:09 -0500, Scott Cheloha wrote:

> We do it for other library functions where some part of the
> functionality is implemented with a system call.  In other manpages we
> say something like:
>
> The
> .Fn foo
> function may fail and set
> .Va errno
> for any of the errors specified for the
> .Fn bar 2
> routine.

I think this is overkill.

> Then again, there's really only one error.  Maybe we should just
> duplicate the information in sleep.3.
>
> What about this?
>
> The
> .Fn sleep
> function sets
> .Va errno
> to
> .Dv EINTR
> if it is interrupted by the delivery of a signal.

Sure.

 - todd

Reply via email to