[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [PATCH] second try at fixing up socklen issues on Solaris
From:       Carsten Griwodz <griff () ifi ! uio ! no>
Date:       2001-04-05 12:48:13
[Download RAW message or body]

> > My current problem is that AIX uses unsigned long instead of
> > unsigned int in 32 bit mode, probably for backward compatibility.
> >
> is sizeof(long) == sizeof(size_t) != sizeof(int) on your system?
> if so, it's one of the broken-posix systems.

No, the sizes are the same. They are only different types.

> > But is it guaranteed by any standard that socklen_t is a basic data
> > type everywhere?
> > 
> no. "real" socklen_t is a typedef and therefore no basic type (at least
> according to the definition of "basic data type" i know). behind the
> curtain it's of course an int (good) or size_t (bad).

Well, I meant to include typedefs in the basic types because "A
typedef-name does not introduce a new type the way a class declaration or
enum declaration does."

 - Carsten


 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic