esint8 ioman_writeSector(IOManager *ioman, euint32 address, euint8* buf) { esint8 r; if(buf==0)return(-1); r=if_writeBuf(ioman->iface,address,buf); if(r<=0){ return(-1); } return(0); }
signed char ioman_writeSector(IOManager *ioman, unsigned long address, unsigned char* buf) { signed char r; if(buf==0)return(-1); r=if_writeBuf(ioman->iface,address,buf); if(r<=0){ ioman_setError(ioman,IOMAN_ERR_WRITEFAIL); return(-1); } return(0); }
esint8 ioman_writeSector(IOManager *ioman, euint32 address, euint8* buf) { esint8 r; if(buf==0)return(-1); r=if_writeBuf(ioman->iface,address,buf); if(r<=0){ ioman_setError(ioman,IOMAN_ERR_WRITEFAIL); return(-1); } return(0); }
/* **************************************************************************** * eint16 part_writeBuf(Partition *part,euint32 address,euint8* buf) * Description: This function writes 512 bytes, from buf. It's offset is address * sectors from the beginning of the partition. * Return value: It returns whatever the hardware function returns. (-1=error) */ eint16 part_writeBuf(Partition *part,euint32 address,euint8* buf) { /*DBG((TXT("part_writeBuf :: %li\n"),address));*/ return(if_writeBuf(part->disc->ioman->iface,part_getRealLBA(part,address),buf)); }