Annotation of researchv10dc/cmd/oworm/scsi/testunit.c, revision 1.1

1.1     ! root        1: #include       "scsi.h"
        !             2: 
        !             3: s_testunit(id, drive)
        !             4: {
        !             5:        struct scsi_i input;
        !             6:        struct scsi_o output;
        !             7: 
        !             8:        input.bus_id = id;
        !             9:        input.cmd[0] = 0x0;
        !            10:        input.cmd[1] = drive<<5;
        !            11:        input.cmd[2] = 0;
        !            12:        input.cmd[3] = 0;
        !            13:        input.cmd[4] = 0;
        !            14:        input.cmd[5] = 0;
        !            15:        if(scsiio(&input, 0, &output, 0, "testunit") < 0)
        !            16:                return(1);
        !            17:        if(CHECK(output)){
        !            18:                prcheck(1, &output);
        !            19:                return(1);
        !            20:        } else
        !            21:                Fprint(1, "okay\n");
        !            22:        return(0);
        !            23: }

unix.superglobalmegacorp.com

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