home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.perl:4991 comp.sys.sequent:468
- Newsgroups: comp.lang.perl,comp.sys.sequent
- Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!ux2.cso.uiuc.edu!ejk
- From: ejk@ux2.cso.uiuc.edu (Ed Kubaitis - CCSO)
- Subject: ptx accept() botch & perl 4.035
- Message-ID: <Bs3MrK.IAr@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois - Urbana
- Date: Tue, 28 Jul 1992 12:30:55 GMT
- Lines: 28
-
- Perl4.035 accept() fails with "Invalid argument" on Sequent ptx V1.3.1.
- It seems ptx accept() thinks the addrlen argument provided by perl
- is, um, too *large*.
-
- The attached doio.c hack allows accept to work in the AF_INET family.
- AF_UNIX is currently not an issue as unix domain sockets don't work on
- ptx anyway.
-
- ----------------------------------
- Ed Kubaitis (ejk@ux2.cso.uiuc.edu)
- Computing & Communications Services Office - University of Illinois, Urbana
- ==============================================================================
- *** doio.c- Fri Jun 12 00:46:24 1992
- --- doio.c Mon Jul 27 13:31:47 1992
- ***************
- *** 1524,1530 ****
- --- 1524,1534 ----
- {
- register STIO *nstio;
- register STIO *gstio;
- + #ifdef _SEQUENT_
- + int len = sizeof(struct sockaddr);
- + #else
- int len = sizeof buf;
- + #endif
- int fd;
-
- if (!nstab)
-