Annotation of researchv10dc/cmd/worm/oscsi/generic/stop.c, revision 1.1.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: gen_stop(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, 0x1B, iargs[0]<<5, 0, 0, 0, 0);
                     19:        if(n = s_io(0, &cmd, 0, &ret, 0, err))
                     20:                return(n);
                     21:        return(0);
                     22: }

unix.superglobalmegacorp.com

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