1 ?RCS: Copyright (c) 2011, H.Merijn Brand & Tony Cook
3 ?RCS: You may redistribute only under the terms of the Artistic License,
4 ?RCS: as specified in the README file that comes with the distribution.
5 ?RCS: You may reuse parts of this distribution only within the terms of
6 ?RCS: that same Artistic License; a copy of which may be found at the root
7 ?RCS: of the source tree for dist 3.0.
9 ?MAKE:st_ino_size st_ino_sign: cat echo i_stdlib Setvar Compile run rm_try
10 ?MAKE: -pick add $@ %<
12 ?S: This variable contains the signedness of struct stat's st_ino.
13 ?S: 1 for unsigned, -1 for signed.
16 ?S: This variable contains the size of struct stat's st_ino in bytes.
19 ?C: This variable contains the size of struct stat's st_ino in bytes.
22 ?C: This symbol holds the signedness of struct stat's st_ino.
23 ?C: 1 for unsigned, -1 for signed.
25 ?H:#define ST_INO_SIGN $st_ino_sign /* st_ino sign */
26 ?H:#define ST_INO_SIZE $st_ino_size /* st_ino size */
29 : Check the size of st_ino
31 $echo "Checking the size of st_ino..." >&4
41 printf("%d\n", (int)sizeof(st.st_ino));
46 if eval $compile_ok; then
50 $echo "(I can't execute the test program--guessing $st_ino_size.)" >&4
53 $echo "Your st_ino is $st_ino_size bytes long."
58 $echo "(I can't compile the test program--guessing $st_ino_size.)" >&4
62 : Check if st_ino is signed
64 $echo "Checking the sign of st_ino..." >&4
78 if eval $compile; then
82 $echo "(I can't execute the test program--guessing unsigned.)" >&4
85 case "$st_ino_sign" in
86 1) $echo "Your st_ino is unsigned." ;;
87 -1) $echo "Your st_ino is signed." ;;
93 $echo "(I can't compile the test program--guessing unsigned.)" >&4