Created
November 6, 2014 07:33
-
-
Save theonewolf/7d2b5208c2ee8bb7abed to your computer and use it in GitHub Desktop.
off_t size test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: off-test32 off-test64 | |
off-test32: off-test32.c | |
gcc off-test32.c -o off-test32 | |
off-test64: off-test64.c | |
gcc off-test64.c -o off-test64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
fprintf(stdout, "off_t size: %lu\n", sizeof(off_t)); | |
return EXIT_SUCCESS; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _FILE_OFFSET_BITS 64 | |
#include <stdio.h> | |
#include <stdlib.h> | |
int main(int argc, char* argv[]) | |
{ | |
fprintf(stdout, "off_t size: %lu\n", sizeof(off_t)); | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment