1 ?MAKE:d_setgrent_r setgrent_r_proto: Inlibc Protochk i_systypes i_unistd
4 ?S: This variable conditionally defines the HAS_SETGRENT_R symbol,
5 ?S: which indicates to the C program that the setgrent_r()
6 ?S: routine is available.
9 ?S: This variable encodes the prototype of setgrent_r.
12 ?C: This symbol, if defined, indicates that the setgrent_r routine
13 ?C: is available to setgrent re-entrantly.
16 ?C: This symbol encodes the prototype of setgrent_r.
18 ?H:#$d_setgrent_r HAS_SETGRENT_R /**/
19 ?H:#define SETGRENT_R_PROTO $setgrent_r_proto /**/
22 ?LINT:set d_setgrent_r
23 ?LINT:set setgrent_r_proto
24 : see if setgrent_r exists
25 set setgrent_r d_setgrent_r
27 case "$d_setgrent_r" in
29 hdrs="$i_systypes sys/types.h $i_unistd unistd.h"
30 case "$setgrent_r_proto" in
31 '') try='extern int setgrent_r(FILE**);'
32 ./protochk "$try" $hdrs && setgrent_r_proto=I_H;
35 case "$setgrent_r_proto" in
36 '') try='extern void setgrent_r(FILE**);'
37 ./protochk "$try" $hdrs && setgrent_r_proto=V_H;
40 case "$setgrent_r_proto" in
41 '') d_setgrent_r=undef ; echo "Disabling setgrent_r, cannot find prototype." ;;
42 * ) setgrent_r_proto="REENTRANT_$setgrent_r_proto" ; echo "$try" ;;