summaryrefslogtreecommitdiff
path: root/doc/ref/api-io.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2021-01-12 12:21:15 +0100
committerAndy Wingo <wingo@pobox.com>2021-01-12 12:21:15 +0100
commitb2b1666d4c634f79a0116786ab32e95e2c9858df (patch)
treefeb1bc2474972ef2355b8e3728c3bc554936a7e6 /doc/ref/api-io.texi
parent1820ed512135ea61f4b453a8cc0dc75f1e91b463 (diff)
downloadguile-b2b1666d4c634f79a0116786ab32e95e2c9858df.tar.gz
Document call-with-port
* doc/ref/api-io.texi (Ports): Add docs. * doc/ref/r6rs.texi (rnrs io ports): Remove docs.
Diffstat (limited to 'doc/ref/api-io.texi')
-rw-r--r--doc/ref/api-io.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/ref/api-io.texi b/doc/ref/api-io.texi
index ecbd35585..50296057f 100644
--- a/doc/ref/api-io.texi
+++ b/doc/ref/api-io.texi
@@ -1,7 +1,7 @@
@c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual.
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2007, 2009,
-@c 2010, 2011, 2013, 2016, 2019 Free Software Foundation, Inc.
+@c 2010, 2011, 2013, 2016, 2019, 2021 Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions.
@node Input and Output
@@ -125,6 +125,11 @@ Return @code{#t} if @var{port} is closed or @code{#f} if it is
open.
@end deffn
+@deffn {Scheme Procedure} call-with-port port proc
+Call @var{proc}, passing it @var{port} and closing @var{port} upon exit
+of @var{proc}. Return the return values of @var{proc}.
+@end deffn
+
@node Binary I/O
@subsection Binary I/O