Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: john@iastate.edu (John Hascall)
Subject: ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK)
Date: Fri, 17 Jul 1992 19:42:11 GMT	[thread overview]
Message-ID: <1992Jul17.194211.16289@news.iastate.edu> (raw)
In-Reply-To: VIXIE.92Jul17100753@cognition.pa.dec.com

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]


  parent reply	other threads:[~1992-07-17 19:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-07-17 16:49 Halting a DECstation via BREAK John Hascall
1992-07-17 14:07 ` Paul A Vixie
1992-07-17 18:49   ` Dave Rasmussen
1992-07-17 21:38     ` J. Dean Brock
1992-07-22 23:21       ` AJ Casamento
1992-07-17 19:42   ` John Hascall [this message]
1992-07-17 22:42     ` ioctl(TIOC[CS]BRK) woes (was Re: Halting a DECstation via BREAK) Matt Thomas
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