1 ?MAKE:d_strerror_r strerror_r_proto: Inlibc Protochk i_systypes i_dirent
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 ${i}_string string.h"
30 case "$strerror_r_proto" in
31 '') try='extern int strerror_r(int, char*, size_t);'
32 ./protochk "$try" $hdrs && strerror_r_proto=I_IBW;
35 case "$strerror_r_proto" in
36 '') try='extern char* strerror_r(int, char*, size_t);'
37 ./protochk "$try" $hdrs && strerror_r_proto=B_IBW;
40 case "$strerror_r_proto" in
41 '') d_strerror_r=undef ; echo "Disabling strerror_r, cannot find prototype." ;;
42 * ) strerror_r_proto="REENTRANT_$strerror_r_proto" ; echo "$try" ;;