Annotation of researchv10no/cmd/worm/oscsi/sony/eject.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: sony_eject(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 niargs
                     14: #pragma ref ncargs
                     15: #pragma ref cargs
                     16: 
                     17:        set6(cmd, 0xC0, iargs[0]<<5, 0, 0, 0, 0);
                     18:        if(n = s_io(0, &cmd, 0, &ret, 0, err))
                     19:                return(n);
                     20:        return(0);
                     21: }

unix.superglobalmegacorp.com

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