Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: libes@nist.gov (Don Libes)
Subject: Re: grantpt() on dec4.0d
Date: 1998/05/06	[thread overview]
Message-ID: <s6a3eenqqj4.fsf@muffin.nist.gov> (raw)
In-Reply-To: 354FB656.41C6@intersw.com


In article <354FB656.41C6@intersw.com> David Shaffer <dshaffer@intersw.com> writes:
   anyone know why grantpt would return -1 but not set errno?

It's most likely a bug in the utility underlying grantpt.

   i am using the pty examples from stevens apue book.  these work for text
   based examples.  when i use it w/ tcl, grantpt returns -1 w/o setting
   errno.

   btw.. forkpty() works.  but i don't think i can count on this for many
   platforms from what i have seen.

Yes, the pty code is different on almost every system - and it changes
from release to release.  Starting with Stevens is good but you've got
to finish by reading the man page for your specific system.  The
grantpt man page is actually pretty good and should discuss what you
are seeing.

Don



      reply	other threads:[~1998-05-06  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-05  4:00 grantpt() on dec4.0d David Shaffer
1998-05-06  4:00 ` Don Libes [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox