This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
metaconfig: regen _r units again.
[metaconfig.git] / U / threads / d_getprotobyname_r.U
CommitLineData
eed88ce0
JH
1?MAKE:d_getprotobyname_r getprotobyname_r_proto: Inlibc Protochk i_systypes i_unistd
2?MAKE: -pick add $@ %<
46953654 3?S:d_getprotobyname_r:
eed88ce0
JH
4?S: This variable conditionally defines the HAS_GETPROTOBYNAME_R symbol,
5?S: which indicates to the C program that the getprotobyname_r()
6?S: routine is available.
46953654
JH
7?S:.
8?S:getprotobyname_r_proto:
eed88ce0 9?S: This variable encodes the prototype of getprotobyname_r.
46953654
JH
10?S:.
11?C:HAS_GETPROTOBYNAME_R:
eed88ce0
JH
12?C: This symbol, if defined, indicates that the getprotobyname_r routine
13?C: is available to getprotobyname re-entrantly.
46953654
JH
14?C:.
15?C:GETPROTOBYNAME_R_PROTO:
eed88ce0 16?C: This symbol encodes the prototype of getprotobyname_r.
46953654 17?C:.
eed88ce0
JH
18?H:#$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/
19?H:#define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/
46953654
JH
20?H:.
21?T:try hdrs
22?LINT:set d_getprotobyname_r
23?LINT:set getprotobyname_r_proto
24: see if getprotobyname_r exists
25set getprotobyname_r d_getprotobyname_r
26eval $inlibc
27case "$d_getprotobyname_r" in
28"$define")
eed88ce0 29 hdrs="$i_systypes sys/types.h $i_unistd unistd.h"
46953654
JH
30 case "$getprotobyname_r_proto" in
31 '') try='extern int getprotobyname_r(const char*, struct protoent*, size_t, char*, struct protoent**);'
32 ./protochk "$try" $hdrs && getprotobyname_r_proto=I_CSWBR;
33 ;;
34 esac
35 case "$getprotobyname_r_proto" in
36 '') try='extern struct protoent* getprotobyname_r(const char*, struct protoent*, char*, int);'
37 ./protochk "$try" $hdrs && getprotobyname_r_proto=S_CSBI;
38 ;;
39 esac
40 case "$getprotobyname_r_proto" in
41 '') try='extern int getprotobyname_r(const char*, struct protoent*, struct protoent_data*);'
42 ./protochk "$try" $hdrs && getprotobyname_r_proto=I_CSD;
43 ;;
44 esac
45 case "$getprotobyname_r_proto" in
46 '') d_getprotobyname_r=undef ; echo "Disabling getprotobyname_r, cannot find prototype." ;;
47 * ) getprotobyname_r_proto="REENTRANT_$getprotobyname_r_proto" ; echo "$try" ;;
48 esac
49 ;;
50esac
51