* adfWriteDumpSector * */
| 119 | * |
| 120 | */ |
| 121 | RETCODE adfWriteDumpSector(struct Device *dev, int32_t n, int size, uint8_t* buf) |
| 122 | { |
| 123 | struct nativeDevice* nDev; |
| 124 | int r; |
| 125 | |
| 126 | nDev = (struct nativeDevice*)dev->nativeDev; |
| 127 | |
| 128 | r=fseek(nDev->fd, 512*n, SEEK_SET); |
| 129 | if (r==-1) |
| 130 | return RC_ERROR; |
| 131 | |
| 132 | if ( fwrite(buf, 1, size, nDev->fd)!=(unsigned int)(size) ) |
| 133 | return RC_ERROR; |
| 134 | /*puts("adfWriteDumpSector");*/ |
| 135 | return RC_OK; |
| 136 | } |
| 137 | |
| 138 | |
| 139 | /* |
no outgoing calls
no test coverage detected