|
|
1.1 ! root 1: #include <stdio.h> ! 2: #include "../scsi.h" ! 3: #include "../scsish.h" ! 4: #include "fns.h" ! 5: ! 6: int ! 7: sony_rel(int niargs, int *iargs, int ncargs, char **cargs, char *err) ! 8: { ! 9: struct scsi_cmd cmd; ! 10: struct scsi_return ret; ! 11: int n, i, j; ! 12: ! 13: #pragma ref niargs ! 14: ! 15: if(ncargs == 0){ ! 16: i = 0; ! 17: j = 0; /* its ignored anyway */ ! 18: } else { ! 19: i = 1; ! 20: if((j = shelfside(cargs[0], err)) < 0) ! 21: return(1); ! 22: } ! 23: set6(cmd, 0xD7, (iargs[0]<<5)|i, 0, j, 0, 0); ! 24: if(n = s_io(0, &cmd, 0, &ret, 0, err)) ! 25: return(n); ! 26: return(0); ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.