From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10eb76,5affcc9fcf662c13 X-Google-Attributes: gid10eb76,public X-Google-Thread: fee84,5affcc9fcf662c13 X-Google-Attributes: gidfee84,public From: libes@nist.gov (Don Libes) Subject: Re: grantpt() on dec4.0d Date: 1998/05/06 Message-ID: #1/1 X-Deja-AN: 350824700 References: <354FB656.41C6@intersw.com> Organization: National Institute of Standards and Technology Newsgroups: comp.unix.osf.osf1,comp.lang.tcl In article <354FB656.41C6@intersw.com> David Shaffer 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