From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Libguile printer for ports on ttys. Date: Sat, 28 Aug 2010 13:34:44 -0700 Message-ID: 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: dough.gmane.org 1283027514 27760 80.91.229.12 (28 Aug 2010 20:31:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 20:31:54 +0000 (UTC) Cc: "guile-user@gnu.org" To: dskr Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Aug 28 22:31:52 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 1OpS47-0004dd-HM for guile-user@m.gmane.org; Sat, 28 Aug 2010 22:31:51 +0200 Original-Received: from localhost ([127.0.0.1]:55264 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpS46-0001io-Ro for guile-user@m.gmane.org; Sat, 28 Aug 2010 16:31:50 -0400 Original-Received: from [140.186.70.92] (port=42054 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OpS3o-0001hU-KQ for guile-user@gnu.org; Sat, 28 Aug 2010 16:31:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OpS3n-0006AP-MM for guile-user@gnu.org; Sat, 28 Aug 2010 16:31:32 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:54885 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OpS3n-0006AJ-Kd for guile-user@gnu.org; Sat, 28 Aug 2010 16:31:31 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id D9F84D1C2C; Sat, 28 Aug 2010 16:31:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=H6EC0VLZHSP2jpm35Z8o/U9ZAYs=; b=WPljLU OWBcX7kg6cwBN2NTvGVg//8Gi94YhsTnUXjFYQg00f1qjI9XYSNAHZhYgeXxkIRo xp2G+iXkQG4WyLQ1h68SAw2A7lExL+JMK3kuqeh5JEdFy0fr+RRqVSqUIVIg6QSq y+9lT2LKIY+4fmS67lbMA4+IDQU1I/o2TMuWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=AamdG1tBN1kgKf49Z0UZbw+ZpLMpJmdD IeiPOj6CegHYI8ksiPUbXiQeIc3s7Ws5Nk8lZ/x5/bb9Htc2gdbXU2gir/LDTYM3 T3JAsd9+zWJgTBvD+P6PhtrsxCPHXKs5QeUR+V9WosewhzPWgXgorK6vxs6NSf/m VSlqrb9jIWM= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C0EB1D1C29; Sat, 28 Aug 2010 16:31:29 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [75.28.21.123]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 45305D1C27; Sat, 28 Aug 2010 16:31:28 -0400 (EDT) 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.2 (gnu/linux) X-Pobox-Relay-ID: 3D25E072-B2E3-11DF-A214-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:8111 Archived-At: Hi Dan, A little late, but still... On Wed 11 Nov 2009 13:07, 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. > > 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. Why does ttyname() return NULL for an fd which isatty()? Is this a bug in Mac OS X? How does one discriminate between a failed call to ttyname() (e.g., on an fd that is not a tty), and a call to ttyname() on a valid but nameless tty? Thanks, Andy -- http://wingolog.org/