[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `scm_c_read ()' and `swap_buffer' trick harmful

From: Neil Jerram
Subject: Re: `scm_c_read ()' and `swap_buffer' trick harmful
Date: Thu, 20 Nov 2008 22:25:26 +0000

2008/11/20 Ludovic Courtès <address@hidden>:
> In theory, yes.  In practice, the notion of "unbuffered port" is
> ill-defined, I'm afraid.  The `SCM_BUF0' flag probably can't be relied
> on, as it appears to be only really used on `fports.c'.  Actually, for
> some reason (probably copy & paste), make_cbip() creates ports with
> "SCM_OPN | SCM_RDNG | SCM_BUF0", although `SCM_BUF0' is probably not
> needed.  So I think "unbuffered port" means "read_buf_size <= 1".

That's what I was thinking too.  Please see the attached.


Attachment: 0001-Make-scm_c_read-use-caller-buffer-only-for-unbuffere.patch
Description: Text document

reply via email to

[Prev in Thread] Current Thread [Next in Thread]