* grantpt() on dec4.0d
@ 1998-05-05 4:00 David Shaffer
1998-05-06 4:00 ` Don Libes
0 siblings, 1 reply; 2+ messages in thread
From: David Shaffer @ 1998-05-05 4:00 UTC (permalink / raw)
anyone know why grantpt would return -1 but not set errno?
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: grantpt() on dec4.0d
1998-05-05 4:00 grantpt() on dec4.0d David Shaffer
@ 1998-05-06 4:00 ` Don Libes
0 siblings, 0 replies; 2+ messages in thread
From: Don Libes @ 1998-05-06 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1998-05-06 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-05 4:00 grantpt() on dec4.0d David Shaffer
1998-05-06 4:00 ` Don Libes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox