Changeset 1293 for trunk/src/emx/testcase
- Timestamp:
 - Mar 15, 2004, 3:51:27 PM (22 years ago)
 - File:
 - 
      
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/src/emx/testcase/libc/miscinnotek/64bitio.c
- 
Property       cvs2svn:cvs-rev
 changed from       
1.1to1.2 
r1292 r1293 18 18 #include <errno.h> 19 19 #include <sys/stat.h> 20 #include <limits.h> 21 #include <io.h> 20 22 21 23 #define FILENAME "3gb.file" … … 28 30 struct stat s; 29 31 int rc; 32 33 /* 34 * Check for 64bit support. 35 */ 36 if (sizeof(off_t) != sizeof(long long)) 37 { 38 printf("64bitio: sizeof(off_t) != sizeof(long long) (%d != %d)\n", 39 sizeof(off_t), sizeof(long long)); 40 return 1; 41 } 42 if (sizeof(off_t) == sizeof(long)) 43 { 44 printf("64bitio: sizeof(off_t) == sizeof(long) (%d)\n", 45 sizeof(long)); 46 return 1; 47 } 48 if (OFF_MAX <= LONG_MAX) 49 { 50 printf("64bitio: OFF_MAX <= LONG_MAX; LONG_MAX=%lld OFF_MAX=%lld\n", 51 (long long)LONG_MAX, (long long)OFF_MAX); 52 return 1; 53 } 54 #if OFF_MAX > LONG_MAX 55 #else 56 printf("64bitio: #if OFF_MAX > LONG_MAX failed\n"); 57 return 1; 58 #endif 59 #if LONG_MAX < OFF_MAX 60 #else 61 printf("64bitio: #if LONG_MAX < OFF_MAX failed\n"); 62 return 1; 63 #endif 30 64 31 65 /*  - 
Property       cvs2svn:cvs-rev
 changed from       
 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  