aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 06:59:32 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-03 06:59:32 +0100
commitdddcc8eae9880e916f80bf43d1a552e093c32de5 (patch)
treeb45fd74f678436977b233e04f68e880fa92fa36c
parentc152097f36f4982470a0e9d580272b89b71b19e7 (diff)
downloadlibrb-dddcc8eae9880e916f80bf43d1a552e093c32de5.tar.gz
librb-dddcc8eae9880e916f80bf43d1a552e093c32de5.tar.bz2
librb-dddcc8eae9880e916f80bf43d1a552e093c32de5.zip
update man pages
-rw-r--r--man/rb_overview.74
-rw-r--r--man/rb_space.311
2 files changed, 11 insertions, 4 deletions
diff --git a/man/rb_overview.7 b/man/rb_overview.7
index f6581cd..1476fcf 100644
--- a/man/rb_overview.7
+++ b/man/rb_overview.7
@@ -32,9 +32,9 @@ unsigned long " flags ");"
size_t " count ", unsigned long " flags ");"
.BI "int rb_clear(struct rb *" rb ", int " clear ");"
.br
-.BI "size_t rb_count(struct rb *" rb ");"
+.BI "long rb_count(struct rb *" rb ");"
.br
-.BI "size_t rb_space(struct rb *" rb ");"
+.BI "long rb_space(struct rb *" rb ");"
.br
.BI "int rb_stop(struct rb *" rb ");"
.br
diff --git a/man/rb_space.3 b/man/rb_space.3
index 7f8f113..35e2ef1 100644
--- a/man/rb_space.3
+++ b/man/rb_space.3
@@ -8,9 +8,9 @@
.PP
.BI "#include <librb.h>"
.PP
-.BI "size_t rb_count(struct rb *" rb ");"
+.BI "long rb_count(struct rb *" rb ");"
.br
-.BI "size_t rb_space(struct rb *" rb ");"
+.BI "long rb_space(struct rb *" rb ");"
.SH RETURN VALUES
.PP
.BR rb_count (3)
@@ -21,6 +21,13 @@ that are currently stored in buffer, and
returns number of how many
.B elements
you can put on the buffer.
+.SH ERRORS
+.PP
+.TP
+.B EINVAL
+Passed
+.I rb
+object is invalid.
.SH SEE ALSO
.PP
.BR rb_overview (7),