1 ?MAKE:d_getpwuid_r getpwuid_r_proto: Inlibc Protochk i_systypes i_unistd
4 ?S: This variable conditionally defines the HAS_GETPWUID_R symbol,
5 ?S: which indicates to the C program that the getpwuid_r()
6 ?S: routine is available.
9 ?S: This variable encodes the prototype of getpwuid_r.
12 ?C: This symbol, if defined, indicates that the getpwuid_r routine
13 ?C: is available to getpwuid re-entrantly.
16 ?C: This symbol encodes the prototype of getpwuid_r.
18 ?H:#$d_getpwuid_r HAS_GETPWUID_R /**/
19 ?H:#define GETPWUID_R_PROTO $getpwuid_r_proto /**/
22 ?LINT:set d_getpwuid_r
23 ?LINT:set getpwuid_r_proto
24 : see if getpwuid_r exists
25 set getpwuid_r d_getpwuid_r
27 case "$d_getpwuid_r" in
29 hdrs="$i_systypes sys/types.h $i_unistd unistd.h"
30 case "$getpwuid_r_proto" in
31 '') try='extern int getpwuid_r(uid_t, struct passwd*, char*, size_t, struct passwd**);'
32 ./protochk "$try" $hdrs && getpwuid_r_proto=I_TSBWR;
35 case "$getpwuid_r_proto" in
36 '') try='extern int getpwuid_r(uid_t, struct passwd*, char*, int, struct passwd**);'
37 ./protochk "$try" $hdrs && getpwuid_r_proto=I_TSBIR;
40 case "$getpwuid_r_proto" in
41 '') try='extern int getpwuid_r(uid_t, struct passwd*, char*, int);'
42 ./protochk "$try" $hdrs && getpwuid_r_proto=I_TSBI;
45 case "$getpwuid_r_proto" in
46 '') try='extern struct passwd* getpwuid_r(uid_t, struct passwd*, char*, int);'
47 ./protochk "$try" $hdrs && getpwuid_r_proto=S_TSBI;
50 case "$getpwuid_r_proto" in
51 '') d_getpwuid_r=undef ; echo "Disabling getpwuid_r, cannot find prototype." ;;
52 * ) getpwuid_r_proto="REENTRANT_$getpwuid_r_proto" ; echo "$try" ;;