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