httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: [PATCH] Add apr_socklen_t typ
Date Thu, 21 Sep 2000 11:26:11 GMT
"Victor J. Orlikowski" <v.j.orlikowski@gte.net> writes:

> Well, I've been going on for the longest time that we needed a
> socklen_t to quit AIX from complaining and breaking the build in
> mod_cgid.
> So here's a patch to create an apr_socklen_t type, with all uses of
> socklen_t in APR changed over to it. 
> Actually, it sort of clean up the handling of socklen_t, too...
> If this gets committed, I'll submit the qiuck fix to mod_cgid.

The purpose of this is to provide a socklen_t to the user of APR as a
portability aid.  Some systems have unsigned sockaddr len parameters;
others have signed.  When passing the length by address (as to
accept()) a warning is generated if the sign is not correct.

Victor's patch assumes that it is always signed, but that can be
easily tweaked for certain platforms later.

Any objections to the general idea before I play with this patch?

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message