This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Connect system call in SCO
- From: "Rakshit Karnavat , Gurgaon" <rakshit at ggn dot hcltech dot com>
- To: Robert Lipe <robertlipe at usa dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 11 Dec 2001 22:29:32 +0530
- Subject: RE: Connect system call in SCO
No, I was not able to produce the problem with a simple test program.
But I can give you the scenario of my application in which it was
produced.
It is a multithreaded program, using both INET and UNIX domain sockets.
I am talking about the case, where the socket is AF_INET.
The compiler is g++ 3.0.1.
The socket as said before, is non blocking. I expected the errno to be
set to
91(EIN_PROGRESS).
But it was set to -2146297092(junk probably).
I don't have a clue what this is.
Regards
Rakshit.
> ----------
> From: Robert Lipe[SMTP:robertlipe@usa.net]
> Sent: Tuesday, December 11, 2001 10:16 PM
> To: Rakshit Karnavat , Gurgaon
> Cc: gcc@gcc.gnu.org
> Subject: Re: Connect system call in SCO
>
> 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
> > >
>