From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6fea83d0221c3b10 X-Google-Attributes: gid1164f8,public X-Google-Thread: 10b612,6fea83d0221c3b10 X-Google-Attributes: gid10b612,public X-Google-ArrivalTime: 1992-07-17 06:59:24 PST Xref: sparky comp.sys.dec:4071 comp.unix.ultrix:5742 Newsgroups: comp.sys.dec,comp.unix.ultrix Path: sparky!uunet!gumby!destroyer!news.iastate.edu!john From: john@iastate.edu (John Hascall) Subject: ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) Message-ID: <1992Jul17.194211.16289@news.iastate.edu> Sender: news@news.iastate.edu (USENET News System) Organization: Iowa State University, Ames, IA References: <1992Jul17.164906.7087@news.iastate.edu> Date: Fri, 17 Jul 1992 19:42:11 GMT I ask: }> Is there someway to configure a (headless) DECstation so that a BREAK on the }> console tty line halts the processor? vixie@pa.dec.com (Paul A Vixie) writes: }no. only the decsystem 5400/5500/5800 and VAX lines have this feature. Well that makes this question academic, but it's still bugging me. Why does the ioctl(TIOCSBRK) work (apparently), but the ioctl(TIOCCBRK) gets errno 25 (ENOTTY, "Not a typewriter")??? errno = 0; /* just in case */ if (-1 == ioctl(fdtty, TIOCSBRK, (char *)0)) { /* ... bitch about errno and exit ... */ } sleep(3); errno = 0; /* just in case */ if (-1 == ioctl(fdtty, TIOCCBRK, (char *)0)) { /* ... bitch about errno and exit ... */ } If it makes a difference, fdtty is a LAT tty `connected' with lcp -h. John -- John Hascall Our liberties we prize and our rights we will maintain Project Vincent Iowa State University Computation Center john@iastate.edu Ames, IA 50011 515/294-9551 [fax -1717]