MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfReadDumpSector

Function adfReadDumpSector

dep/adflib/src/adf_dump.c:96–114  ·  view source on GitHub ↗

* adfReadDumpSector * */

Source from the content-addressed store, hash-verified

94 *
95 */
96RETCODE 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/*

Callers 7

adfMountHdFileFunction · 0.85
adfMountDevFunction · 0.85
adfReadRDSKblockFunction · 0.85
adfReadPARTblockFunction · 0.85
adfReadFSHDblockFunction · 0.85
adfReadLSEGblockFunction · 0.85
adfReadBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected