diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-03 14:58:39 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-03 14:58:39 +0000 |
commit | ff535f4d571654d23e99d97fbcf00a2b7fb37196 (patch) | |
tree | 1b0242fe3b073762269d3f063adeb5474957ace0 /vms | |
parent | dd19458bcc107ff5b00bdc811d918a2e32b367ed (diff) | |
download | perl-ff535f4d571654d23e99d97fbcf00a2b7fb37196.tar.gz |
Scale down the VMS message boxes, by Charles Lane.
Fix for ID 20000903.009, workaround at
http://www.xray.mpe.mpg.de/mailing-lists/vmsperl/2000-09/msg00039.html
p4raw-id: //depot/perl@7133
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -971,6 +971,9 @@ my_tmpfile(void) } /*}}}*/ +/* default piping mailbox size */ +#define PERL_BUFSIZ 256 + static void create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) @@ -984,12 +987,10 @@ create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) if (!syssize) { unsigned long syiitm = SYI$_MAXBUF; /* - * Get the SYSGEN parameter MAXBUF, and the smaller of it and the - * preprocessor consant BUFSIZ from stdio.h defaults as the size of the - * 'pipe' mailbox. + * Get the SYSGEN parameter MAXBUF * * If the logical 'PERL_MBX_SIZE' is defined - * use the value of the logical instead of BUFSIZ, but again + * use the value of the logical instead of PERL_BUFSIZ, but * keep the size between 128 and MAXBUF. * */ @@ -999,7 +1000,7 @@ create_mbx(unsigned short int *chan, struct dsc$descriptor_s *namdsc) if (vmstrnenv("PERL_MBX_SIZE", csize, 0, fildev, 0)) { mbxbufsiz = atoi(csize); } else { - mbxbufsiz = BUFSIZ; + mbxbufsiz = PERL_BUFSIZ; } if (mbxbufsiz < 128) mbxbufsiz = 128; if (mbxbufsiz > syssize) mbxbufsiz = syssize; |