delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Thu, 4 Jan 2001 17:41:26 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Cc: | ehud AT unix DOT simonwiesel DOT co DOT il |
Subject: | Re: How to create tty/pty pair ? |
Message-ID: | <20010104174126.B23713@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com, ehud AT unix DOT simonwiesel DOT co DOT il |
References: | <200012302119 DOT XAA26674 AT linux.> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <200012302119.XAA26674@linux.>; from ehud@unix.simonwiesel.co.il on Sat, Dec 30, 2000 at 11:19:17PM +0200 |
On Sat, Dec 30, 2000 at 11:19:17PM +0200, Ehud Karni wrote: >I do not know how to make a tty/pty pair with Cygwin. /dev/ptmx is the mechanism. Here is some sample code: char *slave; int om = open ("/dev/ptmx", O_RDWR); if (om < 0) die ("/dev/ptmx", 1); if (grantpt (om) < 0) die ("grantpt", 2); if (unlockpt (om) < 0) die ("unlockpt", 3); slave = ptsname (om); if (slave == NULL) die ("ptsname", 4); cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |