summaryrefslogtreecommitdiffstats
path: root/doc/man3/BIO_s_file.pod
diff options
context:
space:
mode:
authorPW Hu <jlu.hpw@foxmail.com>2021-10-07 11:40:49 +0800
committerTomas Mraz <tomas@openssl.org>2021-10-22 11:54:11 +0200
commit5001287c0dcd8ca4ffc564b360f86df79bba40c1 (patch)
tree2b49b19882329baa9bf11e4898a7c4881a82037a /doc/man3/BIO_s_file.pod
parentf1d077f1108b1bc2334350a4d53a46e29e082910 (diff)
Fix documentation errors, mainly caused by return values of BIO_ctrl
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16767)
Diffstat (limited to 'doc/man3/BIO_s_file.pod')
-rw-r--r--doc/man3/BIO_s_file.pod5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/man3/BIO_s_file.pod b/doc/man3/BIO_s_file.pod
index aaaf2dc39e..b60a9d8f7a 100644
--- a/doc/man3/BIO_s_file.pod
+++ b/doc/man3/BIO_s_file.pod
@@ -90,10 +90,9 @@ occurred.
BIO_set_fp() and BIO_get_fp() return 1 for success or <=0 for failure
(although the current implementation never return 0).
-BIO_seek() returns the same value as the underlying fseek() function:
-0 for success or -1 for failure.
+BIO_seek() returns 0 for success or negative values for failure.
-BIO_tell() returns the current file position.
+BIO_tell() returns the current file position or negative values for failure.
BIO_read_filename(), BIO_write_filename(), BIO_append_filename() and
BIO_rw_filename() return 1 for success or <=0 for failure.