From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: port-filename documentation incorrect Date: Mon, 07 Feb 2011 21:41:19 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1297113220 10071 80.91.229.12 (7 Feb 2011 21:13:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 21:13:40 +0000 (UTC) To: bug-guile Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Feb 07 22:13:36 2011 Return-path: Envelope-to: guile-bugs@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 1PmYOt-0007Ls-8A for guile-bugs@m.gmane.org; Mon, 07 Feb 2011 22:13:35 +0100 Original-Received: from localhost ([127.0.0.1]:34628 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmYOt-0004PB-N5 for guile-bugs@m.gmane.org; Mon, 07 Feb 2011 16:13:35 -0500 Original-Received: from [140.186.70.92] (port=38091 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmYGE-0007h3-Vq for bug-guile@gnu.org; Mon, 07 Feb 2011 16:04:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmXpP-00010N-9R for bug-guile@gnu.org; Mon, 07 Feb 2011 15:36:56 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:50755 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmXpP-0000vH-75 for bug-guile@gnu.org; Mon, 07 Feb 2011 15:36:55 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id B27663F75 for ; Mon, 7 Feb 2011 15:37:11 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type; s=sasl; bh=o UUItbmObg40skeKGpL89ORFQVY=; b=jpv8bDRBOZQ4ZAfhIgZvTy+TLttV0yOnJ GzajH4JvJYdQX0aLFafHd1p9rp/RY1vSWWfQgctX40fp/UwbnKFtR9NdEBisFX0k p618kuIEuaeP7MZoZCp/ShleXzJjDZOq/SsHw6N+Fp8g9295qTpX85qNa4xgsRLi qMEBD1sSME= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=sasl; b=pSp MtM33Cc1RMy11XFUqqeSZPry1G3vY1u/CaRySmar1JxhKQaITaDd0WjwoeVDMojJ O0cSDUXEJy9osp4ra+R6+KdqIHwvwVJZFpIACICBF10lGIvRk2Xt4HLt1e+AVk3F tYdHnoxaSQ9/MRbejJzRCC4+EnIcJ6t7HkxLmjR8= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id AFFFB3F74 for ; Mon, 7 Feb 2011 15:37:11 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 4F2F13F73 for ; Mon, 7 Feb 2011 15:37:10 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 0A470F36-32FA-11E0-82EF-F13235C70CBC-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5080 Archived-At: Quoth the docs: -- Scheme Procedure: port-filename port -- C Function: scm_port_filename (port) Return the filename associated with PORT. This function returns the strings "standard input", "standard output" and "standard error" when called on the current input, output and error ports respectively. PORT must be open, `port-filename' cannot be used once the port is closed. But: scheme@(guile-user)> (port-filename (current-input-port)) $1 = #f And additionally, when connecting to a --listen socket: > (port-filename (current-input-port)) $3 = socket i.e. a symbol, not a string (!). Andy -- http://wingolog.org/