Annotation of 43BSD/ingres/source/monitor/syscntrl.c, revision 1.1

1.1     ! root        1: # include "monitor.h"
        !             2: # include <func.h>
        !             3: # include <pipes.h>
        !             4: # include <sccs.h>
        !             5: 
        !             6: SCCSID(@(#)syscntrl.c  8.1     12/31/84)
        !             7: 
        !             8: 
        !             9: 
        !            10: /*
        !            11: **  TRACE -- set/clear trace information dynamically.
        !            12: **
        !            13: **     Parameters:
        !            14: **             none.
        !            15: **
        !            16: **     Returns:
        !            17: **             none.
        !            18: **
        !            19: **     Side Effects:
        !            20: **             Sends the rest of the input line to all processes
        !            21: **             and calls tTamper on the rest of the input line.
        !            22: **
        !            23: **     Trace Flags:
        !            24: **             32
        !            25: */
        !            26: 
        !            27: trace()
        !            28: {
        !            29:        pb_t    pb;
        !            30:        char    buf[120];
        !            31: 
        !            32:        /* get rest of trace command */
        !            33:        pb_prime(&pb, PB_TRACE);
        !            34:        pb.pb_proc = PB_WILD;
        !            35:        if (fgets(buf, sizeof buf, Input) == NULL)
        !            36:                syserr("syscntrl: bad read");
        !            37:        Prompt = TRUE;
        !            38:        tTamper(buf, FuncVect[0]->fn_tflag, FuncVect[0]->fn_tvect, FuncVect[0]->fn_tsize);
        !            39:        pb_put(buf, length(buf), &pb);
        !            40: 
        !            41:        pb.pb_stat |= PB_INFO;
        !            42:        pb_flush(&pb);
        !            43: }
        !            44: /*
        !            45: **  RESET -- do a system reset.
        !            46: **
        !            47: **     Parameters:
        !            48: **             none.
        !            49: **
        !            50: **     Returns:
        !            51: **             none.
        !            52: **
        !            53: **     Side Effects:
        !            54: **             Sends a reset block to all processes
        !            55: **             and calls cm_reset in the monitor.
        !            56: */
        !            57: 
        !            58: reset()
        !            59: {
        !            60:        pb_t    pb;
        !            61: 
        !            62:        pb_prime(&pb, PB_RESET);
        !            63:        pb.pb_proc = PB_WILD;
        !            64:        pb.pb_stat |= PB_INFO;
        !            65:        pb_flush(&pb);
        !            66:        cm_reset();
        !            67: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.