Commit | Line | Data |
---|---|---|
569da30e | 1 | ?MAKE:d_getnetent_r getnetent_r_proto: Inlibc Protochk i_systypes i_netdb |
46953654 JH |
2 | ?MAKE: -pick add $@ %< |
3 | ?S:d_getnetent_r: | |
4 | ?S: This variable conditionally defines the HAS_GETNETENT_R symbol, | |
5 | ?S: which indicates to the C program that the getnetent_r() | |
6 | ?S: routine is available. | |
7 | ?S:. | |
8 | ?S:getnetent_r_proto: | |
9 | ?S: This variable encodes the prototype of getnetent_r. | |
10 | ?S:. | |
11 | ?C:HAS_GETNETENT_R: | |
12 | ?C: This symbol, if defined, indicates that the getnetent_r routine | |
13 | ?C: is available to getnetent re-entrantly. | |
14 | ?C:. | |
15 | ?C:GETNETENT_R_PROTO: | |
16 | ?C: This symbol encodes the prototype of getnetent_r. | |
17 | ?C:. | |
18 | ?H:#$d_getnetent_r HAS_GETNETENT_R /**/ | |
19 | ?H:#define GETNETENT_R_PROTO $getnetent_r_proto /**/ | |
20 | ?H:. | |
21 | ?T:try hdrs | |
22 | ?LINT:set d_getnetent_r | |
23 | ?LINT:set getnetent_r_proto | |
24 | : see if getnetent_r exists | |
25 | set getnetent_r d_getnetent_r | |
26 | eval $inlibc | |
27 | case "$d_getnetent_r" in | |
28 | "$define") | |
569da30e | 29 | hdrs="$i_systypes sys/types.h $i_netdb netdb.h" |
46953654 JH |
30 | case "$getnetent_r_proto" in |
31 | '') try='extern int getnetent_r(struct netent*, char*, size_t, struct netent**, int*);' | |
32 | ./protochk "$try" $hdrs && getnetent_r_proto=I_SBWRE; | |
33 | ;; | |
34 | esac | |
35 | case "$getnetent_r_proto" in | |
36 | '') try='extern int getnetent_r(struct netent*, char*, int, int*);' | |
37 | ./protochk "$try" $hdrs && getnetent_r_proto=I_SBIE; | |
38 | ;; | |
39 | esac | |
40 | case "$getnetent_r_proto" in | |
41 | '') try='extern int getnetent_r(struct netent*, char*, int);' | |
42 | ./protochk "$try" $hdrs && getnetent_r_proto=I_SBI; | |
43 | ;; | |
44 | esac | |
45 | case "$getnetent_r_proto" in | |
46 | '') try='extern int getnetent_r(struct netent*, struct netent_data*);' | |
47 | ./protochk "$try" $hdrs && getnetent_r_proto=I_SD; | |
48 | ;; | |
49 | esac | |
50 | case "$getnetent_r_proto" in | |
51 | '') d_getnetent_r=undef ; echo "Disabling getnetent_r, cannot find prototype." ;; | |
52 | * ) getnetent_r_proto="REENTRANT_$getnetent_r_proto" ; echo "$try" ;; | |
53 | esac | |
54 | ;; | |
55 | esac | |
56 |