*BSD News Article 27020


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!usc!howland.reston.ans.net!xlink.net!boss.pem-stuttgart.de!delos.stgt.sub.org!luva!migieger
From: migieger@luva.stgt.sub.org (Michael Giegerich)
Subject: Re: Help: tcsh doesn't work with FreeBSD
References: <ghGh_3u00WB9Mfv3Yj@andrew.cmu.edu> <g89r4222.760173574@kudu>
Organization: private FreeBSD site
Date: Sun, 6 Feb 1994 12:12:39 GMT
Message-ID: <CKsxxI.1Iv@luva.stgt.sub.org>
Lines: 56

In article <g89r4222.760173574@kudu>,
Geoff Rehmet <g89r4222@kudu.ru.ac.za> wrote:
>In <ghGh_3u00WB9Mfv3Yj@andrew.cmu.edu> "N. R. Natraj" <nn07+@andrew.cmu.edu> writes:
>
>>I have FreeBSD 1.0.2 running on my machine and when I start tcsh I get
>>the following
>
>>Warning: no access to tty (Operation not supported by device).
>>Thus no job control in this shell.
>
>>I looked through the source code and figured out where this message was
>>coming from. It looks like there seems to be a problem with the group to
>>which I belong to. Since I am not very familiar with this stuff I would
>>greatly appreciate any help on fixing this. Thanks in advance.
>
>I have seen this problem before (but haven't ever tried to trace
>the cause).  Generally logging out and logging in again sets
>things to rights again.....
>

I got this from Frank Terhaar-Yonk; I only put it in patch form...
(cut the following lines; then apply `patch < patchfile').

---------- snip --------- snip --------- snip --------- snip ---------
*** tc.disc.c.old	Thu Jul  8 06:52:48 1993
--- tc.disc.c	Thu Dec 30 15:18:44 1993
***************
*** 154,159 ****
--- 154,163 ----
  
  #ifndef HAVE_DISC
  # if defined(TIOCGETD) && defined(NTTYDISC)
+ #  ifndef BOGUS
+     oldisc = -1;
+     return (0);
+ #  else
      if (ioctl(f, TIOCGETD, (ioctl_t) & oldisc) == 0) {
  	if (oldisc != NTTYDISC) {
  	    int     ldisc = NTTYDISC;
***************
*** 168,173 ****
--- 172,178 ----
      }
      else
  	return (-1);
+ #  endif /* !BOGUS */
  # else
      return (0);
  # endif	/* TIOCGETD && NTTYDISC */
---------- snip --------- snip --------- snip --------- snip ---------

-Michael
-- 
------------------------------+------------------------------
Michael Giegerich             | migieger@luva.stgt.sub.org
------------------------------+------------------------------