Connect system call in SCO

Robert Lipe robertlipe@usa.net
Tue Dec 11 08:49:00 GMT 2001


Rakshit Karnavat , Gurgaon wrote:

>   Having problem with the connect system call, in SCO Openserver 5.0.5.
>     I am making a non blocking socket, and when I execute the connect system
> call,
>   it fails(which I was expecting), but it set a -ve value in errno.
>    Is it possible for a system call to set  a -ve value in errno???

I don't see any documented negative errno values for connect.  Are you
sure it was connect(SSC) that set it?

Can you produce a trivial program that reproduces it?   Does it behave
any differently when compiled with gcc than any other compiler?

RJL



> Regards
> Rakshit.
>  
> 
> 
> > ----------
> > From: 	Phil Edwards[SMTP:pedwards@disaster.jaj.com]
> > Sent: 	Thursday, November 29, 2001 10:20 PM
> > To: 	Rakshit Karnavat , Gurgaon
> > Cc: 	Robert Lipe; gcc@gcc.gnu.org
> > Subject: 	Re: GCC Build Status for SCO OS 5.0.5
> > 
> > On Thu, Nov 29, 2001 at 11:40:10AM +0530, Rakshit Karnavat , Gurgaon
> > wrote:
> > > 
> > >    As an example, I made a shared library using gcc.
> > >   When I tried to use this library with my another example cpp,
> > 
> > If you write C++ code, then you must use g++ to perform the linking.
> > 
> > -- 
> > If ye love wealth greater than liberty, the tranquility of servitude
> > greater
> > than the animating contest for freedom, go home and leave us in peace.  We
> > seek
> > not your counsel, nor your arms.  Crouch down and lick the hand that feeds
> > you;
> > and may posterity forget that ye were our countrymen.            - Samuel
> > Adams
> > 



More information about the Gcc mailing list