"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stream.c" between
mtools-4.0.35.tar.bz2 and mtools-4.0.36.tar.bz2

About: Mtools is a collection of utilities to access MS-DOS disks from Unix without mounting them.

stream.c  (mtools-4.0.35.tar.bz2):stream.c  (mtools-4.0.36.tar.bz2)
skipping to change at line 34 skipping to change at line 34
void limitSizeToOffT(size_t *len, mt_off_t maxLen) void limitSizeToOffT(size_t *len, mt_off_t maxLen)
{ {
#if SIZEOF_SIZE_T >= SIZEOF_MT_OFF_T #if SIZEOF_SIZE_T >= SIZEOF_MT_OFF_T
if(*len > (size_t) maxLen) if(*len > (size_t) maxLen)
#else #else
if(*len > maxLen) if(*len > maxLen)
#endif #endif
*len = (size_t) maxLen; *len = (size_t) maxLen;
} }
void init_head(Stream_t *Stream, struct Class_t *Class, Stream_t *Next)
{
Stream->Class = Class;
Stream->refs = 1;
Stream->Next = Next;
}
int flush_stream(Stream_t *Stream) int flush_stream(Stream_t *Stream)
{ {
int ret=0; int ret=0;
if(!batchmode) { if(!batchmode) {
if(Stream->Class->flush) if(Stream->Class->flush)
ret |= Stream->Class->flush(Stream); ret |= Stream->Class->flush(Stream);
if(Stream->Next) if(Stream->Next)
ret |= flush_stream(Stream->Next); ret |= flush_stream(Stream->Next);
} }
return ret; return ret;
skipping to change at line 93 skipping to change at line 100
{ {
return 0; return 0;
} }
int get_data_pass_through(Stream_t *Stream, time_t *date, mt_off_t *size, int get_data_pass_through(Stream_t *Stream, time_t *date, mt_off_t *size,
int *type, uint32_t *address) int *type, uint32_t *address)
{ {
return GET_DATA(Stream->Next, date, size, type, address); return GET_DATA(Stream->Next, date, size, type, address);
} }
ssize_t read_pass_through(Stream_t *Stream, char *buf, ssize_t pread_pass_through(Stream_t *Stream, char *buf,
mt_off_t start, size_t len) mt_off_t start, size_t len)
{ {
return READS(Stream->Next, buf, start, len); return PREADS(Stream->Next, buf, start, len);
} }
ssize_t write_pass_through(Stream_t *Stream, char *buf, ssize_t pwrite_pass_through(Stream_t *Stream, char *buf,
mt_off_t start, size_t len) mt_off_t start, size_t len)
{ {
return WRITES(Stream->Next, buf, start, len); return PWRITES(Stream->Next, buf, start, len);
} }
doscp_t *get_dosConvert_pass_through(Stream_t *Stream) doscp_t *get_dosConvert_pass_through(Stream_t *Stream)
{ {
return GET_DOSCONVERT(Stream->Next); return GET_DOSCONVERT(Stream->Next);
} }
/* /*
* Adjust number of total sectors by given offset in bytes * Adjust number of total sectors by given offset in bytes
*/ */
 End of changes. 5 change blocks. 
6 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)