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

Function init_broadcast_trapping

sys/vms/vmsmail.c:396–412  ·  view source on GitHub ↗

initialize the broadcast manipulation code; SMG makes this easy */

Source from the content-addressed store, hash-verified

394/* initialize the broadcast manipulation code; SMG makes this easy
395*/
396unsigned long
397init_broadcast_trapping(void) /* called by setftty() [once only] */
398{
399 unsigned long sts, preserve_screen_flag = 1;
400
401 /* we need a pasteboard to pass to the broadcast setup/teardown routines */
402 sts = smg$create_pasteboard(&pasteboard_id, 0, 0, 0,
403 &preserve_screen_flag);
404 if (!vms_ok(sts)) {
405 errno = EVMSERR, vaxc$errno = sts;
406 raw_print("");
407 perror("?can't create SMG pasteboard for broadcast trapping");
408 wait_synch();
409 broadcasts = -1; /* flag that trapping is currently broken */
410 }
411 return sts;
412}
413
414/* set up the terminal driver to deliver $brkthru data to a mailbox device
415 */

Callers 2

setfttyFunction · 0.85
mainFunction · 0.85

Calls 2

raw_printFunction · 0.85
wait_synchFunction · 0.85

Tested by

no test coverage detected