From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.user Subject: Re: sharing a file descriptor with a port Date: Sat, 18 Sep 2010 08:29:28 +0200 Message-ID: <20100918062928.GB27074@yeeloong> References: <20100917093046.GA32484@securactive.net> <87aang13se.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1284791411 7739 80.91.229.12 (18 Sep 2010 06:30:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2010 06:30:11 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 18 08:30:10 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Owqw1-0006yK-8G for guile-user@m.gmane.org; Sat, 18 Sep 2010 08:30:05 +0200 Original-Received: from localhost ([127.0.0.1]:47345 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owqw0-0006Qy-JG for guile-user@m.gmane.org; Sat, 18 Sep 2010 02:30:04 -0400 Original-Received: from [140.186.70.92] (port=47586 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owqvv-0006Qt-4s for guile-user@gnu.org; Sat, 18 Sep 2010 02:30:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Owqvt-0007r6-Ma for guile-user@gnu.org; Sat, 18 Sep 2010 02:29:58 -0400 Original-Received: from smtp5-g21.free.fr ([212.27.42.5]:40620) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Owqvs-0007qj-T4 for guile-user@gnu.org; Sat, 18 Sep 2010 02:29:57 -0400 Original-Received: from apc.happyleptic.org (unknown [82.67.194.89]) by smtp5-g21.free.fr (Postfix) with ESMTP id 5C2ACD480D2 for ; Sat, 18 Sep 2010 08:29:50 +0200 (CEST) Original-Received: from yeeloong (unknown [192.168.1.41]) by apc.happyleptic.org (Postfix) with SMTP id B5E6533812 for ; Sat, 18 Sep 2010 08:40:39 +0200 (CEST) Original-Received: by yeeloong (sSMTP sendmail emulation); Sat, 18 Sep 2010 08:29:28 +0200 Mail-Followup-To: rixed@happyleptic.org, guile-user@gnu.org Content-Disposition: inline In-Reply-To: <87aang13se.fsf@ambire.localdomain> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8175 Archived-At: -[ Fri, Sep 17, 2010 at 11:03:13PM +0200, Thien-Thi Nguyen ]---- > Perhaps you can make a port first; then use ???port->fdes??? > for file-descriptor based access; then close the port. Wait a minute, you can close a port ? ... check check check ... Ooooooookay. I might be blind somehow : Althoug I did see the fport_close() function, I though it was only called by fport_free(). Of course there is this nice scm_close_port function that calls it too, and then destroys the port. This is what I was after. Now I can close the file and destroy the port too. Thank you for the hint ! :) Ashamedly yours,