* adfReadDumpSector * */
| 94 | * |
| 95 | */ |
| 96 | RETCODE adfReadDumpSector(struct Device *dev, int32_t n, int size, uint8_t* buf) |
| 97 | { |
| 98 | struct nativeDevice* nDev; |
| 99 | int r; |
| 100 | /*puts("adfReadDumpSector");*/ |
| 101 | nDev = (struct nativeDevice*)dev->nativeDev; |
| 102 | r = fseek(nDev->fd, 512*n, SEEK_SET); |
| 103 | /*printf("nnn=%ld size=%d\n",n,size);*/ |
| 104 | if (r==-1) |
| 105 | return RC_ERROR; |
| 106 | /*puts("123");*/ |
| 107 | if ((r=fread(buf, 1, size, nDev->fd))!=size) { |
| 108 | /*printf("rr=%d\n",r);*/ |
| 109 | return RC_ERROR; |
| 110 | } |
| 111 | /*puts("1234");*/ |
| 112 | |
| 113 | return RC_OK; |
| 114 | } |
| 115 | |
| 116 | |
| 117 | /* |
no outgoing calls
no test coverage detected