[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/46945: editline(3): el_getc() doesn't document it's setting errno
>Synopsis: editline(3): el_getc() doesn't document it's setting errno
>Arrival-Date: Tue Sep 11 15:30:00 +0000 2012
>Originator: Steffen Nurpmeso
netbsd-6-base, manually patched up
Whereas el_gets() already documents that it sets errno on error,
el_getc() does not.
Be a greenhorn. Be undecided.
Applies also to v1.76
diff --git a/src/lib/libedit/editline.3 b/src/lib/libedit/editline.3
index 7540562..80819b2 100644
@@ -221,7 +221,10 @@ and must be copied if the data is to be retained.
Read a character from the tty.
is modified to contain the character read.
-Returns the number of characters read if successful, \-1 otherwise.
+Returns the number of characters read if successful, \-1 otherwise,
+in which case
+can be inspected for the cause.
.It Fn el_push
Main Index |
Thread Index |