[freetds] Connection timeout problem on HP-UX
Predrag Parmakovic
preparmakov at yahoo.com
Thu Apr 12 12:11:06 EDT 2007
I agree with yours conclusions...
In the future I will use int ...
And to I add:
I am not using pa-risc, my system is on itanium. Itanium can be configured to work both as little-endian and big-endian. HP-UX configures it as big-endian(as far as I know, linux configures itanium as little-endian).
regards
----- Original Message ----
From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio at vodafone.com>
To: FreeTDS Development Group <freetds at lists.ibiblio.org>
Sent: Thursday, April 12, 2007 5:24:09 PM
Subject: Re: [freetds] Connection timeout problem on HP-UX
>
> ZIGLIO, Frediano, VF-IT wrote:
> >
> > So:
> > - if linux or hpux (freebsd?? solaris?? tru64?? sgi??) use int
> > - if win32 use u_long
> > - if possible (that is not cross compiling) do a small test (using
> > configure)
> > - give error :'(
> >
> > I don't like autoconf that much but I think I'll have to
> write some m4
> > code before release... and even backport it !!
>
> Before you do this, can you show me correct code that doesn't
> work on all
> systems? What is the "bug", exactly? Which function are we talking
> about?
>
> It's always safe to assign an int to a long. That's C.
> Endianism doesn't
> matter.
>
> If there is a function that is defined differently in
> different OS's (e.g.
> getservbyname_r) then we might need an m4 file for it, if
> autoconf doesn't
> already handle it.
>
> I prefer to write correct code not obscured by preprocessor macros.
> Sometimes we can include documented patches in the
> distribution for broken
> OS's.
>
News (from manuals):
IRIX int
Linux int
HP-UX int
*BSD int
SCO int
perhaps you should just use int...
I found this code
http://svn.python.org/projects/python/branches/release24-maint/Modules/s
ocketmodule.c which prefer fcntl.
freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
I agree with yours conclusions...
In the future I will use int on HP-UX (fcntl or ioctl...
And to I adds:
I am not using pa-risc, my system is on itanium. Itanium can be configured to work both as little-endian and big-endian. HP-UX configures it as big-endian(as far as I know, linux configures itanium as little-endian).
regards
____________________________________________________________________________________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
More information about the FreeTDS
mailing list