From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: Libguile printer for ports on ttys. Date: Sat, 14 Nov 2009 14:09:03 +0000 Message-ID: <87hbsx19mo.fsf@ossau.uklinux.net> References: <00B60B1E-92DE-40EF-BDBB-1095A8A5E499@mac.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258207767 28270 80.91.229.12 (14 Nov 2009 14:09:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 14:09:27 +0000 (UTC) Cc: "guile-user@gnu.org" To: dskr Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Nov 14 15:09:20 2009 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.50) id 1N9JJW-0006VB-Ts for guile-user@m.gmane.org; Sat, 14 Nov 2009 15:09:19 +0100 Original-Received: from localhost ([127.0.0.1]:52695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9JJW-0004EJ-Bb for guile-user@m.gmane.org; Sat, 14 Nov 2009 09:09:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N9JJS-0004Dq-1a for guile-user@gnu.org; Sat, 14 Nov 2009 09:09:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N9JJN-0004CS-Bk for guile-user@gnu.org; Sat, 14 Nov 2009 09:09:13 -0500 Original-Received: from [199.232.76.173] (port=55064 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9JJN-0004Bz-4D for guile-user@gnu.org; Sat, 14 Nov 2009 09:09:09 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:54618) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N9JJM-0007Bx-22 for guile-user@gnu.org; Sat, 14 Nov 2009 09:09:08 -0500 Original-Received: from arudy (host86-145-153-90.range86-145.btcentralplus.com [86.145.153.90]) by mail3.uklinux.net (Postfix) with ESMTP id 4A1CA1F6AB1; Sat, 14 Nov 2009 14:09:07 +0000 (GMT) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id C0ACE38023; Sat, 14 Nov 2009 14:09:03 +0000 (GMT) In-Reply-To: <00B60B1E-92DE-40EF-BDBB-1095A8A5E499@mac.com> (dskr@mac.com's message of "Wed, 11 Nov 2009 16:07:48 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:7478 Archived-At: dskr writes: > The default libguile printer for port objects attempts to print TTY > names for fds for which are ttys. This printer fails when ttyname > returns null. This is the case, at least, on Mac OS X for master ptys. So isatty() returns TRUE, but ttyname() returns NULL (for the same port). Does that make sense, or is it arguably a Mac OS C library bug? (This is an open question. I don't really know what ptys are.) > Although Guile cannot typically make a master pty, it can inherit > one. I am trying to finish an extension library that provides full pty > support but could use a fix here. Assuming the above isn't a C library bug, can you suggest what Guile should print for a pty? Thanks, Neil