From: lls@kings.demon.co.uk (Lady Lodge Systems) Subject: Re: term0.67 ( need socketpair() ) Date: Mon, 2 Nov 1992 12:36:03 GMT
In article <3460@huedv.hu.sub.org> thu@huedv.hu.sub.org writes:
>ajake@mits.mdata.fi (Jarkko Aitti) writes:
>
>>As the subject says, i need a socketpair function to get term0.67 running
>>under ISC3.2 (version(?))..
>
>me, too ... for compiling netfax on ISC-3.0.
For compiling netfax on ISC 3.0 try the following:-
/*
Use a Pipe instead of socketpair as ISC 3.0 doesn't have
socketpair :-( and won't open sockets with a AF_UNIX domain ;-((
*/
socketpair(domain,type,protocol,fd)
int domain, type, protocol, *fd;
{
int pfd[2];
if( pipe(pfd) != 0 ) return(-1);
/*
Aha! Fax 3.2 uses 0 for write and 1 for read.
pipes naturally create these the other way round.
*/
fd[0] = pfd[1];
fd[1] = pfd[0];
return(0);
}
Good Luck.
--
Regards,
Russell
---------------------------------------------------------------------------
| Russell Brown | MAIL : russell@kings.demon.co.uk |
| Lady Lodge Systems | PHONE: 0832 272224 (Home/Work it's all the same) |
| demon.co.uk is an Internet access point for zillions of unrelated systems |
---------------------------------------------------------------------------