MCPcopy Create free account
hub / github.com/NetHack/NetHack / disable_broadcast_trapping

Function disable_broadcast_trapping

sys/vms/vmsmail.c:438–451  ·  view source on GitHub ↗

return to 'normal'; $brkthru data goes straight to the terminal */

Source from the content-addressed store, hash-verified

436/* return to 'normal'; $brkthru data goes straight to the terminal
437 */
438unsigned long
439disable_broadcast_trapping(void) /* called by settty() */
440{
441 unsigned long sts = 1;
442
443 if (broadcasts >= 0) {
444 /* disable trapping; releases associated MBX so that SPAWN can work */
445 sts = smg$disable_broadcast_trapping(&pasteboard_id);
446 if (!vms_ok(sts))
447 errno = EVMSERR, vaxc$errno = sts;
448 flush_broadcasts(); /* don't hold on to any buffered ones */
449 }
450 return sts;
451}
452
453#else /* MAIL */
454

Callers 2

setttyFunction · 0.85
mainFunction · 0.85

Calls 1

flush_broadcastsFunction · 0.85

Tested by

no test coverage detected