summaryrefslogtreecommitdiff
path: root/vms
diff options
context:
space:
mode:
authorHans Mulder <hansmu@xs4all.nl>1999-03-01 08:06:29 -0800
committerJarkko Hietaniemi <jhi@iki.fi>1999-03-02 08:22:29 +0000
commita12fb9119e8da180ab3c5a7359cb81660e41b805 (patch)
treedee179de14c1768ba62dddd30cf81808abd286dd /vms
parentadd94a5806141380fd09a55c646496326315ee82 (diff)
downloadperl-a12fb9119e8da180ab3c5a7359cb81660e41b805.tar.gz
To: perl5-porters@perl.org, vmsperl@perl.org
Subject: [PATCH5.005_56]Diffs to get 5.005_56 building on VMS Date: Mon, 01 Mar 1999 16:06:29 -0800 Message-Id: <3.0.6.32.19990301160629.02e09ec0@ous.edu> From: Dan Sugalski <sugalskd@osshe.edu> To: perl5-porters@perl.org, vmsperl@perl.org Subject: [PATCH 5.005_56]vmsish.pm patch Date: Mon, 01 Mar 1999 20:19:04 -0800 Message-Id: <3.0.6.32.19990301201904.02cff460@ous.edu> plus Configure regen containing a "solution" to the crosscompile/multiarch problem. p4raw-id: //depot/cfgperl@3050
Diffstat (limited to 'vms')
-rw-r--r--vms/ext/vmsish.pm6
-rw-r--r--vms/subconfigure.com32
-rw-r--r--vms/vms.c7
-rw-r--r--vms/vmsish.h2
4 files changed, 27 insertions, 20 deletions
diff --git a/vms/ext/vmsish.pm b/vms/ext/vmsish.pm
index 851d576e79..dfb565b326 100644
--- a/vms/ext/vmsish.pm
+++ b/vms/ext/vmsish.pm
@@ -56,9 +56,9 @@ sub bits {
my $bits = 0;
my $sememe;
foreach $sememe (@_) {
- $bits |= 0x01000000, next if $sememe eq 'status' || $sememe eq '$?';
- $bits |= 0x02000000, next if $sememe eq 'exit';
- $bits |= 0x04000000, next if $sememe eq 'time';
+ $bits |= 0x20000000, next if $sememe eq 'status' || $sememe eq '$?';
+ $bits |= 0x40000000, next if $sememe eq 'exit';
+ $bits |= 0x80000000, next if $sememe eq 'time';
}
$bits;
}
diff --git a/vms/subconfigure.com b/vms/subconfigure.com
index 2ea56675c6..77dc15ce0e 100644
--- a/vms/subconfigure.com
+++ b/vms/subconfigure.com
@@ -62,12 +62,12 @@ $ myname = myhostname
$ if "''myname'" .eqs. "" THEN myname = f$trnlnm("SYS$NODE")
$!
$! ##ADD NEW CONSTANTS HERE##
-$ perl_multiarch="undef"
-$ perl_crosscompile="undef"
$ perl_d_madvise="undef"
$ perl_d_msync="undef"
$ perl_d_mprotect="undef"
$ perl_d_munmap="undef"
+$ perl_crosscompile="undef"
+$ perl_multiarch="undef"
$ perl_d_mmap="undef"
$ perl_i_sysmman="undef"
$ perl_d_telldirproto="define"
@@ -82,6 +82,7 @@ $ perl_d_hasmntopt="undef"
$ perl_package="''package'"
$ perl_baserev = "''baserev'"
$ cc_defines=""
+$ perl_installusrbinperl="undef"
$ perl_CONFIG="true"
$ perl_d_fseeko="undef"
$ perl_d_ftello="undef"
@@ -204,14 +205,14 @@ $ perl_osname="VMS"
$ perl_d_archlib="define"
$ perl_d_bincompat3="undef"
$ perl_cppstdin="''Perl_CC'/noobj/preprocess=sys$output sys$input"
-$ perl_cppminus=""
+$ perl_cppminus=" "
$ perl_d_castneg="define"
$ perl_castflags="0"
$ perl_d_chsize="undef"
$ perl_d_const="define"
$ perl_d_crypt="define"
$ perl_byteorder="1234"
-$ perl_full_csh=""
+$ perl_full_csh=" "
$ perl_d_csh="undef"
$ perl_d_dup2="define"
$ perl_d_fchmod="undef"
@@ -365,9 +366,9 @@ $ENDIF
$ perl_sh="MCR"
$ perl_modetype="unsigned int"
$ perl_ssizetype="int"
-$ perl_o_nonblock=""
-$ perl_eagain=""
-$ perl_rd_nodata=""
+$ perl_o_nonblock=" "
+$ perl_eagain=" "
+$ perl_rd_nodata=" "
$ perl_d_eofnblk="undef"
$ perl_d_oldarchlib="define"
$ perl_privlibexp="''perl_prefix':[lib]"
@@ -400,8 +401,8 @@ $ perl_d_getpgrp2="undef"
$ perl_d_sfio="undef"
$ perl_usedl="define"
$ perl_startperl="""$ perl 'f$env(\""procedure\"")' 'p1' 'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8' !\n$ exit++ + ++$status != 0 and $exit = $status = undef;"""
-$ perl_db_hashtype=""
-$ perl_db_prefixtype=""
+$ perl_db_hashtype=" "
+$ perl_db_prefixtype=" "
$ perl_useperlio="undef"
$ perl_defvoidused="15"
$ perl_voidflags="15"
@@ -411,13 +412,13 @@ $ IF ("''Use_Threads'".eqs."T").and.("''VMS_VER'".LES."6.2")
$ THEN
$ perl_libs="SYS$SHARE:CMA$LIB_SHR.EXE/SHARE SYS$SHARE:CMA$RTL.EXE/SHARE SYS$SHARE:CMA$OPEN_LIB_SHR.exe/SHARE SYS$SHARE:CMA$OPEN_RTL.exe/SHARE"
$ ELSE
-$ perl_libs=""
+$ perl_libs=" "
$ ENDIF
$ IF ("''Using_Dec_C'".eqs."Yes")
$ THEN
$ perl_libc="(DECCRTL)"
$ ELSE
-$ perl_libc=""
+$ perl_libc=" "
$ ENDIF
$ perl_PATCHLEVEL="''patchlevel'"
$ perl_SUBVERSION="''subversion'"
@@ -447,7 +448,9 @@ $ perl_arch = "''perl_arch'-thread"
$ perl_archname = "''perl_archname'-thread"
$ ELSE
$ perl_d_pthread_create_joinable = "undef"
-$ perl_pthread_create_joinable = ""
+$ perl_pthread_create_joinable = " "
+$ perl_d_old_pthread_create_joinable = "undef"
+$ perl_old_pthread_create_joinable = " "
$ ENDIF
$ perl_osvers=f$edit(osvers, "TRIM")
$ if (perl_subversion + 0).eq.0
@@ -3065,6 +3068,8 @@ $ WC "d_tmpfile64='" + perl_d_tmpfile64 + "'"
$ WC "d_drand48proto='" + perl_d_drand48proto + "'"
$ WC "d_pthread_create_joinable='" + perl_d_pthread_create_joinable + "'"
$ WC "pthread_create_joinable='" + perl_pthread_create_joinable + "'"
+$ WC "d_old_pthread_create_joinable='" + perl_d_old_pthread_create_joinable + "'"
+$ WC "old_pthread_create_joinable='" + perl_old_pthread_create_joinable + "'"
$ WC "drand01='" + perl_drand01 + "'"
$ WC "randseedtype='" + perl_randseedtype + "'"
$ WC "seedfunc='" + perl_seedfunc + "'"
@@ -3084,8 +3089,9 @@ $ WC "d_mprotect='" + perl_d_mprotect + "'"
$ WC "d_munmap='" + perl_d_munmap + "'"
$ WC "d_mmap='" + perl_d_mmap + "'"
$ WC "i_sysmman='" + perl_i_sysmman + "'"
-$ WC "multiarch='" + perl_multiarch + "'"
+$ WC "installusrbinperl='" + perl_installusrbinperl + "'"
$ WC "crosscompile='" + perl_crosscompile + "'"
+$ WC "multiarch='" + perl_multiarch + "'"
$!
$! ##WRITE NEW CONSTANTS HERE##
$!
diff --git a/vms/vms.c b/vms/vms.c
index 37f9587dc7..8870a0fcc8 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -119,12 +119,13 @@ my_trnlnm(char *lnm, char *eqv, unsigned long int idx)
* caller; this pointer will be invalidated at next Perl statement
* transition.
*/
-/*{{{ char *my_getenv(char *lnm)*/
+/*{{{ char *my_getenv(const char *lnm)*/
char *
-my_getenv(char *lnm)
+my_getenv(const char *lnm)
{
static char __my_getenv_eqv[LNM$C_NAMLENGTH+1];
- char uplnm[LNM$C_NAMLENGTH+1], *cp1, *cp2, *eqv;
+ char uplnm[LNM$C_NAMLENGTH+1], *cp2, *eqv;
+ const char *cp1;
unsigned long int idx = 0;
int trnsuccess;
SV *tmpsv;
diff --git a/vms/vmsish.h b/vms/vmsish.h
index 5e78b90a89..7fce3afe0b 100644
--- a/vms/vmsish.h
+++ b/vms/vmsish.h
@@ -569,7 +569,7 @@ void init_os_extras _(());
/* prototype section start marker; `typedef' passes through cpp */
typedef char __VMS_PROTOTYPES__;
int my_trnlnm _((char *, char *, unsigned long int));
-char * my_getenv _((char *));
+char * my_getenv _((const char *));
char * my_crypt _((const char *, const char *));
Pid_t my_waitpid _((Pid_t, int *, int));
char * my_gconvert _((double, int, int, char *));