Annotation of researchv10dc/cmd/worm/oscsi/sony/diskid.c, revision 1.1

1.1     ! root        1: #include       <stdio.h>
        !             2: #include       "../scsi.h"
        !             3: #include       "../scsish.h"
        !             4: #include       "fns.h"
        !             5: 
        !             6: int
        !             7: sony_diskid(int niargs, int *iargs, int ncargs, char **cargs, char *err)
        !             8: {
        !             9:        struct scsi_cmd cmd;
        !            10:        struct scsi_return ret;
        !            11:        int n;
        !            12: 
        !            13: #pragma ref ncargs
        !            14: #pragma ref cargs
        !            15: 
        !            16:        if(niargs == 0)
        !            17:                iargs[0] = 0;
        !            18:        set6(cmd, 0xC2, iargs[0]<<5, 0, 0, 0, 0);
        !            19:        if(n = s_io(0, &cmd, 0, &ret, 1024, err))
        !            20:                return(n);
        !            21:        printf("(%d,%d) disk id block:\n", s_id, iargs[0]);
        !            22:        xd(ret.data, 1024, stdout);
        !            23:        return(0);
        !            24: }

unix.superglobalmegacorp.com

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