guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Libguile printer for ports on ttys.


From: Andy Wingo
Subject: Re: Libguile printer for ports on ttys.
Date: Sat, 28 Aug 2010 13:34:44 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Hi Dan,

A little late, but still...

On Wed 11 Nov 2009 13:07, dskr <address@hidden> 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/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]