This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
lib/io_udp.t fails on VMS
authorJonathan Hudson <Jonathan.Hudson@jrhudson.demon.co.uk>
Thu, 22 May 1997 05:56:26 +0000 (17:56 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Wed, 11 Jun 1997 00:00:00 +0000 (12:00 +1200)
commit490ab354c465618bcdee84ecc1d256c265518f0a
tree24c8a038a5c1c4c8df3c3116e1c574215c56acc4
parent14ba8c9ed9cfdc22434f89b374aaf17cc48fd4a0
lib/io_udp.t fails on VMS

perl 5.004 built without error or warning on VMS AXP/DECC with DECCRTL
(UCX) sockets (no sockshr library). However it fails the
lib/io_udp.t test for the following reasons:

1. The 'fromlen' parameter in pp_sysread *must* be sizeof(struct
   sockaddr) or the DECCRTL fails with an invalid buffer size error.

2. The DECCRTL/UCX getpeerhost() function returns defined and a blank
   'sockaddr' for udp hosts. A similar fix to that in vms/sockadapt.h
   (for sockshr) is required for DECCRTL in pp_sys.c

The following diff (unix, sorry VMS folks) patches pp_sys.c so that
the udp test is successful using UCX.

p5p-msgid: XFMail.970522181042.Jonathan.Hudson@jrhudson.demon.co.uk
pp_sys.c