MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_check_interrupt

Function db_check_interrupt

freebsd/ddb/db_input.c:364–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void
365db_check_interrupt(void)
366{
367 int c;
368
369 c = cnmaygetc();
370 switch (c) {
371 case -1: /* no character */
372 return;
373
374 case CTRL('c'):
375 db_error((char *)0);
376 /*NOTREACHED*/
377
378 case CTRL('s'):
379 do {
380 c = cnmaygetc();
381 if (c == CTRL('c'))
382 db_error((char *)0);
383 } while (c != CTRL('q'));
384 break;
385
386 default:
387 /* drop on floor */
388 break;
389 }
390}

Callers 1

db_putcFunction · 0.85

Calls 2

cnmaygetcFunction · 0.85
db_errorFunction · 0.85

Tested by

no test coverage detected