/[mldonkey]/mldonkey/src/config/mingw/os_stubs_c.c
ViewVC logotype

Diff of /mldonkey/src/config/mingw/os_stubs_c.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by spiralvoice, Sun Aug 7 17:39:30 2005 UTC revision 1.7 by spiralvoice, Sun Aug 28 10:47:39 2005 UTC
# Line 20  Line 20 
20  extern void enter_blocking_section();  extern void enter_blocking_section();
21  extern void leave_blocking_section();  extern void leave_blocking_section();
22    
23  extern int os_read(OS_FD fd, char *buf, int len)  extern ssize_t os_read(OS_FD fd, char *buf, size_t len)
24  {  {
25    DWORD numread;    DWORD numread;
26    BOOL ret;    BOOL ret;
# Line 37  extern int os_read(OS_FD fd, char *buf, Line 37  extern int os_read(OS_FD fd, char *buf,
37    return numread;    return numread;
38  }  }
39    
40  void os_ftruncate(OS_FD fd, int64 size)  void os_ftruncate(OS_FD fd, OFF_T size)
41  {  {
42    uint curpos;    uint curpos;
43    long ofs_low = (long) size;    long ofs_low = (long) size;
# Line 90  int64 os_getfilesize(char *path) Line 90  int64 os_getfilesize(char *path)
90    }    }
91  }  }
92    
93  int64 os_lseek(OS_FD fd, int64 ofs, int cmd)  OFF_T os_lseek(OS_FD fd, OFF_T ofs, int cmd)
94  {  {
95    long ret;    long ret;
96    long ofs_low = ofs;    long ofs_low = ofs;
# Line 105  int64 os_lseek(OS_FD fd, int64 ofs, int Line 105  int64 os_lseek(OS_FD fd, int64 ofs, int
105        uerror("os_lseek", Nothing);        uerror("os_lseek", Nothing);
106      }      }
107    }    }
108    return ((int64) ofs_high << 32 | ret);    return ((OFF_T) ofs_high << 32 | ret);
109  }  }
110    
111  #include <winsock2.h>  #include <winsock2.h>

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26