-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
109 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
*.[oa] | ||
*~ | ||
mktorrent | ||
prefix |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include <stdlib.h> | ||
#include <sys/types.h> | ||
#include <stdio.h> | ||
|
||
#ifndef TYPE | ||
#define TYPE off_t | ||
#endif | ||
|
||
int main(int argc, char *argv[]) | ||
{ | ||
unsigned int i; | ||
char *prefix[9]; | ||
|
||
for (i = 0; i < 9; i++) | ||
prefix[i] = NULL; | ||
|
||
prefix[1] = "hh"; | ||
prefix[2] = "h"; | ||
|
||
prefix[8] = "ll"; | ||
prefix[sizeof(int)] = ""; | ||
prefix[sizeof(long int)] = "l"; | ||
|
||
#ifdef DEBUG | ||
#define xstr(s) str(s) | ||
#define str(s) #s | ||
|
||
#ifdef _LARGEFILE_SOURCE | ||
printf("_LARGEFILE_SOURCE is set\n"); | ||
#endif | ||
|
||
#ifdef _FILE_OFFSET_BITS | ||
printf("_FILE_OFFSET_BITS = %lu\n", _FILE_OFFSET_BITS); | ||
#endif | ||
|
||
printf("sizeof(" xstr(TYPE) ") = %lu, %lu bits\n", | ||
sizeof(TYPE), 8*sizeof(TYPE)); | ||
#endif /* DEBUG */ | ||
|
||
printf("%s\n", prefix[sizeof(TYPE)]); | ||
|
||
return EXIT_SUCCESS; | ||
} |
This file contains 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