mirror of https://github.com/mkerrisk/man-pages
lirc.4: Document error returns more explicitly
Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
922819b84d
commit
5116995534
24
man4/lirc.4
24
man4/lirc.4
|
@ -187,7 +187,11 @@ If a driver does not announce support of certain features, calling of
|
|||
the corresponding ioctls will return ENOTTY.
|
||||
.TP
|
||||
.BR LIRC_GET_REC_MODE " (\fIvoid\fP)"
|
||||
Return the receive mode, which will be one of:
|
||||
If the
|
||||
.B lirc
|
||||
device has no receiver return
|
||||
.B ENOTTY,
|
||||
else return the receive mode, which will be one of:
|
||||
.RS 4
|
||||
.TP
|
||||
.BR LIRC_MODE_MODE2
|
||||
|
@ -207,6 +211,10 @@ is either
|
|||
.BR LIRC_MODE_SCANCODE
|
||||
or
|
||||
.BR LIRC_MODE_MODE2 .
|
||||
If the
|
||||
.B lirc
|
||||
device has no receiver, return
|
||||
.B ENOTTY.
|
||||
.TP
|
||||
.BR LIRC_GET_SEND_MODE " (\fIvoid\fP)"
|
||||
Return the send mode.
|
||||
|
@ -214,6 +222,10 @@ Return the send mode.
|
|||
or
|
||||
.BR LIRC_MODE_SCANCODE
|
||||
is supported.
|
||||
If the
|
||||
.B lirc
|
||||
device cannot send, return
|
||||
.B ENOTTY.
|
||||
.TP
|
||||
.BR LIRC_SET_SEND_MODE " (\fIint\fP)"
|
||||
Set the send mode.
|
||||
|
@ -221,7 +233,12 @@ Set the send mode.
|
|||
is either
|
||||
.BR LIRC_MODE_SCANCODE
|
||||
or
|
||||
.BR LIRC_MODE_PULSE.
|
||||
.BR LIRC_MODE_PULSE .
|
||||
If the
|
||||
.B lirc
|
||||
device cannot send, return
|
||||
.B ENOTTY
|
||||
.
|
||||
.TP
|
||||
.BR LIRC_SET_SEND_CARRIER " (\fIint\fP)"
|
||||
Set the modulation frequency.
|
||||
|
@ -252,7 +269,8 @@ For such drivers,
|
|||
.BR LIRC_GET_MIN_TIMEOUT
|
||||
and
|
||||
.BR LIRC_GET_MAX_TIMEOUT
|
||||
will return the same value.
|
||||
will return
|
||||
.BR ENOTTY .
|
||||
.TP
|
||||
.BR LIRC_SET_REC_TIMEOUT " (\fIint\fP)"
|
||||
Set the integer value for IR inactivity timeout (microseconds).
|
||||
|
|
Loading…
Reference in New Issue