search for: off_t_max

Displaying 4 results from an estimated 4 matches for "off_t_max".

2003 Apr 11
0
compilation errors
Hi- I always encounter the same two minor compilation issues which are easily addressed simply by a quick edit, but this time I figured I'd mention it in case you can work around it. This is on a BSD/OS 4.2 system. First, the generated config.h always creates a definition for OFF_T_MAX which conflicts with the one in the system's limits.h config.h defines: #define OFF_T_MAX LLONG_MAX whereas /usr/include/machine/limits.h defines: #define OFF_T_MAX UQUAD_MAX /* max value for an off_t */ I simply comment out the definition from config.h . Second, in src/lib/...
2007 May 17
1
[Bug 842] type fixes for progressmeter
...ent #4 from Damien Miller <djm at mindrot.org> 2007-05-17 20:25:22 --- Created an attachment (id=1287) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1287) make sftp use off_t Perhaps it would be better for sftp to use an off_t here? I don't think the OS would support files with OFF_T_MAX < size <= UINT64_MAX anyway -- Configure bugmail: http://bugzilla.mindrot.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
2005 Oct 28
3
Asserion Failure in Current CVS
...0 #17 0x080609d6 in main (argc=1, argv=0xbffffa44, envp=0xbffffa4c) at main.c:232 (gdb) frame #8 0x08073c33 in mbox_sync_rewrite (sync_ctx=0xbffff7d0, mail_ctx=0xbffff740, end_offset=Unhandled dwarf expression opcode 0x93 ) at mbox-sync-rewrite.c:447 447 i_assert(extra_space < OFF_T_MAX); (gdb) p extra_space Unhandled dwarf expression opcode 0x93
2002 Aug 05
5
[patch] read-devices
...*fname,char *sum) { - OFF_T i; + OFF_T i = 0; struct map_struct *buf; int fd; - OFF_T len = size; char tmpchunk[CSUM_CHUNK]; struct mdfour m; memset(sum,0,MD4_SUM_LENGTH); fd = do_open(fname, O_RDONLY, 0); if (fd == -1) return; - buf = map_file(fd,size); + buf = map_file(fd,OFF_T_MAX); /* map_ptr() will find out the real file size */ mdfour_begin(&m); - for(i = 0; i + CSUM_CHUNK <= len; i += CSUM_CHUNK) { - memcpy(tmpchunk, map_ptr(buf,i,CSUM_CHUNK), CSUM_CHUNK); - mdfour_update(&m, (uchar *)tmpchunk, CSUM_CHUNK); - } - - if (len - i > 0) { - memcpy(tmpc...