summaryrefslogtreecommitdiff
path: root/module/system/base
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2016-04-02 11:50:46 +0200
committerAndy Wingo <wingo@pobox.com>2016-04-04 16:30:56 +0200
commit59a18451b8bc70fe9cb9b9f41e61bbfa9e0e86be (patch)
treee4665183a3a144d60bb563e0f61260ff94393c1a /module/system/base
parent0a0a8d819db685e240f0a27404ffd167654b7f85 (diff)
Use symbols instead of _IONBF values as args to setvbuf
* libguile/ports.c (scm_setvbuf): Use the symbols `none', `line', and `block' instead of the values `_IONBF', `_IOLBF', and `_IOFBF'. * NEWS: Update. * doc/ref/posix.texi (Ports and File Descriptors): Update setvbuf documentation. * module/ice-9/deprecated.scm (define-deprecated): New helper. (_IONBF, _IOLBF, _IOFBF): Define deprecated values. * benchmark-suite/benchmarks/read.bm ("read"): * benchmark-suite/benchmarks/uniform-vector-read.bm ("uniform-vector-read!"): * libguile/r6rs-ports.c (cbip_fill_input): * module/system/base/types.scm (%ffi-memory-backend): * module/web/client.scm (open-socket-for-uri): * module/web/server/http.scm (http-read): * test-suite/tests/ports.test ("pipe, fdopen, and line buffering"): ("setvbuf"): * test-suite/tests/r6rs-ports.test ("7.2.7 Input Ports"): Update to use non-deprecated interfaces.
Diffstat (limited to 'module/system/base')
-rw-r--r--module/system/base/types.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/system/base/types.scm b/module/system/base/types.scm
index 26760d1d1..ea2f3bcaf 100644
--- a/module/system/base/types.scm
+++ b/module/system/base/types.scm
@@ -99,7 +99,7 @@
(let ((port (make-custom-binary-input-port "ffi-memory"
read-memory!
#f #f #f)))
- (setvbuf port _IONBF)
+ (setvbuf port 'none)
port)))
(memory-backend dereference-word open #f)))