summaryrefslogtreecommitdiff
path: root/Porting/findrfuncs
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-11 04:39:54 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-11 04:39:54 +0000
commitb4e83e5bb325c4a237d83150af9e71a1219f53fa (patch)
treeef075dc4e7a24736fc3f16150b6278b1dfadcf04 /Porting/findrfuncs
parent78cb7c004bd5f66174e211c80a8332b6d519507b (diff)
downloadperl-b4e83e5bb325c4a237d83150af9e71a1219f53fa.tar.gz
Skip obsoleted interfaces.
p4raw-id: //depot/perl@15163
Diffstat (limited to 'Porting/findrfuncs')
-rw-r--r--Porting/findrfuncs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Porting/findrfuncs b/Porting/findrfuncs
index 36fb7e8fa6..ea019c982a 100644
--- a/Porting/findrfuncs
+++ b/Porting/findrfuncs
@@ -49,6 +49,8 @@ find(sub {
open F, "<$File::Find::name"
or die "Can't open $File::Find::name: $!";
my $line;
+ # None of the <netdb.h> _r prototypes are to be used in Tru64.
+ return if $^O eq 'dec_osf' && $_ eq 'netdb.h';
while (defined ($line = <F>)) {
if ($line =~ /\b(\w+_r)\b/) {
#warn "$1 => $File::Find::name\n";
@@ -61,6 +63,16 @@ find(sub {
# delete bogus symbols grepped out of comments and such
delete $rfuncs{setlocale_r} if $^O eq 'linux';
+# delete obsolete (as promised by man pages) symbols
+if ($^O eq 'hpux') {
+ delete $rfuncs{crypt_r};
+ delete $rfuncs{setlocale_r};
+ delete $rfuncs{strerror_r};
+} elsif ($^O eq 'dec_osf') {
+ delete $rfuncs{crypt_r};
+ delete $rfuncs{strerror_r};
+}
+
my %syms;
for my $exe (@EXES) {