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

Function adfWriteDumpSector

dep/adflib/src/adf_dump.c:121–136  ·  view source on GitHub ↗

* adfWriteDumpSector * */

Source from the content-addressed store, hash-verified

119 *
120 */
121RETCODE 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/*

Callers 5

adfWriteRDSKblockFunction · 0.85
adfWritePARTblockFunction · 0.85
adfWriteFSHDblockFunction · 0.85
adfWriteLSEGblockFunction · 0.85
adfWriteBlockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected