1 #define _FILE_OFFSET_BITS 64
3 #define FILE_TO_TEST "Makefile"
25 fp
= fopen( FILE_TO_TEST
, "r" ) ;
28 result1
= (sizeof(x
) == 8) ;
29 result2
= fseeko( fp
, x
, SEEK_SET
) ;
33 result1
= (sizeof(x
) == 8) ;
34 result2
= fseeko64( fp
, x
, SEEK_SET
) ;
36 if ( result2
) perror("error") ;
37 fprintf(stdout
,"pointer is 8 bytes: %s\n",result1
?"true":"false") ;
38 fprintf(stdout
,"seek returns correctly: %s\n",!result2
?"true":"false") ;
39 if ( result1
&& !result2
) {
40 fprintf(stdout
,"status: OK\n") ;
43 fprintf(stdout
,"status: BUMMER\n") ;