From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Bindings for =?utf-8?B?4oCYc2VuZGZpbGXigJk=?= Date: Tue, 09 Apr 2013 10:33:25 +0200 Message-ID: <87r4ik5ciy.fsf@zigzag.favinet> References: <87ip4liufs.fsf@gnu.org> <878v5hbblk.fsf@tines.lan> <87obed2iqo.fsf@gnu.org> <87sj32rubt.fsf@inria.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1365496268 25761 80.91.229.3 (9 Apr 2013 08:31:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Apr 2013 08:31:08 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Apr 09 10:31:12 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UPTxP-0007i8-0T for guile-devel@m.gmane.org; Tue, 09 Apr 2013 10:31:11 +0200 Original-Received: from localhost ([::1]:38524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTxO-0004eT-Jg for guile-devel@m.gmane.org; Tue, 09 Apr 2013 04:31:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTxI-0004VQ-Cn for guile-devel@gnu.org; Tue, 09 Apr 2013 04:31:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPTxH-0003LX-1K for guile-devel@gnu.org; Tue, 09 Apr 2013 04:31:04 -0400 Original-Received: from smtp209.alice.it ([82.57.200.105]:43878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPTxG-0003L1-Na for guile-devel@gnu.org; Tue, 09 Apr 2013 04:31:02 -0400 Original-Received: from zigzag.favinet (79.21.50.27) by smtp209.alice.it (8.6.060.15) id 511CF61A0830CE43 for guile-devel@gnu.org; Tue, 9 Apr 2013 10:30:59 +0200 Original-Received: from ttn by zigzag.favinet with local (Exim 4.72) (envelope-from ) id 1UPTzi-0003jC-EI for guile-devel@gnu.org; Tue, 09 Apr 2013 10:33:34 +0200 In-Reply-To: <87sj32rubt.fsf@inria.fr> ("Ludovic =?utf-8?Q?Court=C3=A8s=22?= =?utf-8?Q?'s?= message of "Sun, 07 Apr 2013 21:53:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.105 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16202 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () ludo@gnu.org (Ludovic Court=C3=A8s) () Sun, 07 Apr 2013 21:53:26 +0200 +In other cases, the libc function may send fewer bytes than +@var{count}---for instance because @var{out} is a slow or limited +device, such as a pipe. When that happens, Guile's @code{sendfile} +automatically retries until exactly @var{count} bytes were sent or an +error occurs. A short write is an opportunity for the caller to Do Something Else (i.e., go asynchronous). I think that is more useful than internalizing the looping. To accomodate both usage patterns, you could leave the low-level proc as-is (as-was :-D) and provide another proc that loops. =2D-=20 Thien-Thi Nguyen GPG key: 4C807502 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAlFj0lgACgkQZwMiJEyAdQKvvgCdHEJUtpioHmXegU0KoBQNjVF/ FscAniLPO9L9WfCYakdeVKjFMKhVR8dl =CU+f -----END PGP SIGNATURE----- --=-=-=--