1 ?MAKE:d_strerror_r strerror_r_proto: Inlibc Protochk i_systypes i_string
4 ?S: This variable conditionally defines the HAS_STRERROR_R symbol,
5 ?S: which indicates to the C program that the strerror_r()
6 ?S: routine is available.
9 ?S: This variable encodes the prototype of strerror_r.
12 ?C: This symbol, if defined, indicates that the strerror_r routine
13 ?C: is available to strerror re-entrantly.
16 ?C: This symbol encodes the prototype of strerror_r.
18 ?H:#$d_strerror_r HAS_STRERROR_R /**/
19 ?H:#define STRERROR_R_PROTO $strerror_r_proto /**/
22 ?LINT:set d_strerror_r
23 ?LINT:set strerror_r_proto
24 : see if strerror_r exists
25 set strerror_r d_strerror_r
27 case "$d_strerror_r" in
29 hdrs="$i_systypes sys/types.h define stdio.h $i_string string.h"
30 case "$strerror_r_proto" in
31 '') try='int strerror_r(int, char*, size_t);'
32 ./protochk "extern $try" $hdrs && strerror_r_proto=I_IBW ;;
34 case "$strerror_r_proto" in
35 '') try='int strerror_r(int, char*, int);'
36 ./protochk "extern $try" $hdrs && strerror_r_proto=I_IBI ;;
38 case "$strerror_r_proto" in
39 '') try='char* strerror_r(int, char*, size_t);'
40 ./protochk "extern $try" $hdrs && strerror_r_proto=B_IBW ;;
42 case "$strerror_r_proto" in
43 '') d_strerror_r=undef
44 echo "Disabling strerror_r, cannot determine prototype." ;;
45 * ) case "$strerror_r_proto" in
47 *) strerror_r_proto="REENTRANT_PROTO_$strerror_r_proto" ;;
49 echo "Prototype: $try" ;;