- Forum
- Usenet
- COMP.OS.MSDOS.DJGPP
-
Large files?
From
[via djgpp@delorie.com]" @21:1/5 to All on Sat Aug 15 12:16:19 2020
Hi all,
Does DJGPP somehow support large files?
I'm still working on building the Schily tools. This is an excerpt
from its "configure" script -- it detects large file support:
cat > conftest.$ac_ext <<EOF
#line 21399 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int main() {
/*
* Check that off_t can represent 2**63 - 1 correctly.
* We can't simply "#define LARGE_OFF_T 9223372036854775807",
* since some C++ compilers masquerading as C compilers
* incorrectly reject 9223372036854775807.
*/
# define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
&& LARGE_OFF_T % 2147483647 == 1)
? 1 : -1];
return !fseeko;
return !ftello;
; return 0; }
EOF
if { { eval echo configure:21419: \"$ac_compile\" ;} 1>&5; { eval
$ac_compile ;} 2>&5; }; then
rm -rf conftest*
ac_cv_largefiles=yes
else
..
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)