Annotation of researchv10dc/cmd/oworm/oscsi/start.c, revision 1.1

1.1     ! root        1: #include       "scsi.h"
        !             2: 
        !             3: static
        !             4: start(drive, st)
        !             5: {
        !             6:        struct scsi_i input;
        !             7:        struct scsi_o output;
        !             8: 
        !             9:        input.bus_id = 1<<scsi_id;
        !            10:        input.cmd[0] = 0x1B;
        !            11:        input.cmd[1] = drive<<5;
        !            12:        input.cmd[2] = 0;
        !            13:        input.cmd[3] = 0;
        !            14:        input.cmd[4] = st;
        !            15:        input.cmd[5] = 0;
        !            16:        if(scsiio(&input, &output, 0, "start") < 0)
        !            17:                return(1);
        !            18:        if(CHECK(output)){
        !            19:                scsidump(&output);
        !            20:                return(1);
        !            21:        }
        !            22:        return(0);
        !            23: }
        !            24: 
        !            25: s_start(drive)
        !            26: {
        !            27:        return(start(drive, 1));
        !            28: }
        !            29: 
        !            30: s_stop(drive)
        !            31: {
        !            32:        return(start(drive, 0));
        !            33: }

unix.superglobalmegacorp.com

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