zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: Alexey Tourbin <at@altlinux.ru>,
	zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: zpty
Date: Sat, 30 Aug 2003 20:33:32 +0100	[thread overview]
Message-ID: <20030830193333.193A9850C@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Alexey Tourbin"'s message of "Fri, 29 Aug 2003 15:03:33 +0400." <20030829110333.GB2661@julia.office.altlinux.ru>

Alexey Tourbin wrote:
> I'm new to this mailing list.  I've been using zsh for a while.
> Recently I found out that zpty actually does not work on my Linux
> system.

[This is about the internals and should really go to zsh-workers rather
than zsh-users, so I've redirected this follow up.]

> As I digged into the code, I saw those old-style /dev/ptyxx heuristics
> which may not work on some modern Linux systems because the location is
> changed to /dev/pts/xx.  Meanwhile there's an API in glibc for dealing
> with pseudo terminals.  So I reworked that code a bit.
> 
> Now it works fine for me.  Of course it's not portable, it works with
> glibc only.  But glibc is one of the most popular libc implementation,
> and it works not on Linux systems only.  So please consider whether this
> can be useful somehow.

This is very useful, thank you, but as with the NIS/NIS+ patch I just
commented on, it can't go in without some configuration test.  It looks
like testing for getpt, grantpt and unlockpt functions in zshconfig.ac
might do the trick (I see it also does some streams handling, which is
kernel-specific and we can't really assume, either), so we might be able
to do it; however, it won't happen straight away.

-- 
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk


       reply	other threads:[~2003-08-30 19:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030829110333.GB2661@julia.office.altlinux.ru>
2003-08-30 19:33 ` Peter Stephenson [this message]
2003-09-01  9:21 ` zpty Borzenkov Andrey
2004-03-17 12:58 zpty Oliver Kiddle
2004-03-17 13:57 ` zpty Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030830193333.193A9850C@pwstephenson.fsnet.co.uk \
    --to=pws@pwstephenson.fsnet.co.uk \
    --cc=at@altlinux.ru \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).