[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [PATCH] solaris and ksocks
From: Oswald Buddenhagen <ob6 () inf ! tu-dresden ! de>
Date: 2001-03-30 16:33:18
[Download RAW message or body]
> If we declare _XPG4_2, then it switches over to this:
>
> int getsockname(int, struct sockaddr *, size_t *);
>
> size_t *probably* makes everyone happy.
>
not really ...
originally it was int. it was good, but some posix-bozo decided to
make it size_t. that turned out to be a braindamage, so socklen_t was
introduced. there is a nice explaination from linus for this problem
in the accept(2) man page on linux.
the Right Thing (tm) is to #define socklen_t, if it's not already
typedef-ed.
best regards
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Nothing is fool-proof to a sufficiently talented fool.
>> 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