Commit | Line | Data |
---|---|---|
f2dee704 | 1 | ?MAKE:d_getnetent_r getnetent_r_proto: Inlibc Protochk i_systypes i_netdb |
eed88ce0 | 2 | ?MAKE: -pick add $@ %< |
46953654 | 3 | ?S:d_getnetent_r: |
eed88ce0 JH |
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. | |
46953654 JH |
7 | ?S:. |
8 | ?S:getnetent_r_proto: | |
eed88ce0 | 9 | ?S: This variable encodes the prototype of getnetent_r. |
46953654 JH |
10 | ?S:. |
11 | ?C:HAS_GETNETENT_R: | |
eed88ce0 JH |
12 | ?C: This symbol, if defined, indicates that the getnetent_r routine |
13 | ?C: is available to getnetent re-entrantly. | |
46953654 JH |
14 | ?C:. |
15 | ?C:GETNETENT_R_PROTO: | |
eed88ce0 | 16 | ?C: This symbol encodes the prototype of getnetent_r. |
46953654 | 17 | ?C:. |
eed88ce0 JH |
18 | ?H:#$d_getnetent_r HAS_GETNETENT_R /**/ |
19 | ?H:#define GETNETENT_R_PROTO $getnetent_r_proto /**/ | |
46953654 JH |
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") | |
f2dee704 | 29 | hdrs="$i_systypes sys/types.h define stdio.h $i_netdb netdb.h" |
46953654 | 30 | case "$getnetent_r_proto" in |
f2dee704 JH |
31 | '') try='int getnetent_r(struct netent*, char*, size_t, struct netent**, int*);' |
32 | ./protochk "extern $try" $hdrs && getnetent_r_proto=I_SBWRE ;; | |
46953654 JH |
33 | esac |
34 | case "$getnetent_r_proto" in | |
f2dee704 JH |
35 | '') try='int getnetent_r(struct netent*, char*, int, int*);' |
36 | ./protochk "extern $try" $hdrs && getnetent_r_proto=I_SBIE ;; | |
46953654 JH |
37 | esac |
38 | case "$getnetent_r_proto" in | |
f2dee704 JH |
39 | '') try='struct netent* getnetent_r(struct netent*, char*, int, int*);' |
40 | ./protochk "extern $try" $hdrs && getnetent_r_proto=S_SBIE ;; | |
46953654 JH |
41 | esac |
42 | case "$getnetent_r_proto" in | |
f2dee704 JH |
43 | '') try='struct netent* getnetent_r(struct netent*, char*, int);' |
44 | ./protochk "extern $try" $hdrs && getnetent_r_proto=S_SBI ;; | |
45 | esac | |
46 | case "$getnetent_r_proto" in | |
47 | '') try='int getnetent_r(struct netent*, char*, int);' | |
48 | ./protochk "extern $try" $hdrs && getnetent_r_proto=I_SBI ;; | |
49 | esac | |
50 | case "$getnetent_r_proto" in | |
51 | '') try='int getnetent_r(struct netent*, struct netent_data*);' | |
52 | ./protochk "extern $try" $hdrs && getnetent_r_proto=I_SD ;; | |
46953654 JH |
53 | esac |
54 | case "$getnetent_r_proto" in | |
f2dee704 JH |
55 | '') d_getnetent_r=undef |
56 | echo "Disabling getnetent_r, cannot determine prototype." ;; | |
57 | * ) case "$getnetent_r_proto" in | |
58 | REENTRANT_PROTO*) ;; | |
59 | *) getnetent_r_proto="REENTRANT_PROTO_$getnetent_r_proto" ;; | |
60 | esac | |
61 | echo "Prototype: $try" ;; | |
46953654 JH |
62 | esac |
63 | ;; | |
64 | esac | |
65 |